* [patch 2/9] dell_laptop: when the "hardware" switch is disabled, don't actually allow changing the softblock status.
@ 2009-12-22 0:19 akpm
2009-12-22 20:10 ` Len Brown
0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2009-12-22 0:19 UTC (permalink / raw)
To: lenb; +Cc: linux-acpi, akpm, Mario_Limonciello
From: Mario Limonciello <Mario_Limonciello@Dell.com>
The "hardware" switch is tied directly to a BIOS interface that will
connect and disconnect the hardware from the bus.
If you use the software interface to request the BIOS to make these
changes, the HW switch will be in an inconsistent state and LEDs may not
reflect the state of the HW.
Signed-off-by: Mario Limonciello <Mario_Limonciello@Dell.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/platform/x86/dell-laptop.c | 4 ++++
1 file changed, 4 insertions(+)
diff -puN drivers/platform/x86/dell-laptop.c~dell_laptop-when-the-hardware-switch-is-disabled-dont-actually-allow-changing-the-softblock-status drivers/platform/x86/dell-laptop.c
--- a/drivers/platform/x86/dell-laptop.c~dell_laptop-when-the-hardware-switch-is-disabled-dont-actually-allow-changing-the-softblock-status
+++ a/drivers/platform/x86/dell-laptop.c
@@ -181,6 +181,10 @@ static int dell_rfkill_set(void *data, b
unsigned long radio = (unsigned long)data;
memset(&buffer, 0, sizeof(struct calling_interface_buffer));
+ dell_send_request(&buffer, 17, 11);
+ if (!(buffer.output[1] & BIT(16)))
+ return -EINVAL;
+
buffer.input[0] = (1 | (radio<<8) | (disable << 16));
dell_send_request(&buffer, 17, 11);
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch 2/9] dell_laptop: when the "hardware" switch is disabled, don't actually allow changing the softblock status.
2009-12-22 0:19 [patch 2/9] dell_laptop: when the "hardware" switch is disabled, don't actually allow changing the softblock status akpm
@ 2009-12-22 20:10 ` Len Brown
0 siblings, 0 replies; 2+ messages in thread
From: Len Brown @ 2009-12-22 20:10 UTC (permalink / raw)
To: akpm; +Cc: linux-acpi, Mario_Limonciello, Matthew Garrett
waiting for test & ack by mjg, the driver's maintainer.
thanks,
Len Brown, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-22 20:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-22 0:19 [patch 2/9] dell_laptop: when the "hardware" switch is disabled, don't actually allow changing the softblock status akpm
2009-12-22 20:10 ` Len Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox