usb: phy: phy-mxs-usb: do not depend on speed for disconnect notifier
authorPeter Chen <peter.chen@freescale.com>
Wed, 24 Dec 2014 05:48:03 +0000 (13:48 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Jan 2015 18:13:28 +0000 (12:13 -0600)
commitf78c0957674bda6687992058554c07683418ebc2
tree5a2340a5287c1f6fe093606a9858df9d155ad6c4
parentfdf80e78acbaa6a50531490b3a6ba027a52a69ad
usb: phy: phy-mxs-usb: do not depend on speed for disconnect notifier

For some user cases, like plug out and replug in usb device during
the system suspend, the speed negotiation will be error due to host
doesn't know the device's disconnection, and it still hopes the
high speed device, but the device backs to "powered" state which
its high speed termination is not enabled, the usb core calls
the PHY's disconnect notifier with "full speed", it will NOT
take effect at all.

If the usb core calls disconnect notifer, the port change must happen,
so it is safe to disable high speed disconenct detector, since
connect notifier will be called soon if the device is still connected
on the port, and we will enable high speed disconnect detector at that
time.

Acked-by: Li Jun <b47624@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-mxs-usb.c
This page took 0.026124 seconds and 5 git commands to generate.