]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
sunxi: usb: Protect phy-init and phy-power-on against multiple calls
authorHans de Goede <hdegoede@redhat.com>
Mon, 27 Apr 2015 14:57:54 +0000 (16:57 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:35:22 +0000 (22:35 +0200)
commit9b2526583db04d80dd1937abb4a5c1806d3c37d1
tree89d60ed256b70d18d56a72645e160514d0b58313
parentba1af96f79573e96b5929bfba481ecb95f28ff25
sunxi: usb: Protect phy-init and phy-power-on against multiple calls

Once we add support for the ohci controller the phy-init and phy-power-on
functions may be called twice (once by the ehci code and once by the ohci
code) protect them against this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
arch/arm/cpu/armv7/sunxi/usb_phy.c