soundwire: cadence: Write to correct address for each FIFO chunk
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Sat, 17 Sep 2022 12:35:17 +0000 (13:35 +0100)
committerVinod Koul <vkoul@kernel.org>
Tue, 20 Sep 2022 05:06:07 +0000 (10:36 +0530)
commit3ed96fb4a6d8426f766687ff02fc5fb5f91575fd
tree19119718fb29d80586dc539739e715c0588b9bd0
parent560458df5f144fb3547a9fde8e0b7b2143ef0711
soundwire: cadence: Write to correct address for each FIFO chunk

_cdns_xfer_msg() must add the fragment offset to msg->addr to get the
base target address of each FIFO chunk. Otherwise every chunk will
be written to the first 32 register addresses.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220917123517.229153-1-rf@opensource.cirrus.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/cadence_master.c