]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
dmaengine: at_hdmac: Extend the Flow Controller bitfield to three bits
authorPeter Rosin <peda@axentia.se>
Tue, 23 May 2023 17:20:47 +0000 (19:20 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 24 May 2023 05:50:28 +0000 (11:20 +0530)
commite14fd2af7a1d621c167dad761f729135a7a76ff4
tree946b3a3e5a2fb8883f5e3d7685050a10f8f13ed1
parent2a6c7e8cc74e58ba94b8c897035a8ef7f7349f76
dmaengine: at_hdmac: Extend the Flow Controller bitfield to three bits

Some chips have two bits (e.g SAMA5D3), and some have three (e.g.
SAM9G45). A field width of three is compatible as long as valid
values are used for the different chips.

There is no current use of any value needing three bits, so the
fixed bug is relatively benign.

Fixes: d8840a7edcf0 ("dmaengine: at_hdmac: Use bitfield access macros")
Cc: stable@vger.kernel.org
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Peter Rosin <peda@axentia.se>
Link: https://lore.kernel.org/r/e2c898ba-c3a3-5dd3-384b-0585661c79f2@axentia.se
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/at_hdmac.c