soundwire: add static port mapping support
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 15 Mar 2021 16:56:46 +0000 (16:56 +0000)
committerVinod Koul <vkoul@kernel.org>
Tue, 6 Apr 2021 04:52:02 +0000 (10:22 +0530)
commitf4022062e5417ab7228e95aec1a8687059a19db7
treea483513bbd06ae941878dfa85fbcbd0a48c8230e
parent48f17f96a81763c7c8bf5500460a359b9939359f
soundwire: add static port mapping support

Some of the SoundWire device ports are statically mapped to Controller
ports during design, however there is no way to expose this information
to the controller. Controllers like Qualcomm ones use this info to setup
static bandwidth parameters for those ports.

A generic port allocation is not possible in this cases!
So this patch adds a new member m_port_map to struct sdw_slave to expose
this static map.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210315165650.13392-2-srinivas.kandagatla@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
include/linux/soundwire/sdw.h