mdm6600: Resume modem synchronously
authorBenoit Goby <benoit@android.com>
Wed, 12 Jan 2011 23:38:24 +0000 (15:38 -0800)
committerBenoit Goby <benoit@android.com>
Sat, 15 Jan 2011 01:25:57 +0000 (17:25 -0800)
commitbc22a7ecb2bf24324d914fb3463ebc5e8756c0c5
tree01e51783c4b41d1a67e670a593cc1647c3ce7e8d
parent7941e808e7420bf37f7af90011b4dc3947e5d6d2
mdm6600: Resume modem synchronously

If runtime pm auto-resumes the modem while the modem is being
disconnected, runtime pm might use the modem power spinlock after free.

Auto-resumes the modem synchronously and make sure there are no pending
wakeup requests before disconnect returns.

Don't request an auto-resume if the modem is suspended or this may
cause usb devices to be resumed in the wrong order.

Change-Id: I38bf4830d30bb8b7619e093e0ba1b3861d240aec
Signed-off-by: Benoit Goby <benoit@android.com>
drivers/usb/serial/mdm6600.c