dmaengine: at_hdmac: Repair bitfield macros for peripheral ID handling
authorPeter Rosin <peda@axentia.se>
Tue, 23 May 2023 17:20:37 +0000 (19:20 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 24 May 2023 05:50:27 +0000 (11:20 +0530)
commit2a6c7e8cc74e58ba94b8c897035a8ef7f7349f76
tree7a855399e001167a3892cd45d86bca03a1a07c4f
parenta1a5f2c887252dec161c1e12e04303ca9ba56fa9
dmaengine: at_hdmac: Repair bitfield macros for peripheral ID handling

The MSB part of the peripheral IDs need to go into the ATC_SRC_PER_MSB
and ATC_DST_PER_MSB fields. Not the LSB part.

This fixes a severe regression for TSE-850 devices (compatible
axentia,tse850v3) where output to the audio I2S codec (the main
purpose of the device) simply do not work.

Fixes: d8840a7edcf0 ("dmaengine: at_hdmac: Use bitfield access macros")
Cc: stable@vger.kernel.org
Signed-off-by: Peter Rosin <peda@axentia.se>
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Link: https://lore.kernel.org/r/01e5dae1-d4b0-cf31-516b-423b11b077f1@axentia.se
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/at_hdmac.c