aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/intel/bd82x6x/acpi/usb.asl
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2018-05-06 21:06:18 -0500
committerMartin Roth <martinroth@google.com>2018-05-29 22:34:33 +0000
commita34b5bc6ed972dd1720345011b07e4a97b9e4594 (patch)
tree301d7695ae38047abc4c884692db892503342ecf /src/southbridge/intel/bd82x6x/acpi/usb.asl
parent14604dad4e470e8140d18296bd28b42c4bb26668 (diff)
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@google.com> Reviewed-on: https://review.coreboot.org/26124 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/southbridge/intel/bd82x6x/acpi/usb.asl')
-rw-r--r--src/southbridge/intel/bd82x6x/acpi/usb.asl13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/southbridge/intel/bd82x6x/acpi/usb.asl b/src/southbridge/intel/bd82x6x/acpi/usb.asl
index 5f78e3e904..c5bc48d73d 100644
--- a/src/southbridge/intel/bd82x6x/acpi/usb.asl
+++ b/src/southbridge/intel/bd82x6x/acpi/usb.asl
@@ -140,13 +140,18 @@ Device (XHC)
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 @@ Device (XHC)
And(X2PR, 0xFFFFFFF0, Local0)
Or(Local0, Local1, X2PR)
}
- Return(Arg2)
+ Return(Arg1)
}
// Leave USB ports on for to allow Wake from USB