mdm6600: Fix auto-suspend when only using port 2
authorBenoit Goby <benoit@android.com>
Mon, 24 Jan 2011 20:36:06 +0000 (12:36 -0800)
committerBenoit Goby <benoit@android.com>
Tue, 25 Jan 2011 01:43:54 +0000 (17:43 -0800)
usb_autopm_put_interface_no_suspend decrease the usage count but does
not schedule a suspend. use usb_autopm_put_interface_async instead.

This fixes an issue where the modem is never auto-suspended if there
is traffic on only port2 (b/3383043).

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

index fb0efbc27a6cee21e931e62e50da99d09f31aa17..1e4ca6ab7bc3fbefc207e5019a466b23342a41a0 100644 (file)
@@ -135,7 +135,7 @@ static void mdm6600_wake_work(struct work_struct *work)
        /* let usbcore auto-resume the modem */
        if (usb_autopm_get_interface(intf) == 0)
                /* set usage count back to 0 */
-               usb_autopm_put_interface_no_suspend(intf);
+               usb_autopm_put_interface_async(intf);
 
        device_unlock(&intf->dev);
 }