soundwire: intel: add link power management callbacks in hw_ops
No functionality change, only add indirection for link power management helpers. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Rander Wang <rander.wang@intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://lore.kernel.org/r/20221111013135.38289-6-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
committed by
Vinod Koul
parent
3db0c5a6a2
commit
49c9ff4599
@@ -305,6 +305,8 @@ struct sdw_intel;
|
||||
* @start_bus_after_reset: start after reset
|
||||
* @start_bus_after_clock_stop: start after mode0 clock stop
|
||||
* @stop_bus: stop all bus
|
||||
* @link_power_up: power-up using chip-specific helpers
|
||||
* @link_power_down: power-down with chip-specific helpers
|
||||
* @pre_bank_switch: helper for bus management
|
||||
* @post_bank_switch: helper for bus management
|
||||
*/
|
||||
@@ -320,6 +322,9 @@ struct sdw_intel_hw_ops {
|
||||
int (*start_bus_after_clock_stop)(struct sdw_intel *sdw);
|
||||
int (*stop_bus)(struct sdw_intel *sdw, bool clock_stop);
|
||||
|
||||
int (*link_power_up)(struct sdw_intel *sdw);
|
||||
int (*link_power_down)(struct sdw_intel *sdw);
|
||||
|
||||
int (*pre_bank_switch)(struct sdw_intel *sdw);
|
||||
int (*post_bank_switch)(struct sdw_intel *sdw);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user