]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Fri, 15 Aug 2025 10:04:52 +0000 (12:04 +0200)
commit56e976d2c4f74cc02b5abc33f936a90215d6bd67
tree841a50a71c64b84d4d60ef0c4541fbec2cc8acae
parent977eda931d808af97acc776d7f7a8c62a17464fd
usb: phy: mxs: disconnect line when USB charger is attached

[ Upstream commit 87ed257acb0934e08644568df6495988631afd4c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/phy/phy-mxs-usb.c