[PATCH 23/32] ideapad-laptop: Port to new backlight interface selection API

2015-06-10 Thread Hans de Goede
Port the backlight selection logic to the new backlight interface selection API. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/platform/x86/ideapad-laptop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/ideapad-laptop.c

[PATCH 21/32] eeepc-laptop: Port to new backlight interface selection API

2015-06-10 Thread Hans de Goede
Port the backlight selection logic to the new backlight interface selection API. This commit also removes various obsolete pr_xxx messages related to backlight interface selection. These are obsolete because they assume there is only a vendor or acpi backlight driver and no other choice. Also

[PATCH 22/32] fujitsu-laptop: Port to new backlight interface selection API

2015-06-10 Thread Hans de Goede
Port the backlight selection logic to the new backlight interface selection API. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/platform/x86/fujitsu-laptop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/platform/x86/fujitsu-laptop.c

[PATCH 20/32] dell-wmi: Port to new backlight interface selection API

2015-06-10 Thread Hans de Goede
Port the backlight selection logic to the new backlight interface selection API. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/platform/x86/dell-wmi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/dell-wmi.c

[PATCH 10/32] acpi-video: Port to new backlight interface selection API

2015-06-10 Thread Hans de Goede
Most of the patch is moving the dmi quirks for forcing use of the acpi-video / the native backlight interface to video_detect.c. What remains is a nice cleanup. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/acpi/video.c| 178 +++-

[PATCH 09/32] drm: i915: Port to new backlight interface selection API

2015-06-10 Thread Hans de Goede
This results in a nice cleanup, as we can replace the complicated logic from should_ignore_backlight_request() with a simple check for the type being native. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/gpu/drm/i915/intel_opregion.c | 12 +--- 1 file changed, 1

[PATCH 25/32] msi-laptop: Port to new backlight interface selection API

2015-06-10 Thread Hans de Goede
Port the backlight selection logic to the new backlight interface selection API. This commit also removes various obsolete pr_xxx messages related to backlight interface selection. These are obsolete because they assume there is only a vendor or acpi backlight driver and no other choice. Also

[PATCH 04/32] acpi-video-detect: Move acpi_is_video_device() to acpi/scan.c

2015-06-10 Thread Hans de Goede
This allows video_detect.c to be build as a module, this is a preparation patch for the backlight interface selection logic cleanup. Note this commit also causes acpi_is_video_device() to always be build indepedent of CONFIG_ACPI_VIDEO, as there is no reason to make its building depend on

[PATCH 03/32] acpi-video-detect: Make acpi_video_get_capabilities a private function

2015-06-10 Thread Hans de Goede
acpi_video_get_capabilities() is only used inside video_detect.c so make it static. While at it also remove the prototype for the non existent acpi_video_display_switch_support function from acpi.h Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/acpi/video_detect.c | 3 +--

[PATCH 02/32] acpi-video-detect: Remove the unused acpi_video_dmi_demote_vendor() function

2015-06-10 Thread Hans de Goede
Remove the now unused acpi_video_dmi_demote_vendor() function, this was never a proper counter part of acpi_video_dmi_promote_vendor() since the calls to acpi_video_dmi_promote_vendor() are not counted. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/acpi/video_detect.c | 9

[PATCH 08/32] acpi-video-detect: Unregister acpi_video backlight when dmi quirks are added

2015-06-10 Thread Hans de Goede
Make acpi_video_set_dmi_backlight_type() call acpi_video_unregister_backlight() when the new dmi quirk results in the desired backlight interface being of a type other then acpi_backlight_video. This avoid the need for the second if in the following construction which is currently found in many

[PATCH 00/32] acpi-video: Rewrite backlight interface selection logic

2015-06-10 Thread Hans de Goede
Hi All, Here is the long promised rewrite / cleanup of the acpi-video (and platform/x86) backlight interface selection logic. Reviewers do not be alarmed by the large number of patches, the gist of the series is in patches 6-13, the earlier ones are a few simple prepararion patches, and the

[PATCH 01/32] apple-gmux: Stop using acpi_video_dmi_demote_vendor()

2015-06-10 Thread Hans de Goede
acpi_video_dmi_demote_vendor() is going away as part of the cleanup of the code for determinging which backlight class driver(s) to register. The call to acpi_video_dmi_demote_vendor() was meant to undo the call to acpi_video_dmi_promote_vendor() when the gmux device is removed, this is

[PATCH 30/32] toshiba-acpi: Port to new backlight interface selection API

