usb: chipidea: host: fix disconnection detect issue
authorPeter Chen <peter.chen@nxp.com>
Wed, 6 Jun 2018 01:43:27 +0000 (09:43 +0800)
committerPeter Chen <peter.chen@nxp.com>
Tue, 26 Jun 2018 01:59:34 +0000 (09:59 +0800)
commit90f26cc6bb90b35040f4da0347f480ea9df6e2fc
tree9a547ca08bdb535009083aefdc79ec663ea6132e
parentd5a4f93511b7000183c0d528739b824752139f79
usb: chipidea: host: fix disconnection detect issue

The commit 4e88d4c08301 ("usb: add a flag to skip PHY
initialization to struct usb_hcd") delete the assignment
for hcd->usb_phy, it causes usb_phy_notify_connect{disconnect)
are not called, the USB PHY driver is not notified of hot plug
event, then the disconnection will not be detected by hardware.

Fixes: 4e88d4c08301 ("usb: add a flag to skip PHY initialization
to struct usb_hcd")
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reported-by: Mats Karrman <mats.dev.list@gmail.com>
Tested-by: Mats Karrman <mats.dev.list@gmail.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/host.c