]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
usb: dwc2: disable power_down on rockchip devices
authorSolidHal <hal@halemmerich.com>
Wed, 3 Oct 2018 01:58:16 +0000 (20:58 -0500)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 5 Oct 2018 07:50:14 +0000 (10:50 +0300)
commitc216765d3a1defda5e7e2dabd878f99f0cd2ebf2
tree192788cdc4d66571264bc30d04f0b5c0c6619c7c
parent30025efa8b5e75f545e38a592158c34b3169423b
usb: dwc2: disable power_down on rockchip devices

 The bug would let the usb controller enter partial power down,
 which was formally known as hibernate, upon boot if nothing was plugged
 in to the port. Partial power down couldn't be exited properly, so any
 usb devices plugged in after boot would not be usable.

 Before the name change, params.hibernation was false by default, so
 _dwc2_hcd_suspend() would skip entering hibernation. With the
 rename, _dwc2_hcd_suspend() was changed to use  params.power_down
 to decide whether or not to enter partial power down.

 Since params.power_down is non-zero by default, it needs to be set
 to 0 for rockchip devices to restore functionality.

 This bug was reported in the linux-usb thread:
 REGRESSION: usb: dwc2: USB device not seen after boot

 The commit that caused this regression is:
6d23ee9caa6790aea047f9aca7f3c03cb8d96eb6

Signed-off-by: SolidHal <hal@halemmerich.com>
Acked-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/params.c