]> git.sur5r.net Git - u-boot/commit
phy: sun4i-usb: Add a sunxi specific function for setting squelch-detect
authorJagan Teki <jagan@amarulasolutions.com>
Mon, 7 May 2018 07:33:37 +0000 (13:03 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 28 May 2018 11:10:43 +0000 (16:40 +0530)
commitaa29b11b3fdeaedb9689e89e467e6bbd036780ac
tree7fa2303d653682ed99a61a6499812763832cfb7c
parent237050fc62c8313a50cd3618dbb21638a818f0bb
phy: sun4i-usb: Add a sunxi specific function for setting squelch-detect

The sunxi otg phy has a bug where it wrongly detects a high speed squelch
when reset on the root port gets de-asserted with a lo-speed device.

The workaround for this is to disable squelch detect before de-asserting
reset, and re-enabling it after the reset de-assert is done. Add a sunxi
specific phy function to allow the sunxi-musb glue to do this.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Acked-by: Jun Nie <jun.nie@linaro.org>
drivers/phy/allwinner/phy-sun4i-usb.c
drivers/usb/musb-new/musb_core.h
drivers/usb/musb-new/musb_uboot.c
drivers/usb/musb-new/sunxi.c
include/phy-sun4i-usb.h