Skip to content

Commit

Permalink
Core: Always set GPIO VendorOffset
Browse files Browse the repository at this point in the history
Acpiexec gives this warning when resources containing GPIOs are extracted
using Resource command:

  **** Data mismatch in descriptor [00] type 8C, Offset 00000000 ****
  Mismatch at byte offset 13: is 00, should be 25
  **** Data mismatch in descriptor [01] type 8C, Offset 00000025 ****
  Mismatch at byte offset 13: is 00, should be 25

This happens because we do not set VendorOffset when doing resource to AML
conversion. Fix this by always setting VendorOffset.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
  • Loading branch information
westeri authored and acpibob committed Mar 23, 2017
1 parent 9773921 commit 51a92f4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions source/components/resources/rsmisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,10 +705,7 @@ AcpiRsConvertResourceToAml (

/* Set vendor offset only if there is vendor data */

if (Resource->Data.Gpio.VendorLength)
{
ACPI_SET16 (Target, AmlLength);
}
ACPI_SET16 (Target, AmlLength);

AcpiRsSetResourceLength (AmlLength, Aml);
break;
Expand Down

0 comments on commit 51a92f4

Please sign in to comment.