[kernel/f15] Backport backlight support for Samsung n150/NC10 class machines (rhbz 496975)
Josh Boyer
jwboyer at fedoraproject.org
Wed Sep 28 20:11:12 UTC 2011
commit e1bdb5078cf5195cd1b158d9c488ba485f0bf71a
Author: Josh Boyer <jwboyer at redhat.com>
Date: Wed Sep 28 16:09:56 2011 -0400
Backport backlight support for Samsung n150/NC10 class machines (rhbz 496975)
...x-samsung-laptop-DMI-identification-for-N.patch | 44 ++++++++++++++++++++
kernel.spec | 9 ++++
2 files changed, 53 insertions(+), 0 deletions(-)
---
diff --git a/Platform-fix-samsung-laptop-DMI-identification-for-N.patch b/Platform-fix-samsung-laptop-DMI-identification-for-N.patch
new file mode 100644
index 0000000..c36935d
--- /dev/null
+++ b/Platform-fix-samsung-laptop-DMI-identification-for-N.patch
@@ -0,0 +1,44 @@
+From 350268c1de71490d5e803a81e609191034a55560 Mon Sep 17 00:00:00 2001
+From: Thomas Courbon <thcourbon at gmail.com>
+Date: Wed, 20 Jul 2011 22:57:44 +0200
+Subject: [PATCH] Platform: fix samsung-laptop DMI identification for
+ N150/N210/220/N230
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Some samsung latop of the N150/N2{10,20,30} serie are badly detected by the samsung-laptop platform driver, see bug # 36082.
+It appears that N230 identifies itself as N150/N210/N220/N230 whereas the other identify themselves as N150/N210/220.
+This patch attemtp fix #36082 allowing correct identification for all the said netbook model.
+
+Reported-by: Daniel Eklöf <daniel at ekloef.se>
+Signed-off-by: Thomas Courbon <thcourbon at gmail.com>
+Signed-off-by: Matthew Garrett <mjg at redhat.com>
+---
+ drivers/platform/x86/samsung-laptop.c | 10 ++++++++++
+ 1 files changed, 10 insertions(+), 0 deletions(-)
+
+diff --git a/drivers/platform/x86/samsung-laptop.c b/drivers/platform/x86/samsung-laptop.c
+index d347116..1658575 100644
+--- a/drivers/platform/x86/samsung-laptop.c
++++ b/drivers/platform/x86/samsung-laptop.c
+@@ -601,6 +601,16 @@ static struct dmi_system_id __initdata samsung_dmi_table[] = {
+ .callback = dmi_check_cb,
+ },
+ {
++ .ident = "N150/N210/N220",
++ .matches = {
++ DMI_MATCH(DMI_SYS_VENDOR,
++ "SAMSUNG ELECTRONICS CO., LTD."),
++ DMI_MATCH(DMI_PRODUCT_NAME, "N150/N210/N220"),
++ DMI_MATCH(DMI_BOARD_NAME, "N150/N210/N220"),
++ },
++ .callback = dmi_check_cb,
++ },
++ {
+ .ident = "N150/N210/N220/N230",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR,
+--
+1.7.6
+
diff --git a/kernel.spec b/kernel.spec
index 2c53c9b..35dd296 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -700,6 +700,9 @@ Patch21011: md-dont-delay-reboot-by-1-second-if-no-MD-devices.patch
# rhbz #714381
Patch21012: hid-magicmouse-ignore-ivalid-report-id-while-switching-modes-v2.patch
+# rhbz #496975
+Patch21013: Platform-fix-samsung-laptop-DMI-identification-for-N.patch
+
%endif
BuildRoot: %{_tmppath}/kernel-%{KVERREL}-root
@@ -1269,6 +1272,9 @@ ApplyPatch md-dont-delay-reboot-by-1-second-if-no-MD-devices.patch
# rhbz #714381
ApplyPatch hid-magicmouse-ignore-ivalid-report-id-while-switching-modes-v2.patch
+# rhbz #496675
+ApplyPatch Platform-fix-samsung-laptop-DMI-identification-for-N.patch
+
# END OF PATCH APPLICATIONS
%endif
@@ -1889,6 +1895,9 @@ fi
# and build.
%changelog
+* Tue Sep 27 2011 Josh Boyer <jwboyer at redhat.com>
+- Backport support for Samsung n150 class machines (rhbz 496975)
+
* Mon Sep 26 2011 Chuck Ebbert <cebbert at redhat.com>
- Fix breakage of Apple MagicMouse/Trackpad (rhbz #714381)
More information about the scm-commits
mailing list