[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4E3A5B89.9000703@st.com>
Date: Thu, 4 Aug 2011 14:12:49 +0530
From: viresh kumar <viresh.kumar@...com>
To: "Koul, Vinod" <vinod.koul@...el.com>
Cc: Russell King - ARM Linux <linux@....linux.org.uk>,
Pratyush ANAND <pratyush.anand@...com>,
Rajeev KUMAR <rajeev-dlh.kumar@...com>,
Armando VISCONTI <armando.visconti@...com>,
Bhupesh SHARMA <bhupesh.sharma@...com>,
"linus.walleij@...aro.org" <linus.walleij@...aro.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Vipin KUMAR <vipin.kumar@...com>,
Shiraz HASHIM <shiraz.hashim@...com>,
Amit VIRDI <Amit.VIRDI@...com>,
Vipul Kumar SAMAR <vipulkumar.samar@...com>,
"viresh.linux@...il.com" <viresh.linux@...il.com>,
Deepak SIKRI <deepak.sikri@...com>,
"dan.j.williams@...el.com" <dan.j.williams@...el.com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH V2 08/20] dmaengine/amba-pl08x: support runtime PM
On 08/04/2011 12:58 PM, Koul, Vinod wrote:
>> >
>> > Until this point we are not touching the registers at all. And they will
>> > accessed after this point only.
> But from maintainability POV it should be at the start.
>
Sorry for missing this earlier, I looked at the code again and
realized why i put it at the end of the routine.
The routine looks like this
for (all channels)
if (!ch->serving)
break;
if (i == pl08x->vd->channels) {
/* No physical channel available, cope with it */
return NULL;
}
pm_runtime_get_sync(&pl08x->adev->dev);
So, this has to be put at end only. We don't want to call this if no physical
channel is free.
--
viresh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists