carl9170: fix usb pm suspend->resume woes
authorChristian Lamparter <chunkeey@googlemail.com>
Sun, 26 Dec 2010 17:22:29 +0000 (18:22 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Jan 2011 19:35:13 +0000 (14:35 -0500)
commit97e2c40269e168df986daf94af1c62e07d4fc599
tree925c80b75d11ae33e2da9906a4507187decacc8c
parent3b386510f49ff5c6e6ac1001da4f3c922ae7de3f
carl9170: fix usb pm suspend->resume woes

This patch revamps some common code-paths which are
shared between (re-)initialization and suspend/resume
subroutines. It also adds some helpful comments
about quirks and associated difficulties.

It's quite big, but it should fix #25382:
<https://bugzilla.kernel.org/show_bug.cgi?id=25382>

And hopefully the code is robust enough to deal with
all possible suspend/resume scenarios without requiring
the user to do any sort of manual and possibly
dangerous work.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/carl9170/usb.c