Subject: [RFC PATCH 07/11] dmaengine: PL08x: Fix reading the byte count in cctl

From: [email-masked] (Tomasz Figa)
Date: Mon, 17 Jun 2013 20:32:38 +0200

On Monday 17 of June 2013 15:53:14 Linus Walleij wrote:
> On Sun, Jun 16, 2013 at 10:54 PM, Tomasz Figa <[email-masked]> 
wrote:
> > From: Alban Bedel <[email-masked]>
> > 
> > There are more fields than just SWIDTH in CH_CONTROL register, so read
> > register value must be masked in addition to shifting.
> > 
> > Signed-off-by: Alban Bedel <[email-masked]>
> > Signed-off-by: Tomasz Figa <[email-masked]>
> 
> Acked-by: Linus Walleij <[email-masked]>
> 
> Are we just lucky on current variants such that all unmasked bits
> happen to be zero on them?

This is really interesting, because if you look at the bit layout, there 
is a lot of other bitfields above the SWIDTH field, like DWIDTH, src and 
dest AHB master selection, src and dest incerement setting, protection and 
terminal count interrupt enable bits.

Best regards,
Tomasz