Re: rtl8187 usb wifi adaptor causes suspend hang

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 30, 2008 at 10:45 AM, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:
>> Is it possible to fix this without suspend support in mac80211?  If not,
>> I vote we change rtl8187 (and zd_usb) to prevent suspend.  I.e. set USB
>> suspend callbacks which return an error.

Alan J:

Are you using 'echo -n mem > /sys/power/state' directly to do suspend,
or hitting the power button?  I'm guessing we shouldn't be calling
disconnect() when suspending.

> It certainly should be possible to fix this.  For instance, why
> unregister anything during suspend?  If ieee80211_unregister_hw()
> weren't called then this problem would go away, right?

Yes, we shouldn't need to.

But it's not the suspend() callback that's getting called (the driver
doesn't have one) but disconnect, which unregisters itself from the
upper layers.  I just read the stuff in Documentation/usb but admit I
don't fully get the rules.  AIUI, without suspend/resume callbacks,
disconnect will sometimes get called on resume?  But the original
email is a hang at suspend time?

The drivers themselves actually shouldn't be doing much in suspend
callbacks once mac80211 suspend support is done -- just powering down
the device -- since mac80211 will handle all the softmac state.

-- 
Bob Copeland %% www.bobcopeland.com
_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux