]> git.openfabrics.org - ~emulex/infiniband.git/commit
eeepc-laptop: check wireless hotplug events
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Mon, 22 Feb 2010 16:03:58 +0000 (16:03 +0000)
committerCorentin Chary <corentincj@iksaif.net>
Sun, 28 Feb 2010 18:30:57 +0000 (19:30 +0100)
commitbc9d24a3aeb1532fc3e234907a8b6d671f7ed68f
tree621db75c68cdf044e79b13020c20a94810f51335
parentced69c59811f05b2f8378467cbb82ac6ed3c6a5a
eeepc-laptop: check wireless hotplug events

Before we mark the wireless device as unplugged, check PCI config space
to see whether the wireless device is really disabled (and vice versa).
This works around newer models which don't want the hotplug code, where
we end up disabling the wired network device.

My old 701 still works correctly with this.  I can also simulate an
afflicted model by changing the hardcoded PCI bus/slot number in the
driver, and it seems to work nicely (although it is a bit noisy).

In future this type of hotplug support will be implemented by the PCI
core.  The existing blacklist and the new warning message will be
removed at that point.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
drivers/platform/x86/eeepc-laptop.c