Commit 4b230967 authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Vinod Koul
Browse files

soundwire: mipi-disco: add support for peripheral channelprepare timeout



The DisCo for SoundWire 2.0 spec renamed the
'mipi-sdw-slave-channelprepare-timeout', add support for the new
definition in backwards-compatible ways.

Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: default avatarBard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20241003070650.62787-12-yung-chuan.liao@linux.intel.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 89e95be1
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -344,6 +344,7 @@ int sdw_slave_read_prop(struct sdw_slave *slave)
	struct device *dev = &slave->dev;
	struct fwnode_handle *port;
	int nval;
	int ret;

	device_property_read_u32(dev, "mipi-sdw-sw-interface-revision",
				 &prop->mipi_revision);
@@ -366,6 +367,9 @@ int sdw_slave_read_prop(struct sdw_slave *slave)
	device_property_read_u32(dev, "mipi-sdw-clockstopprepare-timeout",
				 &prop->clk_stop_timeout);

	ret = device_property_read_u32(dev, "mipi-sdw-peripheral-channelprepare-timeout",
				       &prop->ch_prep_timeout);
	if (ret < 0)
		device_property_read_u32(dev, "mipi-sdw-slave-channelprepare-timeout",
					 &prop->ch_prep_timeout);