Skip to content

Conversation

@bardliao
Copy link
Collaborator

We set CDNS_MCP_CONTROL_HW_RST and do config update in sdw_cdns_exit_reset.
The reset state will be pending for clocks period, and The CDNS_MCP_
CONTROL_HW_RST is self cleared. We have to make sure the bit has been
cleared before doing another config update. Otherwise, we will do HW reset
accidentally when we call cdns_config_update() in sdw_cdns_clock_stop().

Signed-off-by: Bard Liao yung-chuan.liao@linux.intel.com

@bardliao
Copy link
Collaborator Author

@plbossart I am not sure if it is enough. There may be a better place to check the CDNS_MCP_CONTROL_HW_RST bit.

We set CDNS_MCP_CONTROL_HW_RST and do config update in sdw_cdns_exit_reset.
The reset state will be pending for clocks period, and The CDNS_MCP_
CONTROL_HW_RST is self cleared. We have to make sure the bit has been
cleared before doing another config update. Otherwise, we will do HW reset
accidentally when we call cdns_config_update() in sdw_cdns_clock_stop().

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
@bardliao bardliao changed the title soundwire: cadence_master: wait for HW reset before clock stop [RFC] soundwire: cadence_master: wait for HW reset before clock stop Jan 18, 2021
@bardliao bardliao force-pushed the check-cdns-mcp-hw-rst branch from 5ad58b7 to 60f631c Compare January 18, 2021 05:47
@bardliao
Copy link
Collaborator Author

It doesn't work

@bardliao bardliao closed this Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant