]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
phy: sun4i-usb: Make sure to disable PHY0 passby for peripheral mode
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Thu, 14 Mar 2019 13:05:18 +0000 (14:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:43:31 +0000 (06:43 -0700)
commitbb4b60cda1179de867897ed96d1dad4c48236df8
tree207bd89292aff46b37c8e3e1c07bdff38a797e10
parentbf0280e58717b585fd63ec03a512aa2bd730099a
phy: sun4i-usb: Make sure to disable PHY0 passby for peripheral mode

[ Upstream commit e6f32efb1b128344a2c7df9875bc1a1abaa1d395 ]

On platforms where the MUSB and HCI controllers share PHY0, PHY passby
is required when using the HCI controller with the PHY, but it must be
disabled when the MUSB controller is used instead.

Without this, PHY0 passby is always enabled, which results in broken
peripheral mode on such platforms (e.g. H3/H5).

Fixes: ba4bdc9e1dc0 ("PHY: sunxi: Add driver for sunxi usb phy")
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/phy/allwinner/phy-sun4i-usb.c