[coreboot-gerrit] Change in coreboot[master]: soc/intel/skylake: Disable usb2 phy power gating.

Kane Chen (Code Review) gerrit at coreboot.org
Tue Aug 14 04:50:02 CEST 2018


Kane Chen has uploaded this change for review. ( https://review.coreboot.org/28074


Change subject: soc/intel/skylake: Disable usb2 phy power gating.
......................................................................

soc/intel/skylake: Disable usb2 phy power gating.

Currently, we found the usb2 phy registers value are restored to soc
default after xhci PS3, PS0 are executed.
This will cause some usb 2.0 devices not detected after xhci resumes
from D3.

Before root cause, this patch temporarily disables the usb2 phy power
gating in xhci PS0 PS3 so that usb2phy registers won't be restored to
soc default.

BUG=b:110175562
TEST=check usb2 phy registers are not gone.

Change-Id: I3e4846aa9500930da964c2b10473dc98f021da8d
Signed-off-by: Kane Chen <kane.chen at intel.com>
---
M src/soc/intel/skylake/acpi/xhci.asl
1 file changed, 0 insertions(+), 38 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/74/28074/1

diff --git a/src/soc/intel/skylake/acpi/xhci.asl b/src/soc/intel/skylake/acpi/xhci.asl
index 29367de..926f6ac 100644
--- a/src/soc/intel/skylake/acpi/xhci.asl
+++ b/src/soc/intel/skylake/acpi/xhci.asl
@@ -149,24 +149,6 @@
 
 		/* Disable USB2 PHY SUS Well Power Gating */
 		Store (Zero, ^UPSW)
-
-		/*
-		 * Apply USB2 PHPY Power Gating workaround if needed.
-		 */
-		If (^^PMC.UWAB) {
-			/* Write to MTPMC to have PMC disable power gating */
-			Store (1, ^^PMC.MPMC)
-
-			/* Wait for PCH_PM_STS.MSG_FULL_STS to be 0 */
-			Store (10, Local0)
-			While (^^PMC.PMFS) {
-				If (LNot (Local0)) {
-					Break
-				}
-				Decrement (Local0)
-				Sleep (10)
-			}
-		}
 	}
 
 	Method (_PS3, 0, Serialized)
@@ -202,26 +184,6 @@
 		Store (3, Local0)
 		Store (Local0, ^D0D3)
 		Store (^D0D3, Local0)
-
-		/*
-		 * Apply USB2 PHPY Power Gating workaround if needed.
-		 * This code assumes XDCI is disabled, if it is enabled
-		 * then this must also check if it is in D3 state too.
-		 */
-		If (^^PMC.UWAB) {
-			/* Write to MTPMC to have PMC enable power gating */
-			Store (3, ^^PMC.MPMC)
-
-			/* Wait for PCH_PM_STS.MSG_FULL_STS to be 0 */
-			Store (10, Local0)
-			While (^^PMC.PMFS) {
-				If (LNot (Local0)) {
-					Break
-				}
-				Decrement (Local0)
-				Sleep (10)
-			}
-		}
 	}
 
 	/* Root Hub for Skylake-LP PCH */

-- 
To view, visit https://review.coreboot.org/28074
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3e4846aa9500930da964c2b10473dc98f021da8d
Gerrit-Change-Number: 28074
Gerrit-PatchSet: 1
Gerrit-Owner: Kane Chen <kane.chen at intel.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180814/9fb1d091/attachment.html>


More information about the coreboot-gerrit mailing list