From: Lee Jones Date: Wed, 15 May 2013 09:51:57 +0000 (+0200) Subject: dmaengine: ste_dma40: Convert data_width from register bit format to value X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~68^2~12^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43f2e1a3be5d83004f09bcb53c46f273e7473a00;p=pandora-kernel.git dmaengine: ste_dma40: Convert data_width from register bit format to value When a DMA client requests and configures a DMA channel, it requests data_width in Bytes. The DMA40 driver then swiftly converts it over to the necessary register bit value. Unfortunately, for any subsequent calculations we have to shift '1' by the bit pattern (1 << data_width) times to make any sense of it. This patch flips the semantics on its head and only converts the value to its respective register bit pattern when writing to registers. This way we can use the true data_width (in Bytes) value. Cc: Dan Williams Cc: Per Forlin Cc: Rabin Vincent Acked-by: Vinod Koul Signed-off-by: Lee Jones Signed-off-by: Linus Walleij --- Reading git-diff-tree failed