Skip to contentSkip to conversation

soundwire: intel: fix wrong register name in intel_shim_wake

PATCH Applied Bard Liao 2 participants 2 messages Jan 26, 2022 – Feb 10, 2022 SoundWire

lore
Share & tools
lore

Bard Liao

author maintainer
#0 lore raw

PATCH 1/1 soundwire: intel: fix wrong register name in intel_shim_wake

From: Libin Yang <[email protected]>

When clearing the sdw wakests status, we should use SDW_SHIM_WAKESTS.

Fixes 4a17c441c7cb ("soundwire: intel: revisit SHIM programming sequences.")
---
 drivers/soundwire/intel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/soundwire/intel.c +2 -2
index 122f7a29d8ca..63101f1ba271 100644
@@ -448,8 +448,8 @@ static void intel_shim_wake(struct sdw_intel *sdw, bool wake_enable)
 
 		/* Clear wake status */
 		wake_sts = intel_readw(shim, SDW_SHIM_WAKESTS);
-		wake_sts |= (SDW_SHIM_WAKEEN_ENABLE << link_id);
-		intel_writew(shim, SDW_SHIM_WAKESTS_STATUS, wake_sts);
+		wake_sts |= (SDW_SHIM_WAKESTS_STATUS << link_id);
+		intel_writew(shim, SDW_SHIM_WAKESTS, wake_sts);
 	}
 	mutex_unlock(sdw->link_res->shim_lock);
 }
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw
Quoted 3 lines · Bard Liao

From: Libin Yang <[email protected]>

When clearing the sdw wakests status, we should use SDW_SHIM_WAKESTS.

Applied, thanks

Signature · 1 line
~Vinod