2015-06-10 Thread Hans de Goede
Port the backlight selection logic to the new backlight interface selection API. Also fix a compiler warning about bt_present not being initialized. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/platform/x86/toshiba_acpi.c | 9 +++-- 1 file changed, 3 insertions(+), 6

[PATCH 29/32] thinkpad-acpi: Port to new backlight interface selection API

2015-06-10 Thread Hans de Goede
Port the backlight selection logic to the new backlight interface selection API. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/platform/x86/thinkpad_acpi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/thinkpad_acpi.c

[PATCH 31/32] acpi-video-detect: Remove old API

2015-06-10 Thread Hans de Goede
Remove the old backlight interface selection API now that all drivers have been ported to the new API. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/acpi/video_detect.c | 31 --- include/linux/acpi.h| 19 --- 2 files changed, 50

[PATCH 14/32] acer-wmi: Port to new backlight interface selection API

2015-06-10 Thread Hans de Goede
Port the backlight selection logic to the new backlight interface selection API. This commit also removes various obsolete pr_xxx messages related to backlight interface selection. These are obsolete because they assume there is only a vendor or acpi backlight driver and no other choice. Also

[PATCH 24/32] intel-oaktrail: Port to new backlight interface selection API

2015-06-10 Thread Hans de Goede
Port the backlight selection logic to the new backlight interface selection API. This commit also removes various obsolete pr_xxx messages related to backlight interface selection. These are obsolete because they assume there is only a vendor or acpi backlight driver and no other choice. Also

[PATCH 17/32] asus-wmi: Port to new backlight interface selection API

2015-06-10 Thread Hans de Goede
Port the backlight selection logic to the new backlight interface selection API. This commit also removes various obsolete pr_xxx messages related to backlight interface selection. These are obsolete because they assume there is only a vendor or acpi backlight driver and no other choice. Also

[PATCH 19/32] dell-laptop: Port to new backlight interface selection API

2015-06-10 Thread Hans de Goede
Port the backlight selection logic to the new backlight interface selection API. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/platform/x86/dell-laptop.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/platform/x86/dell-laptop.c

[PATCH 16/32] asus-laptop: Port to new backlight interface selection API

2015-06-10 Thread Hans de Goede
Port the backlight selection logic to the new backlight interface selection API. This commit also removes various obsolete pr_xxx messages related to backlight interface selection. These are obsolete because they assume there is only a vendor or acpi backlight driver and no other choice. Also

[PATCH 11/32] acpi-video: Move backlight notifier to video_detect.c

2015-06-10 Thread Hans de Goede
Move the unregistering of the acpi backlight interface on registering of a native backlight from video.c to video_detect.c where it belongs. Note this removes support for re-registering the acpi backlight interface when the native interface goes away. In practice this never happens and it

[PATCH 18/32] compal-laptop: Port to new backlight interface selection API

2015-06-10 Thread Hans de Goede
Port the backlight selection logic to the new backlight interface selection API. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/platform/x86/compal-laptop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/compal-laptop.c

[PATCH 13/32] acpi-video: Fix acpi_video _register vs _unregister_backlight race

2015-06-10 Thread Hans de Goede
It is possible for a native backlight driver to load while acpi_video_register is running, which may lead to acpi_video_unregister_backlight being called while acpi_video_register is running and the 2 racing against eachother. The register_count variable protects against this, but not in a thread

[PATCH 26/32] msi-wmi: Port to new backlight interface selection API

2015-06-10 Thread Hans de Goede
Port the backlight selection logic to the new backlight interface selection API. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/platform/x86/msi-wmi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/msi-wmi.c

[PATCH 12/32] acpi-video: Move dmi_check_system from module_init to acpi_video_register

2015-06-10 Thread Hans de Goede
When builtin there is no guarantee in which order module_init functions are run, so acpi_video_register() may get called from the i915 driver (if it is also builtin) before acpi_video_init() gets called, resulting in the dmi quirks not yet being parsed. This commit moves the dmi_check_system()

[PATCH 15/32] apple-gmux: Port to new backlight interface selection API

2015-06-10 Thread Hans de Goede
Port the backlight selection logic to the new backlight interface selection API. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/platform/x86/apple-gmux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/platform/x86/apple-gmux.c

[PATCH 32/32] acpi-video: Make acpi_video_unregister_backlight() private

