mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
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>
This commit is contained in:
@@ -893,6 +893,7 @@ struct sdw_master_ops {
|
||||
* @multi_link: Store bus property that indicates if multi links
|
||||
* are supported. This flag is populated by drivers after reading
|
||||
* appropriate firmware (ACPI/DT).
|
||||
* @lane_used_bandwidth: how much bandwidth in bits per second is used by each lane
|
||||
*/
|
||||
struct sdw_bus {
|
||||
struct device *dev;
|
||||
@@ -924,6 +925,7 @@ struct sdw_bus {
|
||||
struct dentry *debugfs;
|
||||
#endif
|
||||
bool multi_link;
|
||||
unsigned int lane_used_bandwidth[SDW_MAX_LANES];
|
||||
};
|
||||
|
||||
int sdw_bus_master_add(struct sdw_bus *bus, struct device *parent,
|
||||
|
||||
Reference in New Issue
Block a user