Skip to content

Commit

Permalink
USB: Modify lpm check for sdcard-reader
Browse files Browse the repository at this point in the history
  • Loading branch information
qzed committed Sep 28, 2019
1 parent 1564ae6 commit 218ad8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/usb/core/hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -4164,7 +4164,8 @@ void usb_enable_lpm(struct usb_device *udev)
if (!udev || !udev->parent ||
udev->speed < USB_SPEED_SUPER ||
!udev->lpm_capable ||
udev->state < USB_STATE_DEFAULT)
udev->state < USB_STATE_DEFAULT ||
!udev->bos || !udev->bos->ss_cap)
return;

udev->lpm_disable_count--;
Expand Down

0 comments on commit 218ad8f

Please sign in to comment.