]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
regmap: sdw-mbq: Don't assume the regmap device is the SoundWire slave
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 20 Oct 2025 15:54:55 +0000 (16:54 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 27 Oct 2025 15:31:12 +0000 (15:31 +0000)
commit013a3a66f25af3fb614f45df43983657514944c4
treef1eff91733951c4aea90afff7ff0afa8b35b0359
parent715159314dfafee66e6deb50b4e3431539a919d8
regmap: sdw-mbq: Don't assume the regmap device is the SoundWire slave

Currently, the code assumes that the device that registered the
MBQ register map is the actual SoundWire slave device. This works
fine for all current users, however future SDCA devices will
likely be implemented with the SoundWire slave as a parent device
and separate child drivers with regmaps for each audio Function.
Update the regmap_init_sdw_mbq_cfg macro to allow these two
to be specified separately.

Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Link: https://patch.msgid.link/20251020155512.353774-3-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-sdw-mbq.c
include/linux/regmap.h
sound/soc/codecs/rt722-sdca-sdw.c