[PATCH v2 00/10] rework arch/x86/platform/[mrst => intel-mid]

2013-10-09 Thread David Cohen
From: David Cohen This patch set does initial rework from arch/x86/platform/mrst to arch/x86/platform/intel-mid. These changes are necessary to update the obsolete Intel Atom Moorestown code to support the newer Atom processors of this family (called 'intel-mid'). Kuppuswamy Sathyanarayanan (10)

[PATCH v2 03/10] mrst: Fixed checkpatch warnings

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan Fixed checkpatch warnings in mrst related files. Signed-off-by: Kuppuswamy Sathyanarayanan Signed-off-by: David Cohen --- arch/x86/platform/mrst/mrst.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/platform/mrst/mrst.c b/arch

[PATCH v2 02/10] mrst: Fixed indentation issues

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan Fixed indentation issues reported by checkpatch script in mrst related files. Signed-off-by: Kuppuswamy Sathyanarayanan Signed-off-by: David Cohen --- arch/x86/platform/mrst/early_printk_mrst.c |3 ++- arch/x86/platform/mrst/mrst.c | 24 +++

[PATCH v2 01/10] mrst: Fixed printk/pr_* related issues

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan Fixed printk and pr_* related issues in mrst related files. Signed-off-by: Kuppuswamy Sathyanarayanan Signed-off-by: David Cohen --- arch/x86/platform/mrst/early_printk_mrst.c |2 +- arch/x86/platform/mrst/mrst.c |2 +- arch/x86/platform/

[PATCH v2 06/10] intel_mid: Refactored sfi_parse_devs() function

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan SFI device_id[] table parsing code is duplicated in every SFI device handler. This patch removes this code duplication, by adding a seperate function get_device_id() to parse through the device table. Also this patch moves the SPI, I2C, IPC info code from sfi_pars

[PATCH v2 08/10] intel_mid: Added custom handler for ipc devices

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan Added a custom handler for medfield based ipc devices and moved devs_id structure defintion to header file. Signed-off-by: Kuppuswamy Sathyanarayanan Signed-off-by: David Cohen --- arch/x86/include/asm/intel-mid.h| 15 ++ arch/x86/platform/intel

[PATCH v2 07/10] intel_mid: Added custom device_handler support

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan This patch provides a means to add custom handler for SFI devices. If you set device_handler as NULL in device_id table standard SFI device handler will be used. If its not NULL custom handler will be called. Signed-off-by: Kuppuswamy Sathyanarayanan Signed-off

[PATCH v2 10/10] intel_mid: Moved SFI related code to intel_mid_sfi.c

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan Moved SFI specific parsing/handling code to intel_mid_sfi.c. This will enable us to reuse our intel-mid code for platforms that supports firmware interfaces other than SFI (like ACPI). Signed-off-by: Kuppuswamy Sathyanarayanan Signed-off-by: David Cohen --- a

[PATCH v2 05/10] intel_mid: Renamed *mrst* to *intel_mid*

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan mrst is used as common name to represent all intel_mid type soc's. But moorsetwon is just one of the intel_mid soc. So renamed them to use intel_mid. This patch mainly renames the variables and related functions that uses *mrst* prefix with *intel_mid*. To ensur

[PATCH 07/10] intel_mid: Added custom device_handler support

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan This patch provides a means to add custom handler for SFI devices. If you set device_handler as NULL in device_id table standard SFI device handler will be used. If its not NULL custom handler will be called. Signed-off-by: Kuppuswamy Sathyanarayanan Signed-off

[PATCH 10/10] intel_mid: Moved SFI related code to intel_mid_sfi.c

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan Moved SFI specific parsing/handling code to intel_mid_sfi.c. This will enable us to reuse our intel-mid code for platforms that supports firmware interfaces other than SFI (like ACPI). Signed-off-by: Kuppuswamy Sathyanarayanan Signed-off-by: David Cohen --- a

[PATCH 03/10] mrst: Fixed checkpatch warnings

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan Fixed checkpatch warnings in mrst related files. Signed-off-by: Kuppuswamy Sathyanarayanan Signed-off-by: David Cohen --- arch/x86/platform/mrst/mrst.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/platform/mrst/mrst.c b/arch

[PATCH 06/10] intel_mid: Refactored sfi_parse_devs() function

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan SFI device_id[] table parsing code is duplicated in every SFI device handler. This patch removes this code duplication, by adding a seperate function get_device_id() to parse through the device table. Also this patch moves the SPI, I2C, IPC info code from sfi_pars

