Skip to content

Commit b6a2e1b

Browse files
bardliaovinodkoul
authored andcommitted
soundwire: add lane_used_bandwidth in struct sdw_bus
To support multi-lane, we need to know how much bandwidth is used on each lane. And to use the lane that has enough bandwidth. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20241218080155.102405-4-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 7533d0d commit b6a2e1b

File tree

1 file changed

+2
-0
lines changed
  • include/linux/soundwire

1 file changed

+2
-0
lines changed

include/linux/soundwire/sdw.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,7 @@ struct sdw_master_ops {
893893
* @multi_link: Store bus property that indicates if multi links
894894
* are supported. This flag is populated by drivers after reading
895895
* appropriate firmware (ACPI/DT).
896+
* @lane_used_bandwidth: how much bandwidth in bits per second is used by each lane
896897
*/
897898
struct sdw_bus {
898899
struct device *dev;
@@ -924,6 +925,7 @@ struct sdw_bus {
924925
struct dentry *debugfs;
925926
#endif
926927
bool multi_link;
928+
unsigned int lane_used_bandwidth[SDW_MAX_LANES];
927929
};
928930

929931
int sdw_bus_master_add(struct sdw_bus *bus, struct device *parent,

0 commit comments

Comments
 (0)