• Alan Jenkins's avatar
    eeepc-laptop: check wireless hotplug events · fe17e2bb
    Alan Jenkins authored
    commit bc9d24a3 upstream.
    
    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: default avatarAlan Jenkins <alan-jenkins@tuffmail.co.uk>
    Signed-off-by: default avatarCorentin Chary <corentincj@iksaif.net>
    Cc: Tim Gardner <tim.gardner@canonical.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    fe17e2bb
eeepc-laptop.c 33.2 KB