Re: [RFC Patch v1 11/13] ACPI, i915: replace open-coded _DSM specific code with helper functions

2013-12-18 Thread Daniel Vetter
On Wed, Dec 18, 2013 at 02:58:19PM +0800, Jiang Liu wrote: > Use helper functions to simplify _DSM related code in i915 driver. > > Function intel_dsm() is used to check functions supported by ACPI _DSM > method, but it has strange check for special value 0x8002. After > digging into nouveau

Re: [RFC Patch v1 11/13] ACPI, i915: replace open-coded _DSM specific code with helper functions

2013-12-18 Thread Daniel Vetter
On Wed, Dec 18, 2013 at 02:58:19PM +0800, Jiang Liu wrote: Use helper functions to simplify _DSM related code in i915 driver. Function intel_dsm() is used to check functions supported by ACPI _DSM method, but it has strange check for special value 0x8002. After digging into nouveau

[RFC Patch v1 11/13] ACPI, i915: replace open-coded _DSM specific code with helper functions

2013-12-17 Thread Jiang Liu
Use helper functions to simplify _DSM related code in i915 driver. Function intel_dsm() is used to check functions supported by ACPI _DSM method, but it has strange check for special value 0x8002. After digging into nouveau driver, I think the check is copied from nouveau driver and is

[RFC Patch v1 11/13] ACPI, i915: replace open-coded _DSM specific code with helper functions

2013-12-17 Thread Jiang Liu
Use helper functions to simplify _DSM related code in i915 driver. Function intel_dsm() is used to check functions supported by ACPI _DSM method, but it has strange check for special value 0x8002. After digging into nouveau driver, I think the check is copied from nouveau driver and is