[coreboot-gerrit] Change in coreboot[master]: southbridge/intel/bd82x6x: Remove unused argument from ACPI method

Martin Roth (Code Review) gerrit at coreboot.org
Mon May 7 05:51:50 CEST 2018


Martin Roth has uploaded this change for review. ( https://review.coreboot.org/26124


Change subject: southbridge/intel/bd82x6x: Remove unused argument from ACPI method
......................................................................

southbridge/intel/bd82x6x: Remove unused argument from ACPI method

The method POSC was only using 2 of the 3 arguments passed in to it.
Remove the unused argument.

Change-Id: I6bbc2a034c79581fd338276eea56aac6d1affa58
Signed-off-by: Martin Roth <martinroth at google.com>
---
M src/southbridge/intel/bd82x6x/acpi/pch.asl
M src/southbridge/intel/bd82x6x/acpi/usb.asl
2 files changed, 16 insertions(+), 5 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/26124/1

diff --git a/src/southbridge/intel/bd82x6x/acpi/pch.asl b/src/southbridge/intel/bd82x6x/acpi/pch.asl
index cfa27d2..d74481b 100644
--- a/src/southbridge/intel/bd82x6x/acpi/pch.asl
+++ b/src/southbridge/intel/bd82x6x/acpi/pch.asl
@@ -254,10 +254,16 @@
 
 Method (_OSC, 4)
 {
+	/*
+	 * Arg0 – A Buffer containing a UUID
+	 * Arg1 – An Integer containing a Revision ID of the buffer format
+	 * Arg2 – An Integer containing a count of entries in Arg3
+	 * Arg3 – A Buffer containing a list of DWORD capabilities
+	 */
 	/* Check for XHCI */
 	If (LEqual (Arg0, ToUUID("7c9512a9-1705-4cb4-af7d-506a2423ab71")))
 	{
-		Return (^XHC.POSC(Arg1, Arg2, Arg3))
+		Return (^XHC.POSC(Arg2, Arg3))
 	}
 
 	/* Check for PCIe */
diff --git a/src/southbridge/intel/bd82x6x/acpi/usb.asl b/src/southbridge/intel/bd82x6x/acpi/usb.asl
index 5f78e3e..e1e3673 100644
--- a/src/southbridge/intel/bd82x6x/acpi/usb.asl
+++ b/src/southbridge/intel/bd82x6x/acpi/usb.asl
@@ -140,13 +140,18 @@
 
 	Name (_PRW, Package(){ 13, 4 }) // Power Resources for Wake
 
-	Method(POSC,3,Serialized)
+	Method(POSC,2,Serialized)
 	{
+	/*
+	 * Arg0 – An Integer containing a count of entries in Arg3
+	 * Arg1 – A Buffer containing a list of DWORD capabilities
+	 */
+
 		// Create DWord field from the Capabilities Buffer
-		CreateDWordField(Arg2,0,CDW1)
+		CreateDWordField(Arg1,0,CDW1)
 
 		// Check revision
-		If(LNotEqual(Arg1,One)) {
+		If(LNotEqual(Arg0,One)) {
 			// Set unknown revision bit
 			Or(CDW1,0x8,CDW1)
 		}
@@ -179,7 +184,7 @@
 			And(X2PR, 0xFFFFFFF0, Local0)
 			Or(Local0, Local1, X2PR)
 		}
-		Return(Arg2)
+		Return(Arg1)
 	}
 
 	// Leave USB ports on for to allow Wake from USB

-- 
To view, visit https://review.coreboot.org/26124
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: I6bbc2a034c79581fd338276eea56aac6d1affa58
Gerrit-Change-Number: 26124
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Roth <martinroth at google.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180507/f5cbe45c/attachment-0001.html>


More information about the coreboot-gerrit mailing list