]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
sunxi: usb: Do not call phy_probe from hcd code
authorHans de Goede <hdegoede@redhat.com>
Mon, 27 Apr 2015 14:50:04 +0000 (16:50 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:35:22 +0000 (22:35 +0200)
commitba1af96f79573e96b5929bfba481ecb95f28ff25
treef167dc5f4ca77d6d31e585fcd3de9e1dd824540b
parent5a700b3360ef40051154eb009f631987d104e06a
sunxi: usb: Do not call phy_probe from hcd code

The 2/3 usb-phys on the sunxi SoCs are really a single separate functional
block, and are modelled as such in devicetree. So once we've moved all the
sunxi usb code to the driver-model then phy_probe will be called once
for the entire block from the driver-model enumeration code.

Move to this now as this also avoids problems with phy_probe being called
multiple times once we introduce ohci support. This also allows us to get rid
of the sunxi_usb_phy_enabled_count variable as phy_probe now is guaranteed
to be called only once.

Since we're effectively rewriting the probe / remove functions, move them
to the end of the file while we are at it, as that is the most logical place
for them.

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
arch/arm/include/asm/arch-sunxi/usb_phy.h
board/sunxi/board.c
drivers/usb/host/ehci-sunxi.c
drivers/usb/musb-new/sunxi.c
include/configs/sun4i.h
include/configs/sun5i.h
include/configs/sun6i.h
include/configs/sun7i.h
include/configs/sun8i.h