]> git.baikalelectronics.ru Git - kernel.git/commit
eeepc-laptop: Prevent a panic when disabling RT2860 wireless when associated
authorDarren Salt <linux@youmustbejoking.demon.co.uk>
Mon, 12 Oct 2009 22:13:33 +0000 (00:13 +0200)
committerLen Brown <len.brown@intel.com>
Tue, 13 Oct 2009 05:26:41 +0000 (01:26 -0400)
commitf72c34b795a028b69df4335da894a8b2de965720
treeb73872ff94882a821523f9c7314eb1a5f8658479
parent7b6056f769315fb1c6660836046d33c82a8ee332
eeepc-laptop: Prevent a panic when disabling RT2860 wireless when associated

This works around what I think is actually a bug in rt2860sta which is
triggered when the hardware "disappears" from beneath the driver, i.e. when
wireless is toggled off via ACPI. It does so by ensuring that the rfkill
soft-block flag is set before the hardware is disabled.

I do not know whether this patch is required if rt2800pci is in use instead
of rt2860sta; at the time of submission of this patch, I've not been able to
test this.

(Ref. http://bugzilla.kernel.org/show_bug.cgi?id=13390)

Signed-off-by: Darren Salt <linux@youmustbejoking.demon.co.uk>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/eeepc-laptop.c