All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] asus-wmi: control wlan-led if wapf > 0
@ 2014-07-09  8:18 AceLan Kao
  2014-07-09  8:18 ` [PATCH 2/2] asus-nb-wmi: Add ASUSTeK COMPUTER INC. X200CA AceLan Kao
  2014-07-09  8:22 ` [PATCH 1/2] asus-wmi: control wlan-led if wapf > 0 AceLan Kao
  0 siblings, 2 replies; 4+ messages in thread
From: AceLan Kao @ 2014-07-09  8:18 UTC (permalink / raw)
  To: platform-driver-x86, Matthew Garrett, Corentin Chary

Wifi will be controlled by asus-wmi driver when wapf > 0
So, controls the wifi-led when wapf > 0

Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
---
 drivers/platform/x86/asus-wmi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c
index 19c313b..cb22d3f 100644
--- a/drivers/platform/x86/asus-wmi.c
+++ b/drivers/platform/x86/asus-wmi.c
@@ -558,7 +558,7 @@ static int asus_wmi_led_init(struct asus_wmi *asus)
 			goto error;
 	}
 
-	if (wlan_led_presence(asus) && (asus->driver->quirks->wapf == 4)) {
+	if (wlan_led_presence(asus) && (asus->driver->quirks->wapf > 0)) {
 		INIT_WORK(&asus->wlan_led_work, wlan_led_update);
 
 		asus->wlan_led.name = "asus::wlan";
@@ -887,7 +887,7 @@ static int asus_new_rfkill(struct asus_wmi *asus,
 		return -EINVAL;
 
 	if ((dev_id == ASUS_WMI_DEVID_WLAN) &&
-			(asus->driver->quirks->wapf == 4))
+			(asus->driver->quirks->wapf > 0))
 		rfkill_set_led_trigger_name(*rfkill, "asus-wlan");
 
 	rfkill_init_sw_state(*rfkill, !result);
-- 
1.8.3.2

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

* [PATCH 2/2] asus-nb-wmi: Add ASUSTeK COMPUTER INC. X200CA
  2014-07-09  8:18 [PATCH 1/2] asus-wmi: control wlan-led if wapf > 0 AceLan Kao
@ 2014-07-09  8:18 ` AceLan Kao
  2014-07-09  8:22 ` [PATCH 1/2] asus-wmi: control wlan-led if wapf > 0 AceLan Kao
  1 sibling, 0 replies; 4+ messages in thread
From: AceLan Kao @ 2014-07-09  8:18 UTC (permalink / raw)
  To: platform-driver-x86, Matthew Garrett, Corentin Chary

BIOS won't light on the wifi-led after S3, so asus-wmi driver needs to
control the wifi and wifi-led status.
But, it'll lead to bt status error if asus-wmi driver controls bt as well.
So, for X200CA, asus-wmi driver controls wifi status only and have to set
wapf to 1.

Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
---
 drivers/platform/x86/asus-nb-wmi.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c
index 563f59e..32a177b 100644
--- a/drivers/platform/x86/asus-nb-wmi.c
+++ b/drivers/platform/x86/asus-nb-wmi.c
@@ -74,6 +74,10 @@ static struct quirk_entry quirk_asus_x401u = {
 	.wapf = 4,
 };
 
+static struct quirk_entry quirk_asus_x200ca = {
+	.wapf = 2,
+};
+
 static int dmi_matched(const struct dmi_system_id *dmi)
 {
 	quirks = dmi->driver_data;
@@ -198,6 +202,15 @@ static struct dmi_system_id asus_quirks[] = {
 		},
 		.driver_data = &quirk_asus_x401u,
 	},
+	{
+		.callback = dmi_matched,
+		.ident = "ASUSTeK COMPUTER INC. X200CA",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "X200CA"),
+		},
+		.driver_data = &quirk_asus_x200ca,
+	},
 	{},
 };
 
-- 
1.8.3.2

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

* Re: [PATCH 1/2] asus-wmi: control wlan-led if wapf > 0
  2014-07-09  8:18 [PATCH 1/2] asus-wmi: control wlan-led if wapf > 0 AceLan Kao
  2014-07-09  8:18 ` [PATCH 2/2] asus-nb-wmi: Add ASUSTeK COMPUTER INC. X200CA AceLan Kao
@ 2014-07-09  8:22 ` AceLan Kao
  1 sibling, 0 replies; 4+ messages in thread
