diff options
author | Rander Wang <rander.wang@intel.com> | 2020-03-17 17:33:15 +0100 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-03-19 08:13:03 +0100 |
commit | 5a885c52cfe6e5491fb7ce1d93d1a3d8f6fd6da9 (patch) | |
tree | 0ca47e69babacceaa9314bb80bfcc16b16591cec /drivers/soundwire/cadence_master.h | |
parent | soundwire: cadence: simplifiy cdns_init() (diff) | |
download | linux-5a885c52cfe6e5491fb7ce1d93d1a3d8f6fd6da9.tar.xz linux-5a885c52cfe6e5491fb7ce1d93d1a3d8f6fd6da9.zip |
soundwire: cadence: add interface to check clock status
If master is in clock stop state, driver can't modify registers
in master except the registers for clock stop setting.
Signed-off-by: Rander Wang <rander.wang@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200317163329.25501-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/soundwire/cadence_master.h')
-rw-r--r-- | drivers/soundwire/cadence_master.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/soundwire/cadence_master.h b/drivers/soundwire/cadence_master.h index 44e802bba702..691faa386889 100644 --- a/drivers/soundwire/cadence_master.h +++ b/drivers/soundwire/cadence_master.h @@ -144,6 +144,8 @@ int sdw_cdns_pdi_init(struct sdw_cdns *cdns, int sdw_cdns_exit_reset(struct sdw_cdns *cdns); int sdw_cdns_enable_interrupt(struct sdw_cdns *cdns, bool state); +bool sdw_cdns_is_clock_stop(struct sdw_cdns *cdns); + #ifdef CONFIG_DEBUG_FS void sdw_cdns_debugfs_init(struct sdw_cdns *cdns, struct dentry *root); #endif |