usb: phy: mxs: disconnect line when USB charger is attached
authorXu Yang <xu.yang_2@nxp.com>
Tue, 27 Jun 2023 11:03:53 +0000 (19:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jul 2023 16:24:17 +0000 (18:24 +0200)
commit87ed257acb0934e08644568df6495988631afd4c
tree0af956e593c2a9b0e5dfa166534c22174075b68e
parent5eda42aebb7668b4dcff025cd3ccb0d3d7c53da6
usb: phy: mxs: disconnect line when USB charger is attached

For mxs PHY, if there is a vbus but the bus is not enumerated, we need
to force the dp/dm as SE0 from the controller side. If not, there is
possible USB wakeup due to unstable dp/dm, since there is possible no
pull on dp/dm, such as there is a USB charger on the port.

Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Acked-by: Peter Chen <peter.chen@kernel.org>
Link: https://lore.kernel.org/r/20230627110353.1879477-3-xu.yang_2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/phy/phy-mxs-usb.c