OSDN Git Service

usb: xhci: plat: Create both HCDs before adding them
authorRoger Quadros <rogerq@ti.com>
Fri, 29 May 2015 14:01:47 +0000 (17:01 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 May 2015 06:45:30 +0000 (15:45 +0900)
commit4ac53087d6d48e46e1cf4d0ca9ed9accdf9c928a
treed714bab028e4334fcd471da7ff823b47304b00db
parentcd33a32157e42483ffea31e32b1cee4f11ff9592
usb: xhci: plat: Create both HCDs before adding them

As xhci_hcd is now allocated by usb_create_hcd(), we don't
need to add the primary HCD before creating the shared HCD.

Creating the shared HCD before adding the primary HCD is particularly
useful for the OTG use case so that we know at the OTG core if
the HCD is in single configuration or dual (primary + shared)
configuration.

Signed-off-by: Roger Quadros <rogerq@ti.com>
[Mathias: rearranged to fit on top of the Marvell Armada 385 phy changes]
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-plat.c