From: Aaron Lu <aaron.lu@intel.com>
To: linux-acpi@vger.kernel.org, intel-gfx@lists.freedesktop.org,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Cc: "Daniel Vetter" <daniel@ffwll.ch>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>,
"Matthew Garrett" <matthew.garrett@nebula.com>,
"Seth Forshee" <seth.forshee@canonical.com>,
"Lee Chun-Yi" <joeyli.kernel@gmail.com>,
"Richard Purdie" <rpurdie@rpsys.net>,
"Igor Gnatenko" <i.gnatenko.brain@gmail.com>,
"Yves-Alexis Perez" <corsac@debian.org>,
"Felipe Contreras" <felipe.contreras@gmail.com>,
"Jani Nikula" <jani.nikula@linux.intel.com>,
"Aaron Lu" <aaron.lu@intel.com>, "Ben Jencks" <ben@bjencks.net>,
"Steven Newbury" <steve@snewbury.org.uk>,
"James Hogan" <james@albanarts.com>,
"Kamal Mostafa" <kamal@canonical.com>,
"Joerg Platte" <jplatte@naasa.net>,
"Kalle Valo" <kvalo@adurom.com>,
"Martin Steigerwald" <Martin@lichtvoll.de>,
"Jörg Otte" <jrg.otte@gmail.com>,
"Mike Galbraith" <bitbucket@online.de>,
platform-driver-x86@vger.kernel.org,
"Mika Westerberg" <mika.westerberg@linux.intel.com>
Subject: [PATCH v5 0/4] Fix Win8 backlight issue
Date: Fri, 11 Oct 2013 21:27:42 +0800 [thread overview]
Message-ID: <1381498066-16011-1-git-send-email-aaron.lu@intel.com> (raw)
v5:
1 Introduce video.use_native_backlight module parameter and set its
value to false by default as suggested by Rafael. For Win8 systems
which have broken ACPI video backlight control, the parameter can be
set to 1 in kernel cmdline to skip registering ACPI video's backlight
interface. Due to this change, the acpi_video_verify_backlight_support
is moved from video_detect.c to video.c - patch 3/4;
2 Rename bd_list_head and bd_list_mutex in backlight.c to
backlight_dev_list and backlight_dev_list_mutex as suggested by Rafael
- patch 1/4.
v4:
Remove decleration and stub for acpi_video_unregister_backlight in
video.h of patch 2/4 since that function doesn't exist anymore in v3.
v3:
1 Add a new patch 4/4 to fix some problems in thinkpad-acpi module;
2 Remove unnecessary function acpi_video_unregister_backlight introduced
in patch 2/4 as pointed out by Jani Nikula.
v2:
v1 has the subject of "Rework ACPI video driver" and is posted here:
http://lkml.org/lkml/2013/9/9/74
Since the objective is really to fix Win8 backlight issues, I changed
the subject in this version, sorry about that.
This patchset has four patches, the first introduced a new API named
backlight_device_registered in backlight layer that can be used for
backlight interface provider module to check if a specific type backlight
interface has been registered, see changelog for patch 1/4 for details.
Then patch 2/4 does the cleanup to sepeate the backlight control and
event delivery functionality in the ACPI video module and patch 3/4
solves some Win8 backlight control problems by avoiding register ACPI
video's backlight interface if:
1 Kernel cmdline option acpi_backlight=video is not given;
2 This is a Win8 system;
3 Native backlight control interface exists.
Patch 4/4 fixes some problems in thinkpad-acpi module.
Technically, patch 2/4 is not required to fix the issue here. So if you
think it is not necessary, I can remove it from the series.
Aaron Lu (4):
backlight: introduce backlight_device_registered
ACPI / video: seperate backlight control and event interface
ACPI / video: Do not register backlight if win8 and native interface
exists
thinkpad-acpi: fix handle locate for video and query of _BCL
drivers/acpi/internal.h | 4 +-
drivers/acpi/video.c | 457 ++++++++++++++++++++---------------
drivers/acpi/video_detect.c | 4 +-
drivers/platform/x86/thinkpad_acpi.c | 31 ++-
drivers/video/backlight/backlight.c | 31 +++
include/linux/backlight.h | 4 +
6 files changed, 326 insertions(+), 205 deletions(-)
--
1.8.4.12.g2ea3df6
next reply other threads:[~2013-10-11 13:27 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-11 13:27 Aaron Lu [this message]
2013-10-11 13:27 ` [PATCH v5 1/4] backlight: introduce backlight_device_registered Aaron Lu
2013-10-11 13:27 ` [PATCH v5 2/4] ACPI / video: seperate backlight control and event interface Aaron Lu
2013-10-11 13:27 ` [PATCH v5 3/4] ACPI / video: Do not register backlight if win8 and native interface exists Aaron Lu
2013-10-11 13:27 ` [PATCH v5 4/4] thinkpad-acpi: fix handle locate for video and query of _BCL Aaron Lu
2013-10-11 16:42 ` [PATCH v5 0/4] Fix Win8 backlight issue Josh Boyer
2013-10-11 21:01 ` Igor Gnatenko
2013-10-11 22:10 ` Rafael J. Wysocki
2013-10-11 22:01 ` Josh Boyer
2013-10-11 22:45 ` Rafael J. Wysocki
2013-10-11 22:53 ` Igor Gnatenko
2013-10-11 23:10 ` Rafael J. Wysocki
2013-10-11 23:27 ` Rafael J. Wysocki
2013-10-12 5:54 ` Yves-Alexis Perez
2013-10-12 14:10 ` Rafael J. Wysocki
2013-10-12 11:44 ` Josh Boyer
2013-10-12 13:34 ` Seth Forshee
2013-10-12 14:08 ` Rafael J. Wysocki
2013-10-12 6:00 ` Yves-Alexis Perez
2013-10-12 11:47 ` Josh Boyer
2013-10-15 23:33 ` Rafael J. Wysocki
2013-10-24 8:13 ` Aaron Lu
2013-10-25 6:35 ` Igor Gnatenko
2013-10-28 2:45 ` Aaron Lu
2013-10-28 8:09 ` Jani Nikula
2013-10-29 7:18 ` Aaron Lu
2013-11-15 6:07 ` [PATCH v2] ACPI / video: Add systems that should favor native backlight interface Aaron Lu
2013-11-20 20:56 ` Igor Gnatenko
2013-11-21 5:29 ` [PATCH v2 rebased] " Aaron Lu
2013-12-24 12:20 ` Igor Gnatenko
2013-12-24 13:59 ` Igor Gnatenko
2013-10-30 0:40 ` [PATCH v5 0/4] Fix Win8 backlight issue Matthew Garrett
2013-10-30 0:56 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1381498066-16011-1-git-send-email-aaron.lu@intel.com \
--to=aaron.lu@intel.com \
--cc=Martin@lichtvoll.de \
--cc=ben@bjencks.net \
--cc=bitbucket@online.de \
--cc=corsac@debian.org \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=felipe.contreras@gmail.com \
--cc=i.gnatenko.brain@gmail.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=james@albanarts.com \
--cc=jani.nikula@linux.intel.com \
--cc=joeyli.kernel@gmail.com \
--cc=jplatte@naasa.net \
--cc=jrg.otte@gmail.com \
--cc=kamal@canonical.com \
--cc=kvalo@adurom.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matthew.garrett@nebula.com \
--cc=mika.westerberg@linux.intel.com \
--cc=platform-driver-x86@vger.kernel.org \
--cc=rjw@rjwysocki.net \
--cc=rpurdie@rpsys.net \
--cc=seth.forshee@canonical.com \
--cc=steve@snewbury.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).