2015-06-10 Thread Hans de Goede
acpi_video_unregister_backlight() is now only used by video_detect.c which is part of the same acpi_video module as video.c, make acpi_video_unregister_backlight() private to this module. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/acpi/video.c| 1 -

[PATCH 28/32] sony-laptop: Port to new backlight interface selection API

2015-06-10 Thread Hans de Goede
Port the backlight selection logic to the new backlight interface selection API. This commit also removes various obsolete pr_xxx messages related to backlight interface selection. These are obsolete because they assume there is only a vendor or acpi backlight driver and no other choice. Also

[PATCH] hp_wireless: remove unused header files

2015-06-10 Thread Alex Hung
Signed-off-by: Alex Hung alex.h...@canonical.com --- drivers/platform/x86/hp-wireless.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/platform/x86/hp-wireless.c b/drivers/platform/x86/hp-wireless.c index 4e4cc8b..731c69b 100644 --- a/drivers/platform/x86/hp-wireless.c +++

Re: [PATCH 29/32] thinkpad-acpi: Port to new backlight interface selection API

2015-06-10 Thread Henrique de Moraes Holschuh
On Wed, Jun 10, 2015, at 10:01, Hans de Goede wrote: Port the backlight selection logic to the new backlight interface selection API. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Henrique de Moraes Holschuh h...@hmh.eng.br --- drivers/platform/x86/thinkpad_acpi.c | 5 +++--

[PATCH] Add wapf1 quirk for Asus X550VC

2015-06-10 Thread Dmitry Tunin
Wireless is always blocked on this device. There is no way to unblock by software or hardware. 1: asus-wlan: Wireless LAN Soft blocked: no Hard blocked: no 2: asus-bluetooth: Bluetooth Soft blocked: yes Hard blocked: no 3: phy0: Wireless LAN Soft blocked: no Hard blocked: yes

Re: [PATCH 28/32] sony-laptop: Port to new backlight interface selection API

2015-06-10 Thread Mattia Dongili
On Wed, Jun 10, 2015 at 03:01:28PM +0200, Hans de Goede wrote: Port the backlight selection logic to the new backlight interface selection API. This commit also removes various obsolete pr_xxx messages related to backlight interface selection. These are obsolete because they assume there is

Re: sony_laptop bug - Can't change usb_charge attribute

2015-06-10 Thread Mattia Dongili
Hi Dalton, On Wed, Jun 10, 2015 at 03:30:32AM +0530, Dalton Fury wrote: [1.] [Sony VAIO SVF14212SNB] Can't change usb_charge attribute in /sys/devices/platform/sony-laptop [2.] I am on a Sony VAIO svf43142sn. My laptop has the ability to ... echo -n 0 | sudo tee -a

Re: [PATCH 22/32] fujitsu-laptop: Port to new backlight interface selection API

2015-06-10 Thread Jonathan Woithe
On Wed, Jun 10, 2015 at 03:01:22PM +0200, Hans de Goede wrote: Port the backlight selection logic to the new backlight interface selection API. Acked-by: Jonathan Woithe jwoi...@just42.net Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/platform/x86/fujitsu-laptop.c | 6 +++---

Re: [PATCH v2] acpi-video: Add a parameter to not register the backlight sysfs interface

2015-06-10 Thread Aaron Lu
On Tue, Jun 09, 2015 at 11:54:45PM +0200, Hans de Goede wrote: Hi, On 06/09/2015 11:10 AM, Aaron Lu wrote: On Tue, Jun 09, 2015 at 10:32:25AM +0200, Hans de Goede wrote: On some systems acpi-video backlight is broken in the sense that it cannot control the brightness of the backlight, but

Re: [PATCH v5 0/3] Dell Airplane Mode Switch driver

2015-06-10 Thread Darren Hart
On Mon, Jun 08, 2015 at 09:30:36AM +0200, Pali Rohár wrote: On Sunday 07 June 2015 21:12:38 Darren Hart wrote: On Sat, Jun 06, 2015 at 10:23:27AM +0200, Pali Rohár wrote: This patch series add new acpi Dell Airplane Mode Switch driver (DELLABCE and DELRBTN acpi devices). It provides

Re: [PATCH 14/32] acer-wmi: Port to new backlight interface selection API

2015-06-10 Thread joeyli
On Wed, Jun 10, 2015 at 03:01:14PM +0200, Hans de Goede wrote: Port the backlight selection logic to the new backlight interface selection API. This commit also removes various obsolete pr_xxx messages related to backlight interface selection. These are obsolete because they assume there is