Skip to contentSkip to conversation

usb: dwc3: Add Keystone specific glue layer

PATCH New WingMan Kwok 2 participants 2 messages Dec 12, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v5 1/2 usb: dwc3: Add Keystone specific glue layer

Add Keystone platform specific glue layer to support USB3 Host mode.

Cc Santosh Shilimkar <[email protected]>
Cc Felipe Balbi <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>

---
v4->v5: Moved clk_disable after removing core.

 drivers/usb/dwc3/Kconfig         |    7 ++
 drivers/usb/dwc3/Makefile        |    1 +
 drivers/usb/dwc3/dwc3-keystone.c |  201 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 209 insertions(+)
 create mode 100644 drivers/usb/dwc3/dwc3-keystone.c
drivers/usb/dwc3/Kconfig +7 -0
index 70fc430..e2c730f 100644
@@ -70,6 +70,13 @@ config USB_DWC3_PCI
 	  One such PCIe-based platform is Synopsys' PCIe HAPS model of
 	  this IP.
 
+config USB_DWC3_KEYSTONE
+	tristate "Texas Instruments Keystone2 Platforms"
+	default USB_DWC3
+	help
+	  Support of USB2/3 functionality in TI Keystone2 platforms.
+	  Say 'Y' or 'M' here if you have one such device
+
 comment "Debugging features"
 
 config USB_DWC3_DEBUG
drivers/usb/dwc3/Makefile +1 -0
index dd17601..10ac3e7 100644
@@ -32,3 +32,4 @@ endif
 obj-$(CONFIG_USB_DWC3_OMAP)		+= dwc3-omap.o
 obj-$(CONFIG_USB_DWC3_EXYNOS)		+= dwc3-exynos.o
 obj-$(CONFIG_USB_DWC3_PCI)		+= dwc3-pci.o
+obj-$(CONFIG_USB_DWC3_KEYSTONE)		+= dwc3-keystone.o
drivers/usb/dwc3/dwc3-keystone.c new file +201 -0

201 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v5 1/2 usb: dwc3: Add Keystone specific glue layer

Hi,

drivers/usb/dwc3/dwc3-keystone.c line 177

Quoted 9 lines · WingMan Kwok
drivers/usb/dwc3/dwc3-keystone.c new file +9 -0
+static int kdwc3_remove(struct platform_device *pdev)
+{
+	struct dwc3_keystone *kdwc = platform_get_drvdata(pdev);
+
+	kdwc3_disable_irqs(kdwc);
+	device_for_each_child(&pdev->dev, NULL, kdwc3_remove_core);
+	platform_set_drvdata(pdev, NULL);
+	clk_disable_unprepare(kdwc->clk);
+	return 0;

I had already fixed it in my branch, thaks anyway :-)

Signature · 8 lines
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131212/15123dd5/attachment.sig>