RE: [PATCH][v2] ACPI: Do not report _OSI("Darwin") when acpi_osi=!Darwin provided

2016-02-01 Thread Chen, Yu C
Rui > Subject: Re: [PATCH][v2] ACPI: Do not report _OSI("Darwin") when > acpi_osi=!Darwin provided > > On Mon, Feb 1, 2016 at 11:13 AM, Chen, Yu C wrote: > > >> > +static bool acpi_osi_setup_disabled(char *str) { > >> > + int i; > >

Re: [PATCH][v2] ACPI: Do not report _OSI("Darwin") when acpi_osi=!Darwin provided

2016-02-01 Thread Andy Shevchenko
On Mon, Feb 1, 2016 at 11:13 AM, Chen, Yu C wrote: >> > +static bool acpi_osi_setup_disabled(char *str) { >> > + int i; >> > + struct osi_setup_entry *osi; >> > + >> > + if (!str) >> > + return false; >> > + >> > + for (i = 0; i < OSI_STRING_ENTRIES_MAX; i++)

RE: [PATCH][v2] ACPI: Do not report _OSI("Darwin") when acpi_osi=!Darwin provided

2016-02-01 Thread Chen, Yu C
la.com; Zhang, Rui > Subject: Re: [PATCH][v2] ACPI: Do not report _OSI("Darwin") when > acpi_osi=!Darwin provided > > On Mon, Feb 1, 2016 at 4:26 AM, Chen Yu wrote: > > Commit 7bc5a2bad0b8 ("ACPI: Support _OSI("Darwin") correctly") always > > re

Re: [PATCH][v2] ACPI: Do not report _OSI("Darwin") when acpi_osi=!Darwin provided

2016-02-01 Thread Andy Shevchenko
On Mon, Feb 1, 2016 at 4:26 AM, Chen Yu wrote: > Commit 7bc5a2bad0b8 ("ACPI: Support _OSI("Darwin") correctly") always > reports positive value when Apple hardware queries _OSI("Darwin"). > But sometimes the users might want to tell the hardware they don't > need the Darwin feature, for example, u

[PATCH][v2] ACPI: Do not report _OSI("Darwin") when acpi_osi=!Darwin provided

2016-01-31 Thread Chen Yu
Commit 7bc5a2bad0b8 ("ACPI: Support _OSI("Darwin") correctly") always reports positive value when Apple hardware queries _OSI("Darwin"). But sometimes the users might want to tell the hardware they don't need the Darwin feature, for example, users may leverage the hardware to power off the Thunderb