[PATCH 01/10] mrst: Fixed printk/pr_* related issues

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan Fixed printk and pr_* related issues in mrst related files. Signed-off-by: Kuppuswamy Sathyanarayanan Signed-off-by: David Cohen --- arch/x86/platform/mrst/early_printk_mrst.c |2 +- arch/x86/platform/mrst/mrst.c |2 +- arch/x86/platform/

[PATCH 08/10] intel_mid: Added custom handler for ipc devices

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan Added a custom handler for medfield based ipc devices and moved devs_id structure defintion to header file. Signed-off-by: Kuppuswamy Sathyanarayanan Signed-off-by: David Cohen --- arch/x86/include/asm/intel-mid.h| 15 ++ arch/x86/platform/intel

[PATCH 00/10] rework arch/x86/platform/[mrst => intel-mid]

2013-10-09 Thread David Cohen
This patch set does initial rework from arch/x86/platform/mrst to arch/x86/platform/intel-mid. These changes are necessary to update the obsolete Intel Atom Moorestown code to support the newer Atom processors of this family (called 'intel-mid'). Kuppuswamy Sathyanarayanan (10): mrst: Fixed prin

[PATCH 05/10] intel_mid: Renamed *mrst* to *intel_mid*

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan mrst is used as common name to represent all intel_mid type soc's. But moorsetwon is just one of the intel_mid soc. So renamed them to use intel_mid. This patch mainly renames the variables and related functions that uses *mrst* prefix with *intel_mid*. To ensur

[PATCH 02/10] mrst: Fixed indentation issues

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan Fixed indentation issues reported by checkpatch script in mrst related files. Signed-off-by: Kuppuswamy Sathyanarayanan Signed-off-by: David Cohen --- arch/x86/platform/mrst/early_printk_mrst.c |3 ++- arch/x86/platform/mrst/mrst.c | 24 +++

Re: [PATCH v4 1/4] backlight: introduce backlight_device_registered

