[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <11135b79b94477532e57f30b1ea3c715.squirrel@www.codeaurora.org>
Date: Mon, 16 Mar 2015 08:15:26 -0000
From: sricharan@...eaurora.org
To: "Andy Gross" <agross@...eaurora.org>
Cc: "Vinod Koul" <vinod.koul@...el.com>, devicetree@...r.kernel.org,
linux-arm-msm@...r.kernel.org, linux-kernel@...r.kernel.org,
"Bjorn Andersson" <bjorn.andersson@...ymobile.com>,
"Kumar Gala" <galak@...eaurora.org>, dmaengine@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [Patch v4 2/2] dmaengine: Add ADM driver
Hi,
<snip>
>
>>
>> > +static int adm_get_blksize(unsigned int burst)
>> > +{
>> > + int ret;
>> > +
>> > + switch (burst) {
>> > + case 16:
>> > + ret = 0;
>> > + break;
>> > + case 32:
>> > + ret = 1;
>> > + break;
>> > + case 64:
>> > + ret = 2;
>> > + break;
>> > + case 128:
>> > + ret = 3;
>> > + break;
>> > + case 192:
>> > + ret = 4;
>> > + break;
>> > + case 256:
>> > + ret = 5;
>> > + break;
>> ffs(burst>>4) ?
>
> that should work nicely. thanks.
>
Will not work for 192, 256 ?
Regards,
Sricharan
--
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