linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] asus-wmi: use ASUS_WMI_METHODID_DSTS2 as default DSTS ID.
@ 2012-06-20  3:47 Alex Hung
  2012-06-20  3:50 ` Alex Hung
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Alex Hung @ 2012-06-20  3:47 UTC (permalink / raw)
  To: alex.hung, corentincj, mjg, acpi4asus-user, platform-driver-x86,
	linux-kernel

According to responses from the BIOS team, ASUS_WMI_METHODID_DSTS2
(0x53545344) will be used as future DSTS ID. In addition, calling
asus_wmi_evaluate_method(ASUS_WMI_METHODID_DSTS2, 0, 0, NULL) returns
ASUS_WMI_UNSUPPORTED_METHOD in new ASUS laptop PCs. This patch fixes
no DSTS ID will be assigned in this case.

Signed-off-by: Alex Hung <alex.hung@canonical.com>
---
 drivers/platform/x86/asus-wmi.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c
index 25e3093..0f69a97 100644
--- a/drivers/platform/x86/asus-wmi.c
+++ b/drivers/platform/x86/asus-wmi.c
@@ -1461,14 +1461,9 @@ static int asus_wmi_platform_init(struct asus_wmi *asus)
 	 */
 	if (!asus_wmi_evaluate_method(ASUS_WMI_METHODID_DSTS, 0, 0, NULL))
 		asus->dsts_id = ASUS_WMI_METHODID_DSTS;
-	else if (!asus_wmi_evaluate_method(ASUS_WMI_METHODID_DSTS2, 0, 0, NULL))
+	else
 		asus->dsts_id = ASUS_WMI_METHODID_DSTS2;
 
-	if (!asus->dsts_id) {
-		pr_err("Can't find DSTS");
-		return -ENODEV;
-	}
-
 	/* CWAP allow to define the behavior of the Fn+F2 key,
 	 * this method doesn't seems to be present on Eee PCs */
 	if (asus->driver->quirks->wapf >= 0)
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-09-18 20:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-20  3:47 [PATCH] asus-wmi: use ASUS_WMI_METHODID_DSTS2 as default DSTS ID Alex Hung
2012-06-20  3:50 ` Alex Hung
2012-06-26 21:39 ` Jonathan Nieder
2012-06-26 21:58   ` Carsten Otto
2012-06-27  7:53     ` Alex Hung
2012-06-27 22:17       ` Jonathan Nieder
2012-06-28  8:18         ` Carsten Otto
2012-09-18 10:21         ` Carsten Otto
2012-09-18 20:54           ` Corentin Chary
2012-06-29 12:21 ` Corentin Chary

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).