]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
soundwire: cadence/intel: simplify PDI/port mapping
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 16 Sep 2019 19:23:46 +0000 (14:23 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:28:41 +0000 (13:28 +0200)
commit10568e442c2ddb51a58db6a4b6f73b829e704030
tree93e41a8860b36126661b15aec7b2db17f4989b38
parente2c64246e5dc8c0d35ec41770b85e2b4cafdff21
soundwire: cadence/intel: simplify PDI/port mapping

[ Upstream commit 57a34790cd2cab02c3336fe96cfa33b9b65ed2ee ]

The existing Linux code uses a 1:1 mapping between ports and PDIs, but
still has an independent allocation of ports and PDIs.

Let's simplify the code and remove the port layer by only using PDIs.

This patch does not change any functionality, just removes unnecessary
code.

This will also allow for further simplifications where the PDIs are
not dynamically allocated but instead described in a topology file.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190916192348.467-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Stable-dep-of: 8ee1b439b154 ("soundwire: cadence: fix invalid PDI offset")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soundwire/cadence_master.c
drivers/soundwire/cadence_master.h
drivers/soundwire/intel.c