Duncan Laurie has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/31807
Change subject: vendorcode/google/chromeos: Fix AMAC return type ......................................................................
vendorcode/google/chromeos: Fix AMAC return type
The r8152 kernel driver is expecting the AMAC() method to return a raw buffer, not a string. To fix this simply remove the ToString() in the return statement that was converting the buffer to a string.
BUG=b:123925776
Change-Id: I7cd4244a1ccc7397d5969b817a52ea48867b4d17 Signed-off-by: Duncan Laurie dlaurie@google.com --- M src/vendorcode/google/chromeos/acpi/amac.asl 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/07/31807/1
diff --git a/src/vendorcode/google/chromeos/acpi/amac.asl b/src/vendorcode/google/chromeos/acpi/amac.asl index 838506a..082fdc0 100644 --- a/src/vendorcode/google/chromeos/acpi/amac.asl +++ b/src/vendorcode/google/chromeos/acpi/amac.asl @@ -80,6 +80,6 @@ }
Printf ("AMAC = %o", ToString (Local2)) - Return (ToString (Local2)) + Return (Local2) } }
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/31807 )
Change subject: vendorcode/google/chromeos: Fix AMAC return type ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/#/c/31807/1/src/vendorcode/google/chromeos/acpi/... File src/vendorcode/google/chromeos/acpi/amac.asl:
https://review.coreboot.org/#/c/31807/1/src/vendorcode/google/chromeos/acpi/... PS1, Line 21: a formatted : * string need to update this as well?
Duncan Laurie has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/31807 )
Change subject: vendorcode/google/chromeos: Fix AMAC return type ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/#/c/31807/1/src/vendorcode/google/chromeos/acpi/... File src/vendorcode/google/chromeos/acpi/amac.asl:
https://review.coreboot.org/#/c/31807/1/src/vendorcode/google/chromeos/acpi/... PS1, Line 21: a formatted : * string
need to update this as well?
Done
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/31807
to look at the new patch set (#2).
Change subject: vendorcode/google/chromeos: Fix AMAC return type ......................................................................
vendorcode/google/chromeos: Fix AMAC return type
The r8152 kernel driver is expecting the AMAC() method to return a raw buffer, not a string. To fix this simply remove the ToString() in the return statement that was converting the buffer to a string.
BUG=b:123925776
Change-Id: I7cd4244a1ccc7397d5969b817a52ea48867b4d17 Signed-off-by: Duncan Laurie dlaurie@google.com --- M src/vendorcode/google/chromeos/acpi/amac.asl 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/07/31807/2
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/31807 )
Change subject: vendorcode/google/chromeos: Fix AMAC return type ......................................................................
Patch Set 2: Code-Review+2
Duncan Laurie has submitted this change and it was merged. ( https://review.coreboot.org/c/coreboot/+/31807 )
Change subject: vendorcode/google/chromeos: Fix AMAC return type ......................................................................
vendorcode/google/chromeos: Fix AMAC return type
The r8152 kernel driver is expecting the AMAC() method to return a raw buffer, not a string. To fix this simply remove the ToString() in the return statement that was converting the buffer to a string.
BUG=b:123925776
Change-Id: I7cd4244a1ccc7397d5969b817a52ea48867b4d17 Signed-off-by: Duncan Laurie dlaurie@google.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/31807 Reviewed-by: Furquan Shaikh furquan@google.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/vendorcode/google/chromeos/acpi/amac.asl 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: build bot (Jenkins): Verified Furquan Shaikh: Looks good to me, approved
diff --git a/src/vendorcode/google/chromeos/acpi/amac.asl b/src/vendorcode/google/chromeos/acpi/amac.asl index 838506a..51159f5 100644 --- a/src/vendorcode/google/chromeos/acpi/amac.asl +++ b/src/vendorcode/google/chromeos/acpi/amac.asl @@ -19,7 +19,7 @@ * passthru feature which can result in the dock ethernet port using the * same MAC address that is assigned to the internal NIC. This is done * by calling an ACPI method at _SB.AMAC() which returns a formatted - * string containing the MAC address for the dock to use. + * string (as a buffer) containing the MAC address for the dock to use. * * The Linux kernel implementation can be found at * drivers/net/usb/r8152.c:vendor_mac_passthru_addr_read() @@ -80,6 +80,6 @@ }
Printf ("AMAC = %o", ToString (Local2)) - Return (ToString (Local2)) + Return (Local2) } }