2013-10-09 Thread Jani Nikula
On Thu, 10 Oct 2013, Aaron Lu wrote: > On 10/10/2013 12:29 PM, Jani Nikula wrote: >> On Thu, 10 Oct 2013, Aaron Lu wrote: >>> On 10/10/2013 08:25 AM, Rafael J. Wysocki wrote: On Tuesday, October 08, 2013 02:39:58 PM Aaron Lu wrote: > +bool backlight_device_registered(enum backlight_type

[PATCH 07/10] intel_mid: Added custom device_handler support

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan This patch provides a means to add custom handler for SFI devices. If you set device_handler as NULL in device_id table standard SFI device handler will be used. If its not NULL custom handler will be called. Signed-off-by: Kuppuswamy Sathyanarayanan Signed-off

[PATCH 10/10] intel_mid: Moved SFI related code to intel_mid_sfi.c

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan Moved SFI specific parsing/handling code to intel_mid_sfi.c. This will enable us to reuse our intel-mid code for platforms that supports firmware interfaces other than SFI (like ACPI). Signed-off-by: Kuppuswamy Sathyanarayanan Signed-off-by: David Cohen --- a

[PATCH 06/10] intel_mid: Refactored sfi_parse_devs() function

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan SFI device_id[] table parsing code is duplicated in every SFI device handler. This patch removes this code duplication, by adding a seperate function get_device_id() to parse through the device table. Also this patch moves the SPI, I2C, IPC info code from sfi_pars

[PATCH 03/10] mrst: Fixed checkpatch warnings

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan Fixed checkpatch warnings in mrst related files. Signed-off-by: Kuppuswamy Sathyanarayanan Signed-off-by: David Cohen --- arch/x86/platform/mrst/mrst.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/platform/mrst/mrst.c b/arch

[PATCH 08/10] intel_mid: Added custom handler for ipc devices

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan Added a custom handler for medfield based ipc devices and moved devs_id structure defintion to header file. Signed-off-by: Kuppuswamy Sathyanarayanan Signed-off-by: David Cohen --- arch/x86/include/asm/intel-mid.h| 15 ++ arch/x86/platform/intel

[PATCH 05/10] intel_mid: Renamed *mrst* to *intel_mid*

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan mrst is used as common name to represent all intel_mid type soc's. But moorsetwon is just one of the intel_mid soc. So renamed them to use intel_mid. This patch mainly renames the variables and related functions that uses *mrst* prefix with *intel_mid*. To ensur

[PATCH 02/10] mrst: Fixed indentation issues

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan Fixed indentation issues reported by checkpatch script in mrst related files. Signed-off-by: Kuppuswamy Sathyanarayanan Signed-off-by: David Cohen --- arch/x86/platform/mrst/early_printk_mrst.c |3 ++- arch/x86/platform/mrst/mrst.c | 24 +++

[PATCH 00/10] rework arch/x86/platform/[mrst => intel-mid]

2013-10-09 Thread David Cohen
This patch set does initial rework from arch/x86/platform/mrst to arch/x86/platform/intel-mid. These changes are necessary to update the obsolete Intel Atom Moorestown code to support the newer Atom processors of this family (called 'intel-mid'). Kuppuswamy Sathyanarayanan (10): mrst: Fixed prin

[PATCH 01/10] mrst: Fixed printk/pr_* related issues

2013-10-09 Thread David Cohen
From: Kuppuswamy Sathyanarayanan Fixed printk and pr_* related issues in mrst related files. Signed-off-by: Kuppuswamy Sathyanarayanan Signed-off-by: David Cohen --- arch/x86/platform/mrst/early_printk_mrst.c |2 +- arch/x86/platform/mrst/mrst.c |2 +- arch/x86/platform/

Re: [PATCH v4 1/4] backlight: introduce backlight_device_registered

2013-10-09 Thread Aaron Lu
On 10/10/2013 12:29 PM, Jani Nikula wrote: > On Thu, 10 Oct 2013, Aaron Lu wrote: >> On 10/10/2013 08:25 AM, Rafael J. Wysocki wrote: >>> On Tuesday, October 08, 2013 02:39:58 PM Aaron Lu wrote: +bool backlight_device_registered(enum backlight_type type) +{ + bool found = false; >>

Re: [PATCH v4 1/4] backlight: introduce backlight_device_registered

2013-10-09 Thread Jani Nikula
On Thu, 10 Oct 2013, Aaron Lu wrote: > On 10/10/2013 08:25 AM, Rafael J. Wysocki wrote: >> On Tuesday, October 08, 2013 02:39:58 PM Aaron Lu wrote: >>> +bool backlight_device_registered(enum backlight_type type) >>> +{ >>> + bool found = false; >>> + struct backlight_device *bd; >>> + >>> +

Re: [PATCH v4 3/4] ACPI / video: Do not register backlight if win8 and native interface exists

2013-10-09 Thread Aaron Lu
On 10/10/2013 08:29 AM, Rafael J. Wysocki wrote: > On Tuesday, October 08, 2013 02:40:00 PM Aaron Lu wrote: >> According to Matthew Garrett, "Windows 8 leaves backlight control up >> to individual graphics drivers rather than making ACPI calls itself. >> There's plenty of evidence to suggest that t

Re: [PATCH v4 1/4] backlight: introduce backlight_device_registered

2013-10-09 Thread Rafael J. Wysocki
On Thursday, October 10, 2013 08:54:29 AM Aaron Lu wrote: > On 10/10/2013 08:25 AM, Rafael J. Wysocki wrote: > > On Tuesday, October 08, 2013 02:39:58 PM Aaron Lu wrote: > >> Introduce a new API for modules to query if a specific type of backlight > >> device has been registered. This is useful for

Re: [PATCH v4 1/4] backlight: introduce backlight_device_registered

2013-10-09 Thread Aaron Lu
On 10/10/2013 08:25 AM, Rafael J. Wysocki wrote: > On Tuesday, October 08, 2013 02:39:58 PM Aaron Lu wrote: >> Introduce a new API for modules to query if a specific type of backlight >> device has been registered. This is useful for some backlight device >> provider module(e.g. ACPI video) to know

Re: [PATCH v4 3/4] ACPI / video: Do not register backlight if win8 and native interface exists

2013-10-09 Thread Rafael J. Wysocki
On Tuesday, October 08, 2013 02:40:00 PM Aaron Lu wrote: > According to Matthew Garrett, "Windows 8 leaves backlight control up > to individual graphics drivers rather than making ACPI calls itself. > There's plenty of evidence to suggest that the Intel driver for > Windows [8] doesn't use the ACPI

Re: [PATCH v4 1/4] backlight: introduce backlight_device_registered

2013-10-09 Thread Rafael J. Wysocki
On Tuesday, October 08, 2013 02:39:58 PM Aaron Lu wrote: > Introduce a new API for modules to query if a specific type of backlight > device has been registered. This is useful for some backlight device > provider module(e.g. ACPI video) to know if a native control > interface(e.g. the interface cr