aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorLee Jones <[email protected]>2013-05-15 11:51:57 +0200
committerLinus Walleij <[email protected]>2013-06-04 11:12:09 +0200
commit43f2e1a3be5d83004f09bcb53c46f273e7473a00 (patch)
treeaf13dad918da322ee4984925453dbe157731d790 /tools/perf/scripts/python/event_analyzing_sample.py
parent16db3411ebd4777b0b1b7207b10730b726fb751c (diff)
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 <[email protected]> Cc: Per Forlin <[email protected]> Cc: Rabin Vincent <[email protected]> Acked-by: Vinod Koul <[email protected]> Signed-off-by: Lee Jones <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions