mdm6600: Suspend the bus immediately after the modem
authorBenoit Goby <benoit@android.com>
Tue, 19 Oct 2010 03:01:26 +0000 (20:01 -0700)
committerBenoit Goby <benoit@android.com>
Wed, 20 Oct 2010 01:27:32 +0000 (18:27 -0700)
Since the modem is the only device connected to the bus, the bus may be
suspended immediately after the modem.

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

index 65de8551404de82926ba56a6112fa4474a788e57..9420131b88e5e6d5aa078b0d35de3c3180ca0337 100644 (file)
@@ -239,6 +239,7 @@ static int mdm6600_attach(struct usb_serial *serial)
        device_init_wakeup(&serial->dev->dev, 1);
        serial->interface->needs_remote_wakeup = 1;
        serial->dev->autosuspend_delay = MODEM_AUTOSUSPEND_DELAY;
+       serial->dev->parent->autosuspend_delay = 0;
 
        return 0;
 }