aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/devio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/core/devio.c')
-rw-r--r--drivers/usb/core/devio.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
index 0ca54e2..9823f18 100644
--- a/drivers/usb/core/devio.c
+++ b/drivers/usb/core/devio.c
@@ -709,10 +709,14 @@ static int usbdev_open(struct inode *inode, struct file *file)
if (dev->state == USB_STATE_NOTATTACHED)
goto out_unlock_device;
+#if defined(CONFIG_LINK_DEVICE_HSIC) || defined(CONFIG_LINK_DEVICE_USB)
+ pr_debug("mif: modem usbdev_open, skip usb_autoresume_device\n");
+ ret = 0;
+#else
ret = usb_autoresume_device(dev);
if (ret)
goto out_unlock_device;
-
+#endif
ps->dev = dev;
ps->file = file;
spin_lock_init(&ps->lock);
@@ -761,7 +765,11 @@ static int usbdev_release(struct inode *inode, struct file *file)
releaseintf(ps, ifnum);
}
destroy_all_async(ps);
+#if defined(CONFIG_LINK_DEVICE_HSIC) || defined(CONFIG_LINK_DEVICE_USB)
+ pr_debug("mif: modem usbdev_open, skip usb_autosuspend_device\n");
+#else
usb_autosuspend_device(dev);
+#endif
usb_unlock_device(dev);
usb_put_dev(dev);
put_pid(ps->disc_pid);