[lkml]   [2011]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH v3 4/4] OMAP3/4: iommu: adapt to runtime pm

    On Fri, Nov 4, 2011 at 6:27 PM, Kevin Hilman <> wrote:
    >> @@ -821,9 +820,7 @@ static irqreturn_t iommu_fault_handler(int irq, void *data)
    >>       if (!obj->refcount)
    >>               return IRQ_NONE;
    >> -     clk_enable(obj->clk);
    >>       errs = iommu_report_fault(obj, &da);
    >> -     clk_disable(obj->clk);
    >>       if (errs == 0)
    >>               return IRQ_HANDLED;
    > I'm not terribly familiar with this IOMMU code, but this one looks
    > suspiciou because you're removing the clock calls but not replacing them
    > with runtime PM get/put calls.
    > I just want to make sure that's intentional.  If so, you might want to
    > add a comment about that to the changelog.

    Yes it is intentional, reason is that in order to get an interrupt,
    the device should be powered on in advance, right now it is working
    because the modules share a common clock so the users of the
    omap-iommu indirectly give power to it. However I made another change
    to do pm_runtime_get/put on attach/detach so it doesn't rely on others
    to keep the clocks on.

    I'll add the comment.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2011-11-07 19:23    [W:0.021 / U:105.804 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site