From: "Lee, Chun-Yi" <joeyli.kernel@gmail.com>
To: platform-driver-x86@vger.kernel.org
Cc: mjg@redhat.com, gregkh@suse.de, jlee@novell.com,
Dennis.Jansen@web.de, linux-kernel@vger.kernel.org
Subject: [PATCH] Support MSI Poulsbo netbook U110/U115
Date: Tue, 13 Jul 2010 15:54:45 +0800 [thread overview]
Message-ID: <1279007685-11993-1-git-send-email-jlee@novell.com> (raw)
The MSI U110/U115's DSDT have opregion declare, but i915 drm driver
does not support Poulsbo ship. It causes the acpi backlight control
interface not generate by i915 drm driver.
But, we are sure the MSI Poulsbo netbook U110/U115 have workable
_BCM,_BQC implementation in DSDT and it control brightness by using
EC but not opregion.
So, put a dmi detection in msi-laptop driver and also add wlan/bluetooth
rfkill support on U110/U115.
Signed-off-by: Lee, Chun-Yi <jlee@novell.com>
---
drivers/platform/x86/msi-laptop.c | 41 +++++++++++++++++++++++++++++++++++++
1 files changed, 41 insertions(+), 0 deletions(-)
diff --git a/drivers/platform/x86/msi-laptop.c b/drivers/platform/x86/msi-laptop.c
index afd762b..5f62ad8 100644
--- a/drivers/platform/x86/msi-laptop.c
+++ b/drivers/platform/x86/msi-laptop.c
@@ -60,6 +60,7 @@
#include <linux/platform_device.h>
#include <linux/rfkill.h>
#include <linux/i8042.h>
+#include <acpi/video.h>
#define MSI_DRIVER_VERSION "0.5"
@@ -524,6 +525,42 @@ static struct dmi_system_id __initdata msi_load_scm_models_dmi_table[] = {
},
.callback = dmi_check_cb
},
+ {
+ .ident = "MSI U110",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Micro-Star International"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "U110"),
+ },
+ .callback = dmi_check_cb
+ },
+ {
+ .ident = "MSI U115",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Micro-Star International"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "U115"),
+ },
+ .callback = dmi_check_cb
+ },
+ { }
+};
+
+static struct dmi_system_id __initdata msi_poulsbo_dmi_table[] = {
+ {
+ .ident = "MSI U110",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Micro-Star International"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "U110"),
+ },
+ .callback = dmi_check_cb
+ },
+ {
+ .ident = "MSI U115",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Micro-Star International"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "U115"),
+ },
+ .callback = dmi_check_cb
+ },
{ }
};
@@ -801,6 +838,8 @@ static int __init msi_init(void)
if (acpi_video_backlight_support()) {
printk(KERN_INFO "MSI: Brightness ignored, must be controlled "
"by ACPI video driver\n");
+ if (dmi_check_system(msi_poulsbo_dmi_table))
+ acpi_video_register();
} else {
struct backlight_properties props;
memset(&props, 0, sizeof(struct backlight_properties));
@@ -919,3 +958,5 @@ MODULE_ALIAS("dmi:*:svnMICRO-STARINTERNATIONAL*:pnMS-N034:*");
MODULE_ALIAS("dmi:*:svnMICRO-STARINTERNATIONAL*:pnMS-N051:*");
MODULE_ALIAS("dmi:*:svnMICRO-STARINTERNATIONAL*:pnMS-N014:*");
MODULE_ALIAS("dmi:*:svnMicro-StarInternational*:pnCR620:*");
+MODULE_ALIAS("dmi:*:svnMicro-StarInternational*:pnU110:*");
+MODULE_ALIAS("dmi:*:svnMicro-StarInternational*:pnU115:*");
--
1.6.0.2
next reply other threads:[~2010-07-13 7:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-13 7:54 Lee, Chun-Yi [this message]
2010-08-13 9:05 Joey Lee
2010-08-16 15:56 ` Matthew Garrett
2010-08-17 14:56 Joey Lee
2010-08-23 11:54 Joey Lee
2010-08-23 15:36 ` Greg KH
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=1279007685-11993-1-git-send-email-jlee@novell.com \
--to=joeyli.kernel@gmail.com \
--cc=Dennis.Jansen@web.de \
--cc=gregkh@suse.de \
--cc=jlee@novell.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mjg@redhat.com \
--cc=platform-driver-x86@vger.kernel.org \
/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
all inboxes | Powered by JetHome®