* [PATCH] dell-laptop: Enable rfkill on Inspiron 3437
@ 2014-05-07 7:10 Edward Lin
2014-05-07 11:53 ` Matthew Garrett
0 siblings, 1 reply; 3+ messages in thread
From: Edward Lin @ 2014-05-07 7:10 UTC (permalink / raw)
To: Matthew Garrett, platform-driver-x86; +Cc: yidi.lin, yk
Create a rfkill whitelist for the specific models.
Add Inspiron 3437 to rfkill whitelist.
Signed-off-by: Edward Lin <yidi.lin@canonical.com>
---
drivers/platform/x86/dell-laptop.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c
index fed4111..4ead97e 100644
--- a/drivers/platform/x86/dell-laptop.c
+++ b/drivers/platform/x86/dell-laptop.c
@@ -271,6 +271,17 @@ static struct dmi_system_id dell_quirks[] = {
{ }
};
+static struct dmi_system_id dell_rfkill_whitelist[] = {
+ {
+ .ident = "Dell Inspiron 3437",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+ DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 3437"),
+ },
+ },
+ {}
+};
+
static struct calling_interface_buffer *buffer;
static struct page *bufferpage;
static DEFINE_MUTEX(buffer_mutex);
@@ -597,7 +608,7 @@ static int __init dell_setup_rfkill(void)
if (product && (strncmp(product, "Latitude", 8) == 0 ||
strncmp(product, "Precision", 9) == 0))
whitelisted = 1;
- if (!force_rfkill && !whitelisted)
+ if (!force_rfkill && !whitelisted && !dmi_check_system(dell_rfkill_whitelist))
return 0;
get_buffer();
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] dell-laptop: Enable rfkill on Inspiron 3437
2014-05-07 7:10 [PATCH] dell-laptop: Enable rfkill on Inspiron 3437 Edward Lin
@ 2014-05-07 11:53 ` Matthew Garrett
2014-05-08 7:19 ` Yidi Lin
0 siblings, 1 reply; 3+ messages in thread
From: Matthew Garrett @ 2014-05-07 11:53 UTC (permalink / raw)
To: Edward Lin; +Cc: platform-driver-x86, yk
The information we had from Dell is that the rfkill functionality isn't
validated on Inspiron devices. How do we know this works under all
circumstances?
--
Matthew Garrett | mjg59@srcf.ucam.org
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dell-laptop: Enable rfkill on Inspiron 3437
2014-05-07 11:53 ` Matthew Garrett
@ 2014-05-08 7:19 ` Yidi Lin
0 siblings, 0 replies; 3+ messages in thread
From: Yidi Lin @ 2014-05-08 7:19 UTC (permalink / raw)
To: Matthew Garrett; +Cc: platform-driver-x86, yk
Hi Mattew,
I only have Inspiron 7737 and Inspiron 3437 on hand to verify my patch.
rfkill does not function on Inspiron 7737 with force_rfkill=1 boot parameter.
But it works on Inspiron 3437.
So I only whitelist Inspiron 3437 for rfkill functionality.
Can you give me some advice for validation ?
Thanks.
Edward
On Wed, May 7, 2014 at 7:53 PM, Matthew Garrett <mjg59@srcf.ucam.org> wrote:
> The information we had from Dell is that the rfkill functionality isn't
> validated on Inspiron devices. How do we know this works under all
> circumstances?
>
> --
> Matthew Garrett | mjg59@srcf.ucam.org
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-08 7:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-07 7:10 [PATCH] dell-laptop: Enable rfkill on Inspiron 3437 Edward Lin
2014-05-07 11:53 ` Matthew Garrett
2014-05-08 7:19 ` Yidi Lin
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.