Skip to contentSkip to conversation

soundwire: cadence: do not extend reset delay

PATCH Applied Bard Liao 2 participants 2 messages Aug 18, 2021 – Aug 23, 2021 SoundWire

lore
Share & tools
lore

Bard Liao

author maintainer
#0 lore raw

PATCH 1/1 soundwire: cadence: do not extend reset delay

From: Pierre-Louis Bossart <[email protected]>

The duration of the hw_reset is defined as 4096 cycles. The Cadence IP allows for an additional delay which doesn't seem necessary in
practice: the actual reset sequence duration is defined by the sync_go mechanism, not by the IP itself.

---
 drivers/soundwire/cadence_master.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/soundwire/cadence_master.c +1 -4
index 0b7f037e6cd0..4fcc3ba93004 100644
@@ -1032,10 +1032,7 @@ EXPORT_SYMBOL(sdw_cdns_check_self_clearing_bits);
  */
 int sdw_cdns_exit_reset(struct sdw_cdns *cdns)
 {
-	/* program maximum length reset to be safe */
-	cdns_updatel(cdns, CDNS_MCP_CONTROL,
-		     CDNS_MCP_CONTROL_RST_DELAY,
-		     CDNS_MCP_CONTROL_RST_DELAY);
+	/* keep reset delay unchanged to 4096 cycles */
 
 	/* use hardware generated reset */
 	cdns_updatel(cdns, CDNS_MCP_CONTROL,
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw
Quoted 6 lines · Bard Liao

From: Pierre-Louis Bossart <[email protected]>

The duration of the hw_reset is defined as 4096 cycles. The Cadence IP allows for an additional delay which doesn't seem necessary in
practice: the actual reset sequence duration is defined by the sync_go mechanism, not by the IP itself.

Applied, thanks

Signature · 1 line
~Vinod