Re: [PATCH 6/7] acpi: Create subtable parsing infrastructure

2018-11-19 Thread Keith Busch
On Mon, Nov 19, 2018 at 10:58:12AM +0100, Rafael J. Wysocki wrote: > > +static unsigned long __init > > +acpi_get_entry_length(struct acpi_subtable_entry *entry) > > +{ > > + switch (entry->type) { > > + case ACPI_SUBTABLE_COMMON: > > + return entry->hdr->common.length; >

Re: [PATCH 6/7] acpi: Create subtable parsing infrastructure

2018-11-19 Thread Keith Busch
On Mon, Nov 19, 2018 at 10:58:12AM +0100, Rafael J. Wysocki wrote: > > +static unsigned long __init > > +acpi_get_entry_length(struct acpi_subtable_entry *entry) > > +{ > > + switch (entry->type) { > > + case ACPI_SUBTABLE_COMMON: > > + return entry->hdr->common.length; >

Re: [PATCH 6/7] acpi: Create subtable parsing infrastructure

2018-11-19 Thread Rafael J. Wysocki
On Wed, Nov 14, 2018 at 11:53 PM Keith Busch wrote: > > Parsing entries in an ACPI table had assumed a generic header structure > that is most common. There is no standard ACPI header, though, so less > common types would need custom parsers if they want go walk their > subtable entry list. > >

Re: [PATCH 6/7] acpi: Create subtable parsing infrastructure

2018-11-19 Thread Rafael J. Wysocki
On Wed, Nov 14, 2018 at 11:53 PM Keith Busch wrote: > > Parsing entries in an ACPI table had assumed a generic header structure > that is most common. There is no standard ACPI header, though, so less > common types would need custom parsers if they want go walk their > subtable entry list. > >

[PATCH 6/7] acpi: Create subtable parsing infrastructure

2018-11-14 Thread Keith Busch
Parsing entries in an ACPI table had assumed a generic header structure that is most common. There is no standard ACPI header, though, so less common types would need custom parsers if they want go walk their subtable entry list. Create the infrastructure for adding different table types so

[PATCH 6/7] acpi: Create subtable parsing infrastructure

2018-11-14 Thread Keith Busch
Parsing entries in an ACPI table had assumed a generic header structure that is most common. There is no standard ACPI header, though, so less common types would need custom parsers if they want go walk their subtable entry list. Create the infrastructure for adding different table types so