From mboxrd@z Thu Jan 1 00:00:00 1970 From: tomasz.figa@gmail.com (Tomasz Figa) Date: Mon, 17 Jun 2013 20:32:38 +0200 Subject: [RFC PATCH 07/11] dmaengine: PL08x: Fix reading the byte count in cctl In-Reply-To: References: <1371416058-22047-1-git-send-email-tomasz.figa@gmail.com> <1371416058-22047-8-git-send-email-tomasz.figa@gmail.com> Message-ID: <2846792.ysBnunQQWS@flatron> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Monday 17 of June 2013 15:53:14 Linus Walleij wrote: > On Sun, Jun 16, 2013 at 10:54 PM, Tomasz Figa wrote: > > From: Alban Bedel > > > > 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 > > Signed-off-by: Tomasz Figa > > Acked-by: Linus Walleij > > 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