]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc2: pci: Add device mode to the dwc2-pci driver
authorJohn Youn <John.Youn@synopsys.com>
Wed, 4 Mar 2015 01:17:49 +0000 (17:17 -0800)
committerFelipe Balbi <balbi@ti.com>
Wed, 11 Mar 2015 20:08:17 +0000 (15:08 -0500)
commit8f76283ec93d416eb828cb60f4dd97e5973db419
treea4d16aa96cb6f763689601bb6d0286f96b67dca0
parenta36d79dea572862a522cc042fe6bd330feeb2050
usb: dwc2: pci: Add device mode to the dwc2-pci driver

The pci driver now registers a platform driver, like in dwc3, and lets
its probe function do all the initialization. This allows it to
account for changes to the platform driver that were not added to the
pci driver. Also future changes to the probe function don't have to be
duplicated. This also has the effect of adding device and DRD mode to
the pci driver. Tested on the Synopsys HAPS PCIe platform.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/Kconfig
drivers/usb/dwc2/pci.c