platform-x86 updates for next 3.6 rc
Subsystems (5)
Corentin Chary
maintainercover platform-x86 updates for next 3.6 rc
Hi Matthew,
Some patches for platform x86 drivers that should be merged ASAP. The CONFIG_ACPI_VIDEO patch is especially important since new demote/promote mechanism is currently broken when ACPI_VIDEO=m
Thanks,
Corentin Chary (2):
drivers-platform-x86: remove useless #ifdef CONFIG_ACPI_VIDEO
asus-laptop: HRWS/HWRS typo
Maxim Nikulin (1):
platform/x86: fix asus_laptop.wled_type description
drivers/platform/x86/acer-wmi.c | 2 -- drivers/platform/x86/apple-gmux.c | 4 ---- drivers/platform/x86/asus-laptop.c | 10 +++++----- drivers/platform/x86/asus-wmi.c | 4 ---- drivers/platform/x86/samsung-laptop.c | 4 ---- 5 files changed, 5 insertions(+), 19 deletions(-)
Signature · 1 line
1.7.9.5
Corentin Chary
maintainerPATCH 1/3 drivers-platform-x86: remove useless #ifdef CONFIG_ACPI_VIDEO
--- drivers/platform/x86/acer-wmi.c | 2 -- drivers/platform/x86/apple-gmux.c | 4 ---- drivers/platform/x86/asus-wmi.c | 4 ---- drivers/platform/x86/samsung-laptop.c | 4 ---- 4 files changed, 14 deletions(-)
drivers/platform/x86/acer-wmi.c +0 -2
@@ -2196,10 +2196,8 @@ static int __init acer_wmi_init(void) interface->capability &= ~ACER_CAP_BRIGHTNESS ;pr_info ("Brightness must be controlled by acpi video driver\n" ); }else { -#ifdef CONFIG_ACPI_VIDEO pr_info ("Disabling ACPI video driver\n" );acpi_video_unregister (); -#endif }if (wmi_has_guid (WMID_GUID3 )) {
drivers/platform/x86/apple-gmux.c +0 -4
@@ -505,9 +505,7 @@ static int __devinit gmux_probe(struct pnp_dev *pnp,* Disable the other backlight choices. */ acpi_video_dmi_promote_vendor (); -#if defined (CONFIG_ACPI_VIDEO ) || defined (CONFIG_ACPI_VIDEO_MODULE )acpi_video_unregister (); -#endif apple_bl_unregister (); gmux_data->power_state =VGA_SWITCHEROO_ON ;
@@ -593,9 +591,7 @@ static void __devexit gmux_remove(struct pnp_dev *pnp)kfree (gmux_data);acpi_video_dmi_demote_vendor (); -#if defined (CONFIG_ACPI_VIDEO ) || defined (CONFIG_ACPI_VIDEO_MODULE )acpi_video_register (); -#endif apple_bl_register (); }
drivers/platform/x86/asus-wmi.c +0 -4
@@ -47,9 +47,7 @@#include <linux/thermal.h> #include <acpi/acpi_bus.h> #include <acpi/acpi_drivers.h> -#ifdef CONFIG_ACPI_VIDEO #include <acpi/video.h> -#endif #include "asus-wmi.h"
@@ -1780,10 +1778,8 @@ static int asus_wmi_add(struct platform_device *pdev)if (asus->driver->quirks->wmi_backlight_power)acpi_video_dmi_promote_vendor ();if (!acpi_video_backlight_support ()) { -#ifdef CONFIG_ACPI_VIDEO pr_info ("Disabling ACPI video driver\n" );acpi_video_unregister (); -#endif err =asus_wmi_backlight_init (asus);if (err && err != -ENODEV ) goto fail_backlight;
drivers/platform/x86/samsung-laptop.c +0 -4
@@ -26,9 +26,7 @@#include <linux/seq_file.h> #include <linux/debugfs.h> #include <linux/ctype.h> -#ifdef CONFIG_ACPI_VIDEO #include <acpi/video.h> -#endif /* * This driver is needed because a number of Samsung laptops do not hook
@@ -1558,9 +1556,7 @@ static int __init samsung_init(void) samsung->handle_backlight = false; }else if (samsung->quirks->broken_acpi_video) {pr_info ("Disabling ACPI video driver\n" ); -#ifdef CONFIG_ACPI_VIDEO acpi_video_unregister (); -#endif }#endif
Signature · 1 line
1.7.9.5
Re: [PATCH 1/3] drivers-platform-x86: remove useless #ifdef CONFIG_ACPI_VIDEO
於 一,2012-08-20 於 23:01 +0200,Corentin Chary 提到:
Quoted 13 lines
Signed-off-by Corentin Chary <[email protected]>--- drivers/platform/x86/acer-wmi.c | 2 -- drivers/platform/x86/apple-gmux.c | 4 ---- drivers/platform/x86/asus-wmi.c | 4 ---- drivers/platform/x86/samsung-laptop.c | 4 ---- 4 files changed, 14 deletions(-)drivers/platform/x86/acer-wmi.c +0
-0
drivers/platform/x86/acer-wmi.c static int __init acer_wmi_init(void) · line 2202
Quoted 9 lines
drivers/platform/x86/acer-wmi.c +0
-2@@ -2196,10 +2196,8 @@ static int __init acer_wmi_init(void) interface->capability &= ~ACER_CAP_BRIGHTNESS ;pr_info ("Brightness must be controlled by acpi video driver\n" ); }else { -#ifdef CONFIG_ACPI_VIDEO pr_info ("Disabling ACPI video driver\n" );acpi_video_unregister (); -#endif }
Yes, we need this patch otherwise the acpi/video will not unregister if acpi/video build to module. It will cause regression on v3.6 kernel for some machines backlight control need use 'acpi_backlight=vendor'.
Thanks a lot!
Joey Lee
Quoted 65 lines
drivers/platform/x86/acer-wmi.c +0
-0if (wmi_has_guid (WMID_GUID3 )) {drivers/platform/x86/apple-gmux.c +0
-4@@ -505,9 +505,7 @@ static int __devinit gmux_probe(struct pnp_dev *pnp,* Disable the other backlight choices. */ acpi_video_dmi_promote_vendor (); -#if defined (CONFIG_ACPI_VIDEO ) || defined (CONFIG_ACPI_VIDEO_MODULE )acpi_video_unregister (); -#endif apple_bl_unregister (); gmux_data->power_state =VGA_SWITCHEROO_ON ;@@ -593,9 +591,7 @@ static void __devexit gmux_remove(struct pnp_dev *pnp)kfree (gmux_data);acpi_video_dmi_demote_vendor (); -#if defined (CONFIG_ACPI_VIDEO ) || defined (CONFIG_ACPI_VIDEO_MODULE )acpi_video_register (); -#endif apple_bl_register (); }drivers/platform/x86/asus-wmi.c +0
-4@@ -47,9 +47,7 @@#include <linux/thermal.h> #include <acpi/acpi_bus.h> #include <acpi/acpi_drivers.h> -#ifdef CONFIG_ACPI_VIDEO #include <acpi/video.h> -#endif #include "asus-wmi.h" @@ -1780,10 +1778,8 @@ static int asus_wmi_add(struct platform_device *pdev)if (asus->driver->quirks->wmi_backlight_power)acpi_video_dmi_promote_vendor ();if (!acpi_video_backlight_support ()) { -#ifdef CONFIG_ACPI_VIDEO pr_info ("Disabling ACPI video driver\n" );acpi_video_unregister (); -#endif err =asus_wmi_backlight_init (asus);if (err && err != -ENODEV ) goto fail_backlight;drivers/platform/x86/samsung-laptop.c +0
-2@@ -26,9 +26,7 @@#include <linux/seq_file.h> #include <linux/debugfs.h> #include <linux/ctype.h> -#ifdef CONFIG_ACPI_VIDEO #include <acpi/video.h> -#endif /* * This driver is needed because a number of Samsung laptops do not hook
drivers/platform/x86/samsung-laptop.c static int __init samsung_init(void) · line 1562
Quoted 9 lines
drivers/platform/x86/samsung-laptop.c +0
-2@@ -1558,9 +1556,7 @@ static int __init samsung_init(void) samsung->handle_backlight = false; }else if (samsung->quirks->broken_acpi_video) {pr_info ("Disabling ACPI video driver\n" ); -#ifdef CONFIG_ACPI_VIDEO acpi_video_unregister (); -#endif }#endif
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Corentin Chary
maintainerRe: [PATCH 1/3] drivers-platform-x86: remove useless #ifdef CONFIG_ACPI_VIDEO
In reply to Corentin CharyQuoted 97 lines · Corentin Chary
Signed-off-by Corentin Chary <[email protected]>--- drivers/platform/x86/acer-wmi.c | 2 -- drivers/platform/x86/apple-gmux.c | 4 ---- drivers/platform/x86/asus-wmi.c | 4 ---- drivers/platform/x86/samsung-laptop.c | 4 ---- 4 files changed, 14 deletions(-)drivers/platform/x86/acer-wmi.c +0
-2@@ -2196,10 +2196,8 @@ static int __init acer_wmi_init(void) interface->capability &= ~ACER_CAP_BRIGHTNESS ;pr_info ("Brightness must be controlled by acpi video driver\n" ); }else { -#ifdef CONFIG_ACPI_VIDEO pr_info ("Disabling ACPI video driver\n" );acpi_video_unregister (); -#endif }if (wmi_has_guid (WMID_GUID3 )) {drivers/platform/x86/apple-gmux.c +0
-4@@ -505,9 +505,7 @@ static int __devinit gmux_probe(struct pnp_dev *pnp,* Disable the other backlight choices. */ acpi_video_dmi_promote_vendor (); -#if defined (CONFIG_ACPI_VIDEO ) || defined (CONFIG_ACPI_VIDEO_MODULE )acpi_video_unregister (); -#endif apple_bl_unregister (); gmux_data->power_state =VGA_SWITCHEROO_ON ;@@ -593,9 +591,7 @@ static void __devexit gmux_remove(struct pnp_dev *pnp)kfree (gmux_data);acpi_video_dmi_demote_vendor (); -#if defined (CONFIG_ACPI_VIDEO ) || defined (CONFIG_ACPI_VIDEO_MODULE )acpi_video_register (); -#endif apple_bl_register (); }drivers/platform/x86/asus-wmi.c +0
-4@@ -47,9 +47,7 @@#include <linux/thermal.h> #include <acpi/acpi_bus.h> #include <acpi/acpi_drivers.h> -#ifdef CONFIG_ACPI_VIDEO #include <acpi/video.h> -#endif #include "asus-wmi.h" @@ -1780,10 +1778,8 @@ static int asus_wmi_add(struct platform_device *pdev)if (asus->driver->quirks->wmi_backlight_power)acpi_video_dmi_promote_vendor ();if (!acpi_video_backlight_support ()) { -#ifdef CONFIG_ACPI_VIDEO pr_info ("Disabling ACPI video driver\n" );acpi_video_unregister (); -#endif err =asus_wmi_backlight_init (asus);if (err && err != -ENODEV ) goto fail_backlight;drivers/platform/x86/samsung-laptop.c +0
-5@@ -26,9 +26,7 @@#include <linux/seq_file.h> #include <linux/debugfs.h> #include <linux/ctype.h> -#ifdef CONFIG_ACPI_VIDEO #include <acpi/video.h> -#endif /* * This driver is needed because a number of Samsung laptops do not hook @@ -1558,9 +1556,7 @@ static int __init samsung_init(void) samsung->handle_backlight = false; }else if (samsung->quirks->broken_acpi_video) {pr_info ("Disabling ACPI video driver\n" ); -#ifdef CONFIG_ACPI_VIDEO acpi_video_unregister (); -#endif }#endif --
Quoted 2 lines
1.7.9.5
Any news on that ? This should really be merged before the end of rcs. Thanks,
Signature · 2 lines
Corentin Chary http://xf.iksaif.net
Re: [PATCH 1/3] drivers-platform-x86: remove useless #ifdef CONFIG_ACPI_VIDEO
Sorry, yes, I'll be merging these this week.
Signature · 1 line
Matthew Garrett | [email protected]
Corentin Chary
maintainerPATCH 2/3 asus-laptop: HRWS/HWRS typo
In reply to Corentin Chary--- drivers/platform/x86/asus-laptop.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/platform/x86/asus-laptop.c +4 -4
@@ -863,9 +863,9 @@ static ssize_t show_infos(struct device *dev,* The significance of others is yet to be found. * If we don't find the method, we assume the device are present. */ - rv =acpi_evaluate_integer (asus->handle,"HRWS" ,NULL , &temp); + rv =acpi_evaluate_integer (asus->handle,"HWRS" ,NULL , &temp);if (!ACPI_FAILURE (rv)) - len +=sprintf (page + len,"HRWS value : %#x\n" , + len +=sprintf (page + len,"HWRS value : %#x\n" , (uint ) temp);/* * Another value for userspace: the ASYM method returns 0x02 for
@@ -1751,9 +1751,9 @@ static int asus_laptop_get_info(struct asus_laptop *asus)* The significance of others is yet to be found. */ status = -acpi_evaluate_integer (asus->handle,"HRWS" ,NULL , &hwrs_result); +acpi_evaluate_integer (asus->handle,"HWRS" ,NULL , &hwrs_result);if (!ACPI_FAILURE (status)) -pr_notice (" HRWS returned %x" , (int )hwrs_result); +pr_notice (" HWRS returned %x" , (int )hwrs_result);if (!acpi_check_handle (asus->handle,METHOD_WL_STATUS ,NULL )) asus->have_rsts = true;
Signature · 1 line
1.7.9.5
Re: [PATCH 2/3] asus-laptop: HRWS/HWRS typo
Quoted 23 lines · On Mon, 20 Aug 2012 23:01:51 +0200 Corentin Chary <[email protected]>…
Signed-off-by Corentin Chary <[email protected]>--- drivers/platform/x86/asus-laptop.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/platform/x86/asus-laptop.c +2
-2@@ -863,9 +863,9 @@ static ssize_t show_infos(struct device *dev,* The significance of others is yet to be found. * If we don't find the method, we assume the device are present. */ - rv =acpi_evaluate_integer (asus->handle,"HRWS" ,NULL , &temp); + rv =acpi_evaluate_integer (asus->handle,"HWRS" ,NULL , &temp);if (!ACPI_FAILURE (rv)) - len +=sprintf (page + len,"HRWS value : %#x\n" , + len +=sprintf (page + len,"HWRS value : %#x\n" , (uint ) temp);/* * Another value for userspace: the ASYM method returns 0x02 for @@ -1751,9 +1751,9 @@ static int asus_laptop_get_info(struct asus_laptop *asus)* The significance of others is yet to be found.
drivers/platform/x86/asus-laptop.c static int asus_laptop_get_info(struct asus_laptop *asus) · line 1759
Quoted 10 lines
drivers/platform/x86/asus-laptop.c +2
-2*/ status = -acpi_evaluate_integer (asus->handle,"HRWS" ,NULL , &hwrs_result); +acpi_evaluate_integer (asus->handle,"HWRS" ,NULL , &hwrs_result);if (!ACPI_FAILURE (status)) -pr_notice (" HRWS returned %x" , (int )hwrs_result); +pr_notice (" HWRS returned %x" , (int )hwrs_result);if (!acpi_check_handle (asus->handle,METHOD_WL_STATUS ,NULL )) asus->have_rsts = true;
Please also tag this commit
Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=24222
so we can track it back out of bugzilla.
Corentin Chary
maintainerPATCH 3/3 platform/x86: fix asus_laptop.wled_type description
In reply to Corentin CharyFrom: Maxim Nikulin <[email protected]>
MODULE_PARM_DESC for wlan_status is further in the same file
--- drivers/platform/x86/asus-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/asus-laptop.c +1 -1
@@ -85,7 +85,7 @@ static char *wled_type = "unknown";static char *bled_type ="unknown" ;module_param (wled_type, charp,0444 ); -MODULE_PARM_DESC (wlan_status,"Set the wled type on boot " +MODULE_PARM_DESC (wled_type,"Set the wled type on boot " "(unknown, led or rfkill). " "default is unknown" );
Signature · 1 line
1.7.9.5