From: AceLan Kao @ 2014-07-09  8:22 UTC (permalink / raw)
  To: platform-driver-x86, Matthew Garrett, Corentin Chary

Hi Matthew,

Sorry to re-send the patches.
I forgot to check the status of these 2 patches, it had been submitted
almost one year ago, but still didn't go into platform-drivers-x86 git
tree.
Please review them, many thanks.

Best regards,
AceLan Kao.

2014-07-09 16:18 GMT+08:00 AceLan Kao <acelan.kao@canonical.com>:
> Wifi will be controlled by asus-wmi driver when wapf > 0
> So, controls the wifi-led when wapf > 0
>
> Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
> ---
>  drivers/platform/x86/asus-wmi.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c
> index 19c313b..cb22d3f 100644
> --- a/drivers/platform/x86/asus-wmi.c
> +++ b/drivers/platform/x86/asus-wmi.c
> @@ -558,7 +558,7 @@ static int asus_wmi_led_init(struct asus_wmi *asus)
>                         goto error;
>         }
>
> -       if (wlan_led_presence(asus) && (asus->driver->quirks->wapf == 4)) {
> +       if (wlan_led_presence(asus) && (asus->driver->quirks->wapf > 0)) {
>                 INIT_WORK(&asus->wlan_led_work, wlan_led_update);
>
>                 asus->wlan_led.name = "asus::wlan";
> @@ -887,7 +887,7 @@ static int asus_new_rfkill(struct asus_wmi *asus,
>                 return -EINVAL;
>
>         if ((dev_id == ASUS_WMI_DEVID_WLAN) &&
> -                       (asus->driver->quirks->wapf == 4))
> +                       (asus->driver->quirks->wapf > 0))
>                 rfkill_set_led_trigger_name(*rfkill, "asus-wlan");
>
>         rfkill_init_sw_state(*rfkill, !result);
> --
> 1.8.3.2
>



-- 
Chia-Lin Kao(AceLan)
http://blog.acelan.idv.tw/
E-Mail: acelan.kaoATcanonical.com (s/AT/@/)

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

* [PATCH 2/2] asus-nb-wmi: Add ASUSTeK COMPUTER INC. X200CA
  2013-10-02  3:41 AceLan Kao
@ 2013-10-02  3:41 ` AceLan Kao
  0 siblings, 0 replies; 4+ messages in thread
From: AceLan Kao @ 2013-10-02  3:41 UTC (permalink / raw)
  To: platform-driver-x86, Matthew Garrett, Corentin Chary

BIOS won't light on the wifi-led after S3, so asus-wmi driver needs to
control the wifi and wifi-led status.
But, it'll lead to bt status error if asus-wmi driver controls bt as well.
So, for X200CA, asus-wmi driver controls wifi status only and have to set
wapf to 1.

Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
---
 drivers/platform/x86/asus-nb-wmi.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c
index 563f59e..32a177b 100644
--- a/drivers/platform/x86/asus-nb-wmi.c
+++ b/drivers/platform/x86/asus-nb-wmi.c
@@ -74,6 +74,10 @@ static struct quirk_entry quirk_asus_x401u = {
 	.wapf = 4,
 };
 
+static struct quirk_entry quirk_asus_x200ca = {
+	.wapf = 2,
+};
+
 static int dmi_matched(const struct dmi_system_id *dmi)
 {
 	quirks = dmi->driver_data;
@@ -198,6 +202,15 @@ static struct dmi_system_id asus_quirks[] = {
 		},
 		.driver_data = &quirk_asus_x401u,
 	},
+	{
+		.callback = dmi_matched,
+		.ident = "ASUSTeK COMPUTER INC. X200CA",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "X200CA"),
+		},
+		.driver_data = &quirk_asus_x200ca,
+	},
 	{},
 };
 
-- 
1.8.3.2

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

end of thread, other threads:[~2014-07-09  8:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-09  8:18 [PATCH 1/2] asus-wmi: control wlan-led if wapf > 0 AceLan Kao
2014-07-09  8:18 ` [PATCH 2/2] asus-nb-wmi: Add ASUSTeK COMPUTER INC. X200CA AceLan Kao
2014-07-09  8:22 ` [PATCH 1/2] asus-wmi: control wlan-led if wapf > 0 AceLan Kao
  -- strict thread matches above, loose matches on Subject: below --
2013-10-02  3:41 AceLan Kao
2013-10-02  3:41 ` [PATCH 2/2] asus-nb-wmi: Add ASUSTeK COMPUTER INC. X200CA AceLan Kao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.