]> asedeno.scripts.mit.edu Git - linux.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)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 17 Apr 2019 06:36:02 +0000 (12:06 +0530)
commite6f32efb1b128344a2c7df9875bc1a1abaa1d395
treeb3bc88a47c86b8081c2f3cabd4078682b9fd4bcb
parent9dc211c6139b6680db8904547f7c5e23faec7eb5
phy: sun4i-usb: Make sure to disable PHY0 passby for peripheral mode

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>
drivers/phy/allwinner/phy-sun4i-usb.c