Skip to content
Commit 306f5df8 authored by Hector Martin's avatar Hector Martin Committed by Vinod Koul
Browse files

dmaengine: apple-admac: Keep upper bits of REG_BUS_WIDTH



For RX channels, REG_BUS_WIDTH seems to default to a value of 0xf00, and
macOS preserves the upper bits when setting the configuration in the
lower ones. If we reset the upper bits to 0, this causes framing errors
on suspend/resume (the data stream "tears" and channels get swapped
around). Keeping the upper bits untouched, like the macOS driver does,
fixes this issue.

Signed-off-by: default avatarHector Martin <marcan@marcan.st>
Reviewed-by: default avatarMartin Povišer <povik+lin@cutebit.org>
Signed-off-by: default avatarMartin Povišer <povik+lin@cutebit.org>
Link: https://lore.kernel.org/r/20231029170704.82238-1-povik+lin@cutebit.org


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 375ff42c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment