]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
sunxi: musb: Fix some lo speed devices not working with musb host
authorHans de Goede <hdegoede@redhat.com>
Fri, 27 Mar 2015 19:54:25 +0000 (20:54 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:35:12 +0000 (14:35 +0200)
commit89716d740790cb48df4f12b4e671f5bf48d7d1c7
treeb0343fb7d4fe5cac4d395c1b39354eb68b090ed9
parent3446eb878e0556c1e93cb63cdcaa5be6a08caa45
sunxi: musb: Fix some lo speed devices not working with musb host

The usb0 / otg phy on sunxi boards has a bug where it wrongly detects a
high speed squelch on usb reset deassert when a lo speed device is plugged in.

The android kernel has a work around for this in the form of temporary
disabling the phy's squelch detection on reset deassert, this commit adds
the same workaround to the u-boot sunxi musb code, thereby fixing various usb
lo speed devices not working.

Tested with a (before non working) usb keyboard and a usb 2.4 GHz wireless
keyboard/mouse combo receiver.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
arch/arm/cpu/armv7/sunxi/usbc.c
arch/arm/include/asm/arch-sunxi/usbc.h
drivers/usb/musb-new/musb_uboot.c