Skip to contentSkip to conversation

add imx usb driver based on Greg next tree

PATCH New Richard Zhao 6 participants 22 messages Jul 7, 2012 – Jul 11, 2012

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

v9 cover add imx usb driver based on Greg next tree

The work is based on ci13xxx rework done by Alexander Shishkin.

To let Greg pick up, I also added patches Alex queued that I depends on.

This patch series can also be found at:
https://github.com/riczhao/kernel-imx/commits/topics/usb-driver

Status:
- this version only support host
- usbotg controler works at host role

Changes since last version:
- Rebase patch that Greg failed to merge.

Richard Zhao (9):
USB: Chipidea: rename struct ci13xxx variables from udc to ci
USB: Chipidea: add unified ci13xxx_{add,remove}_device for platform
drivers
USB: Chipidea: add ci13xxx device id management
usb: chipidea: select USB_EHCI_ROOT_HUB_TT in USB_CHIPIDEA_HOST of
Kconfig
usb: otg: add notify_connect/notify_disconnect callback
USB: notify phy when root hub port connect change
usb: chipidea: permit driver bindings pass phy pointer
usb: otg: add basic mxs phy driver support
usb: chipidea: add imx platform driver

 .../devicetree/bindings/usb/ci13xxx-imx.txt        |   18 +
 Documentation/devicetree/bindings/usb/mxs-phy.txt  |   13 +
 drivers/usb/chipidea/Kconfig                       |    1 +
 drivers/usb/chipidea/Makefile                      |    3 +
 drivers/usb/chipidea/ci.h                          |   28 +-
 drivers/usb/chipidea/ci13xxx_imx.c                 |  198 ++++++
 drivers/usb/chipidea/ci13xxx_msm.c                 |   46 +-
 drivers/usb/chipidea/ci13xxx_pci.c                 |   34 +-
 drivers/usb/chipidea/core.c                        |   58 ++
 drivers/usb/chipidea/debug.c                       |  146 ++---
 drivers/usb/chipidea/host.c                        |    1 +
 drivers/usb/chipidea/udc.c                         |  631 ++++++++++----------
 drivers/usb/core/hub.c                             |    8 +
 drivers/usb/otg/Kconfig                            |   10 +
 drivers/usb/otg/Makefile                           |    1 +
 drivers/usb/otg/mxs-phy.c                          |  186 ++++++
 include/linux/usb/chipidea.h                       |   12 +-
 include/linux/usb/otg.h                            |   21 +
 18 files changed, 953 insertions(+), 462 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/usb/ci13xxx-imx.txt
 create mode 100644 Documentation/devicetree/bindings/usb/mxs-phy.txt
 create mode 100644 drivers/usb/chipidea/ci13xxx_imx.c
 create mode 100644 drivers/usb/otg/mxs-phy.c
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v9 1/9 USB: Chipidea: rename struct ci13xxx variables from udc to ci

struct ci13xxx represent the controller, which may be device or host, so name its variables as ci.

---
 drivers/usb/chipidea/ci.h          |   26 +-
 drivers/usb/chipidea/ci13xxx_msm.c |   12 +-
 drivers/usb/chipidea/debug.c       |  146 ++++-----
 drivers/usb/chipidea/udc.c         |  628 ++++++++++++++++++------------------
 include/linux/usb/chipidea.h       |    2 +-
 5 files changed, 407 insertions(+), 407 deletions(-)
drivers/usb/chipidea/ci.h +13 -13
index 0b09330..9655e35 100644
@@ -36,7 +36,7 @@
  * @name: string description of the endpoint
  * @qh: queue head for this endpoint
  * @wedge: is the endpoint wedged
- * @udc: pointer to the controller
+ * @ci: pointer to the controller
  * @lock: pointer to controller's spinlock
  * @td_pool: pointer to controller's TD pool
  */
@@ -54,7 +54,7 @@ struct ci13xxx_ep {
 	int					wedge;
 
 	/* global resources */
-	struct ci13xxx				*udc;
+	struct ci13xxx				*ci;
 	spinlock_t				*lock;
 	struct dma_pool				*td_pool;
 };
@@ -250,9 +250,9 @@ static inline int ffs_nr(u32 x)
  *
  * This function returns register contents
  */
-static inline u32 hw_read(struct ci13xxx *udc, enum ci13xxx_regs reg, u32 mask)
+static inline u32 hw_read(struct ci13xxx *ci, enum ci13xxx_regs reg, u32 mask)
 {
-	return ioread32(udc->hw_bank.regmap[reg]) & mask;
+	return ioread32(ci->hw_bank.regmap[reg]) & mask;
 }
 
 /**
@@ -261,14 +261,14 @@ static inline u32 hw_read(struct ci13xxx *udc, enum ci13xxx_regs reg, u32 mask)
  * @mask: bitfield mask
  * @data: new value
  */
-static inline void hw_write(struct ci13xxx *udc, enum ci13xxx_regs reg,
+static inline void hw_write(struct ci13xxx *ci, enum ci13xxx_regs reg,
 			    u32 mask, u32 data)
 {
 	if (~mask)
-		data = (ioread32(udc->hw_bank.regmap[reg]) & ~mask)
+		data = (ioread32(ci->hw_bank.regmap[reg]) & ~mask)
 			| (data & mask);
 
-	iowrite32(data, udc->hw_bank.regmap[reg]);
+	iowrite32(data, ci->hw_bank.regmap[reg]);
 }
 
 /**
@@ -278,12 +278,12 @@ static inline void hw_write(struct ci13xxx *udc, enum ci13xxx_regs reg,
  *
  * This function returns register contents
  */
-static inline u32 hw_test_and_clear(struct ci13xxx *udc, enum ci13xxx_regs reg,
+static inline u32 hw_test_and_clear(struct ci13xxx *ci, enum ci13xxx_regs reg,
 				    u32 mask)
 {
-	u32 val = ioread32(udc->hw_bank.regmap[reg]) & mask;
+	u32 val = ioread32(ci->hw_bank.regmap[reg]) & mask;
 
-	iowrite32(val, udc->hw_bank.regmap[reg]);
+	iowrite32(val, ci->hw_bank.regmap[reg]);
 	return val;
 }
 
@@ -295,12 +295,12 @@ static inline u32 hw_test_and_clear(struct ci13xxx *udc, enum ci13xxx_regs reg,
  *
  * This function returns register contents
  */
-static inline u32 hw_test_and_write(struct ci13xxx *udc, enum ci13xxx_regs reg,
+static inline u32 hw_test_and_write(struct ci13xxx *ci, enum ci13xxx_regs reg,
 				    u32 mask, u32 data)
 {
-	u32 val = hw_read(udc, reg, ~0);
+	u32 val = hw_read(ci, reg, ~0);
 
-	hw_write(udc, reg, mask, data);
+	hw_write(ci, reg, mask, data);
 	return (val & mask) >> ffs_nr(mask);
 }
 
drivers/usb/chipidea/ci13xxx_msm.c +6 -6
index 12c0dd6..5a2fe5f 100644
@@ -15,11 +15,11 @@
 
 #include "ci.h"
 
-#define MSM_USB_BASE	(udc->hw_bank.abs)
+#define MSM_USB_BASE	(ci->hw_bank.abs)
 
-static void ci13xxx_msm_notify_event(struct ci13xxx *udc, unsigned event)
+static void ci13xxx_msm_notify_event(struct ci13xxx *ci, unsigned event)
 {
-	struct device *dev = udc->gadget.dev.parent;
+	struct device *dev = ci->gadget.dev.parent;
 	int val;
 
 	switch (event) {
@@ -34,13 +34,13 @@ static void ci13xxx_msm_notify_event(struct ci13xxx *udc, unsigned event)
 		 * Put the transceiver in non-driving mode. Otherwise host
 		 * may not detect soft-disconnection.
 		 */
-		val = usb_phy_io_read(udc->transceiver, ULPI_FUNC_CTRL);
+		val = usb_phy_io_read(ci->transceiver, ULPI_FUNC_CTRL);
 		val &= ~ULPI_FUNC_CTRL_OPMODE_MASK;
 		val |= ULPI_FUNC_CTRL_OPMODE_NONDRIVING;
-		usb_phy_io_write(udc->transceiver, val, ULPI_FUNC_CTRL);
+		usb_phy_io_write(ci->transceiver, val, ULPI_FUNC_CTRL);
 		break;
 	default:
-		dev_dbg(dev, "unknown ci13xxx_udc event\n");
+		dev_dbg(dev, "unknown ci13xxx event\n");
 		break;
 	}
 }
drivers/usb/chipidea/debug.c +73 -73

366 lines not on this page · raw message

drivers/usb/chipidea/udc.c +314 -314

1,352 lines not on this page · raw message

include/linux/usb/chipidea.h +1 -1
index d4cf9706..d2f7e49 100644
@@ -19,7 +19,7 @@ struct ci13xxx_platform_data {
 
 #define CI13XXX_CONTROLLER_RESET_EVENT		0
 #define CI13XXX_CONTROLLER_STOPPED_EVENT	1
-	void	(*notify_event) (struct ci13xxx *udc, unsigned event);
+	void	(*notify_event) (struct ci13xxx *ci, unsigned event);
 };
 
 /* Default offset of capability registers */
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH v9 2/9 USB: Chipidea: add unified ci13xxx_{add, remove}_device for platform drivers

In reply to Richard Zhao

Platform drivers do the similar things to add/remove ci13xxx device, so create a unified one.

---
 drivers/usb/chipidea/ci13xxx_msm.c |   34 ++++++----------------------
 drivers/usb/chipidea/ci13xxx_pci.c |   34 +++++-----------------------
 drivers/usb/chipidea/core.c        |   43 ++++++++++++++++++++++++++++++++++++
 include/linux/usb/chipidea.h       |    7 ++++++
 4 files changed, 63 insertions(+), 55 deletions(-)
drivers/usb/chipidea/ci13xxx_msm.c +7 -27
index 5a2fe5f..b01feb3 100644
@@ -58,43 +58,23 @@ static struct ci13xxx_platform_data ci13xxx_msm_platdata = {
 static int __devinit ci13xxx_msm_probe(struct platform_device *pdev)
 {
 	struct platform_device *plat_ci;
-	int ret;
 
 	dev_dbg(&pdev->dev, "ci13xxx_msm_probe\n");
 
-	plat_ci = platform_device_alloc("ci_hdrc", -1);
-	if (!plat_ci) {
-		dev_err(&pdev->dev, "can't allocate ci_hdrc platform device\n");
-		return -ENOMEM;
+	plat_ci = ci13xxx_add_device(&pdev->dev,
+				pdev->resource, pdev->num_resources,
+				&ci13xxx_msm_platdata);
+	if (IS_ERR(plat_ci)) {
+		dev_err(&pdev->dev, "ci13xxx_add_device failed!\n");
+		return PTR_ERR(plat_ci);
 	}
 
-	ret = platform_device_add_resources(plat_ci, pdev->resource,
-					    pdev->num_resources);
-	if (ret) {
-		dev_err(&pdev->dev, "can't add resources to platform device\n");
-		goto put_platform;
-	}
-
-	ret = platform_device_add_data(plat_ci, &ci13xxx_msm_platdata,
-				       sizeof(ci13xxx_msm_platdata));
-	if (ret)
-		goto put_platform;
-
-	ret = platform_device_add(plat_ci);
-	if (ret)
-		goto put_platform;
-
 	platform_set_drvdata(pdev, plat_ci);
 
 	pm_runtime_no_callbacks(&pdev->dev);
 	pm_runtime_enable(&pdev->dev);
 
 	return 0;
-
-put_platform:
-	platform_device_put(plat_ci);
-
-	return ret;
 }
 
 static int __devexit ci13xxx_msm_remove(struct platform_device *pdev)
@@ -102,7 +82,7 @@ static int __devexit ci13xxx_msm_remove(struct platform_device *pdev)
 	struct platform_device *plat_ci = platform_get_drvdata(pdev);
 
 	pm_runtime_disable(&pdev->dev);
-	platform_device_unregister(plat_ci);
+	ci13xxx_remove_device(plat_ci);
 
 	return 0;
 }
drivers/usb/chipidea/ci13xxx_pci.c +6 -28
index cdcac3a..918e149 100644
@@ -75,13 +75,6 @@ static int __devinit ci13xxx_pci_probe(struct pci_dev *pdev,
 	pci_set_master(pdev);
 	pci_try_set_mwi(pdev);
 
-	plat_ci = platform_device_alloc("ci_hdrc", -1);
-	if (!plat_ci) {
-		dev_err(&pdev->dev, "can't allocate ci_hdrc platform device\n");
-		retval = -ENOMEM;
-		goto disable_device;
-	}
-
 	memset(res, 0, sizeof(res));
 	res[0].start	= pci_resource_start(pdev, 0);
 	res[0].end	= pci_resource_end(pdev, 0);
@@ -89,32 +82,17 @@ static int __devinit ci13xxx_pci_probe(struct pci_dev *pdev,
 	res[1].start	= pdev->irq;
 	res[1].flags	= IORESOURCE_IRQ;
 
-	retval = platform_device_add_resources(plat_ci, res, nres);
-	if (retval) {
-		dev_err(&pdev->dev, "can't add resources to platform device\n");
-		goto put_platform;
+	plat_ci = ci13xxx_add_device(&pdev->dev, res, nres, platdata);
+	if (IS_ERR(plat_ci)) {
+		dev_err(&pdev->dev, "ci13xxx_add_device failed!\n");
+		retval = PTR_ERR(plat_ci);
+		goto disable_device;
 	}
 
-	retval = platform_device_add_data(plat_ci, platdata, sizeof(*platdata));
-	if (retval)
-		goto put_platform;
-
-	dma_set_coherent_mask(&plat_ci->dev, pdev->dev.coherent_dma_mask);
-	plat_ci->dev.dma_mask = pdev->dev.dma_mask;
-	plat_ci->dev.dma_parms = pdev->dev.dma_parms;
-	plat_ci->dev.parent = &pdev->dev;
-
 	pci_set_drvdata(pdev, plat_ci);
 
-	retval = platform_device_add(plat_ci);
-	if (retval)
-		goto put_platform;
-
 	return 0;
 
- put_platform:
-	pci_set_drvdata(pdev, NULL);
-	platform_device_put(plat_ci);
  disable_device:
 	pci_disable_device(pdev);
  done:
@@ -133,7 +111,7 @@ static void __devexit ci13xxx_pci_remove(struct pci_dev *pdev)
 {
 	struct platform_device *plat_ci = pci_get_drvdata(pdev);
 
-	platform_device_unregister(plat_ci);
+	ci13xxx_remove_device(plat_ci);
 	pci_set_drvdata(pdev, NULL);
 	pci_disable_device(pdev);
 }
drivers/usb/chipidea/core.c +43 -0

49 lines not on this page · raw message

include/linux/usb/chipidea.h +7 -0
index d2f7e49..be078f0 100644
@@ -25,4 +25,11 @@ struct ci13xxx_platform_data {
 /* Default offset of capability registers */
 #define DEF_CAPOFFSET		0x100
 
+/* Add ci13xxx device */
+struct platform_device *ci13xxx_add_device(struct device *dev,
+			struct resource *res, int nres,
+			struct ci13xxx_platform_data *platdata);
+/* Remove ci13xxx device */
+void ci13xxx_remove_device(struct platform_device *pdev);
+
 #endif
Signature · 1 line
1.7.9.5
#3 lore raw

PATCH v9 3/9 USB: Chipidea: add ci13xxx device id management

In reply to Richard Zhao

We use ida_simple_get and ida_simple_remove to manage the ids.

---
 drivers/usb/chipidea/core.c |   21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)
drivers/usb/chipidea/core.c +16 -5
index 8b9d06f..39603d7 100644
@@ -56,6 +56,7 @@
 #include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/module.h>
+#include <linux/idr.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/irq.h>
@@ -332,17 +333,24 @@ static irqreturn_t ci_irq(int irq, void *data)
 	return ci->role == CI_ROLE_END ? ret : ci_role(ci)->irq(ci);
 }
 
+static DEFINE_IDA(ci_ida);
+
 struct platform_device *ci13xxx_add_device(struct device *dev,
 			struct resource *res, int nres,
 			struct ci13xxx_platform_data *platdata)
 {
 	struct platform_device *pdev;
-	int ret;
+	int id, ret;
 
-	/* FIXME: find a way to choose id */
-	pdev = platform_device_alloc("ci_hdrc", -1);
-	if (!pdev)
-		return ERR_PTR(-ENOMEM);
+	id = ida_simple_get(&ci_ida, 0, 0, GFP_KERNEL);
+	if (id < 0)
+		return ERR_PTR(id);
+
+	pdev = platform_device_alloc("ci_hdrc", id);
+	if (!pdev) {
+		ret = -ENOMEM;
+		goto put_id;
+	}
 
 	pdev->dev.parent = dev;
 	pdev->dev.dma_mask = dev->dma_mask;
@@ -365,6 +373,8 @@ struct platform_device *ci13xxx_add_device(struct device *dev,
 
 err:
 	platform_device_put(pdev);
+put_id:
+	ida_simple_remove(&ci_ida, id);
 	return ERR_PTR(ret);
 }
 EXPORT_SYMBOL_GPL(ci13xxx_add_device);
@@ -372,6 +382,7 @@ EXPORT_SYMBOL_GPL(ci13xxx_add_device);
 void ci13xxx_remove_device(struct platform_device *pdev)
 {
 	platform_device_unregister(pdev);
+	ida_simple_remove(&ci_ida, pdev->id);
 }
 EXPORT_SYMBOL_GPL(ci13xxx_remove_device);
 
Signature · 1 line
1.7.9.5
#4 lore raw

PATCH v9 4/9 usb: chipidea: select USB_EHCI_ROOT_HUB_TT in USB_CHIPIDEA_HOST of Kconfig

In reply to Richard Zhao

ci13xxx host needs Root Hub Transaction Translators.

---
 drivers/usb/chipidea/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/usb/chipidea/Kconfig +1 -0
index fd36dc8..8337fb5 100644
@@ -20,6 +20,7 @@ config USB_CHIPIDEA_UDC
 
 config USB_CHIPIDEA_HOST
 	bool "ChipIdea host controller"
+	select USB_EHCI_ROOT_HUB_TT
 	help
 	  Say Y here to enable host controller functionality of the
 	  ChipIdea driver.
Signature · 1 line
1.7.9.5
#5 lore raw

PATCH v9 5/9 usb: otg: add notify_connect/notify_disconnect callback

In reply to Richard Zhao

This let usb phy driver has a chance to change hw settings when connect status change.

---
 include/linux/usb/otg.h |   21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
include/linux/usb/otg.h +21 -0
index 0cb2ec2..45824be 100644
@@ -128,6 +128,9 @@ struct usb_phy {
 	int	(*set_suspend)(struct usb_phy *x,
 				int suspend);
 
+	/* notify phy connect status change */
+	int	(*notify_connect)(struct usb_phy *x, int port);
+	int	(*notify_disconnect)(struct usb_phy *x, int port);
 };
 
 
@@ -277,6 +280,24 @@ usb_phy_set_suspend(struct usb_phy *x, int suspend)
 }
 
 static inline int
+usb_phy_notify_connect(struct usb_phy *x, int port)
+{
+	if (x->notify_connect)
+		return x->notify_connect(x, port);
+	else
+		return 0;
+}
+
+static inline int
+usb_phy_notify_disconnect(struct usb_phy *x, int port)
+{
+	if (x->notify_disconnect)
+		return x->notify_disconnect(x, port);
+	else
+		return 0;
+}
+
+static inline int
 otg_start_srp(struct usb_otg *otg)
 {
 	if (otg && otg->start_srp)
Signature · 1 line
1.7.9.5
#6 lore raw

PATCH v9 6/9 USB: notify phy when root hub port connect change

In reply to Richard Zhao

Phy may need to change settings when port connect change.

---
 drivers/usb/core/hub.c |    8 ++++++++
 1 file changed, 8 insertions(+)
drivers/usb/core/hub.c +8 -0
index 4cc8dc9..2ba9d84 100644
@@ -20,6 +20,7 @@
 #include <linux/usb.h>
 #include <linux/usbdevice_fs.h>
 #include <linux/usb/hcd.h>
+#include <linux/usb/otg.h>
 #include <linux/usb/quirks.h>
 #include <linux/kthread.h>
 #include <linux/mutex.h>
@@ -4037,6 +4038,13 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1,
 		}
 	}
 
+	if (unlikely(hcd->phy && !hdev->parent)) {
+		if (portstatus & USB_PORT_STAT_CONNECTION)
+			usb_phy_notify_connect(hcd->phy, port1);
+		else
+			usb_phy_notify_disconnect(hcd->phy, port1);
+	}
+
 	/* Return now if debouncing failed or nothing is connected or
 	 * the device was "removed".
 	 */
Signature · 1 line
1.7.9.5
maintainer
#7 lore raw

PATCH v9 6/9 USB: notify phy when root hub port connect change

Quoted 21 lines · Richard Zhao

Phy may need to change settings when port connect change.

---
 drivers/usb/core/hub.c |    8 ++++++++
 1 file changed, 8 insertions(+)
drivers/usb/core/hub.c +1 -0
index 4cc8dc9..2ba9d84 100644
@@ -20,6 +20,7 @@
 #include <linux/usb.h>
 #include <linux/usbdevice_fs.h>
 #include <linux/usb/hcd.h>
+#include <linux/usb/otg.h>
 #include <linux/usb/quirks.h>
 #include <linux/kthread.h>
 #include <linux/mutex.h>

drivers/usb/core/hub.c static void hub_port_connect_change(struct usb_hub *hub, int port1, · line 4041

Quoted 4 lines
drivers/usb/core/hub.c +1 -0
@@ -4037,6 +4038,13 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1,
 		}
 	}
 
+	if (unlikely(hcd->phy && !hdev->parent)) {

Why is this "unlikely"? And why mark it as such, is this a "fast path" that needs the compiler to know this hint to optimize things here?

Please don't use likely() or unlikely() except in places it really is needed, _and_ you have measured the difference. Have you done so in this place?

thanks,

greg k-h

#8 lore raw

PATCH v9 6/9 USB: notify phy when root hub port connect change

Quoted 25 lines · Greg KH
Quoted 24 lines · Richard Zhao

Phy may need to change settings when port connect change.

---
 drivers/usb/core/hub.c |    8 ++++++++
 1 file changed, 8 insertions(+)
drivers/usb/core/hub.c +1 -0
index 4cc8dc9..2ba9d84 100644
@@ -20,6 +20,7 @@
 #include <linux/usb.h>
 #include <linux/usbdevice_fs.h>
 #include <linux/usb/hcd.h>
+#include <linux/usb/otg.h>
 #include <linux/usb/quirks.h>
 #include <linux/kthread.h>
 #include <linux/mutex.h>
@@ -4037,6 +4038,13 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1,
 		}
 	}
 
Quoted 8 lines

drivers/usb/core/hub.c static void hub_port_connect_change(struct usb_hub *hub, int port1, · line 4041

Quoted 1 line
drivers/usb/core/hub.c +1 -0
+	if (unlikely(hcd->phy && !hdev->parent)) {

Why is this "unlikely"? And why mark it as such, is this a "fast path" that needs the compiler to know this hint to optimize things here?

Please don't use likely() or unlikely() except in places it really is needed, _and_ you have measured the difference. Have you done so in this place?

It's from a comment by Alan Stern.
http://www.spinics.net/lists/linux-usb/msg64987.html

Actually, for my board, it's not unlikely. But for others which don't have notify_connect/disconnect, it's unlikely.

Because it's not unlikely for all boards, I prefer remove "unlikely".

Thanks
Richard

Quoted 5 lines

thanks,

greg k-h

#9 lore raw

PATCH v9 6/9 USB: notify phy when root hub port connect change

Quoted 9 lines · Richard Zhao
Quoted 9 lines

drivers/usb/core/hub.c static void hub_port_connect_change(struct usb_hub *hub, int port1, · line 4041

Quoted 5 lines
drivers/usb/core/hub.c +1 -0
@@ -4037,6 +4038,13 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1,
 		}
 	}
 
+	if (unlikely(hcd->phy && !hdev->parent)) {

Why is this "unlikely"? And why mark it as such, is this a "fast path" that needs the compiler to know this hint to optimize things here?

Quoted 5 lines
Quoted 3 lines

Please don't use likely() or unlikely() except in places it really is needed, _and_ you have measured the difference. Have you done so in this place?

It's from a comment by Alan Stern.
http://www.spinics.net/lists/linux-usb/msg64987.html

That comment was made in a somewhat different context. At the time the code was part of an interrupt handler; now it isn't.

Quoted 4 lines

Actually, for my board, it's not unlikely. But for others which don't have notify_connect/disconnect, it's unlikely.

Because it's not unlikely for all boards, I prefer remove "unlikely".

It's no longer a big deal one way or another. I don't care about the "unlikely" because it's on a cold path running in process context. Go ahead and remove it.

Alan Stern

#10 lore raw

PATCH v9 6/9 USB: notify phy when root hub port connect change

Quoted 20 lines · Alan Stern
Quoted 9 lines · Richard Zhao
Quoted 9 lines

drivers/usb/core/hub.c static void hub_port_connect_change(struct usb_hub *hub, int port1, · line 4041

Quoted 5 lines
drivers/usb/core/hub.c +1 -0
@@ -4037,6 +4038,13 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1,
 		}
 	}
 
+	if (unlikely(hcd->phy && !hdev->parent)) {

Why is this "unlikely"? And why mark it as such, is this a "fast path" that needs the compiler to know this hint to optimize things here?

Quoted 5 lines
Quoted 3 lines

Please don't use likely() or unlikely() except in places it really is needed, _and_ you have measured the difference. Have you done so in this place?

It's from a comment by Alan Stern.
http://www.spinics.net/lists/linux-usb/msg64987.html

That comment was made in a somewhat different context. At the time the code was part of an interrupt handler; now it isn't.

Quoted 8 lines
Quoted 4 lines

Actually, for my board, it's not unlikely. But for others which don't have notify_connect/disconnect, it's unlikely.

Because it's not unlikely for all boards, I prefer remove "unlikely".

It's no longer a big deal one way or another. I don't care about the "unlikely" because it's on a cold path running in process context. Go ahead and remove it.

Ok. I'll remove it.

Thanks
Richard

Quoted 3 lines

Alan Stern

#11 lore raw

PATCH v9 6/9 USB: notify phy when root hub port connect change

In reply to Richard Zhao
Quoted 21 lines · Richard Zhao

Phy may need to change settings when port connect change.

---
 drivers/usb/core/hub.c |    8 ++++++++
 1 file changed, 8 insertions(+)
drivers/usb/core/hub.c +1 -0
index 4cc8dc9..2ba9d84 100644
@@ -20,6 +20,7 @@
 #include <linux/usb.h>
 #include <linux/usbdevice_fs.h>
 #include <linux/usb/hcd.h>
+#include <linux/usb/otg.h>
 #include <linux/usb/quirks.h>
 #include <linux/kthread.h>
 #include <linux/mutex.h>

drivers/usb/core/hub.c static void hub_port_connect_change(struct usb_hub *hub, int port1, · line 4045

Quoted 8 lines
drivers/usb/core/hub.c +5 -0
@@ -4037,6 +4038,13 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1,
 		}
 	}
 
+	if (unlikely(hcd->phy && !hdev->parent)) {
+		if (portstatus & USB_PORT_STAT_CONNECTION)
+			usb_phy_notify_connect(hcd->phy, port1);
+		else
+			usb_phy_notify_disconnect(hcd->phy, port1);

There's another issue. When hcd is removed, notify disconnect is not called. Is it ok, if I remove the above two line and add below patch:

drivers/usb/core/hub.c +5 -0
@@ -1924,6 +1924,11 @@ void usb_disconnect(struct usb_device **pdev)
 	 */
 	device_del(&udev->dev);
 
+	if (udev->parent && !udev->parent->parent) {
+		struct usb_hcd *hcd = bus_to_hcd(udev->bus);
+		usb_phy_notify_disconnect(hcd->phy, udev->portnum);
+	}
+
 	/* Free the device number and delete the parent's children[]
 	 * (or root_hub) pointer.
 	 */

Thanks
Richard

#12 lore raw

PATCH v9 6/9 USB: notify phy when root hub port connect change

Dear Richard Zhao,

Quoted 45 lines · Richard Zhao
Quoted 27 lines

Phy may need to change settings when port connect change.

---

 drivers/usb/core/hub.c |    8 ++++++++
 1 file changed, 8 insertions(+)
drivers/usb/core/hub.c +1 -0
index 4cc8dc9..2ba9d84 100644
@@ -20,6 +20,7 @@
 
 #include <linux/usb.h>
 #include <linux/usbdevice_fs.h>
 #include <linux/usb/hcd.h>
 
+#include <linux/usb/otg.h>
 

#include <linux/usb/quirks.h>
#include <linux/kthread.h>
#include <linux/mutex.h>

drivers/usb/core/hub.c +0 -0
@@ -4037,6 +4038,13 @@ static void hub_port_connect_change(struct usb_hub
 *hub, int port1,

drivers/usb/core/hub.c static void hub_port_connect_change(struct usb_hub · line 4048

Quoted 10 lines
drivers/usb/core/hub.c +5 -0
 
 		}
 
 	}
 
+	if (unlikely(hcd->phy && !hdev->parent)) {
+		if (portstatus & USB_PORT_STAT_CONNECTION)
+			usb_phy_notify_connect(hcd->phy, port1);
+		else
+			usb_phy_notify_disconnect(hcd->phy, port1);

There's another issue. When hcd is removed, notify disconnect is not called. Is it ok, if I remove the above two line and add below patch:

drivers/usb/core/hub.c void usb_disconnect(struct usb_device **pdev) · line 1930

Quoted 7 lines
drivers/usb/core/hub.c +4 -0
@@ -1924,6 +1924,11 @@ void usb_disconnect(struct usb_device **pdev)
 	 */
 	device_del(&udev->dev);
 
+	if (udev->parent && !udev->parent->parent) {
+		struct usb_hcd *hcd = bus_to_hcd(udev->bus);
+		usb_phy_notify_disconnect(hcd->phy, udev->portnum);
+	}

Shouldn't that go before device_del() ?

Quoted 8 lines
drivers/usb/core/hub.c +1 -0
+
 	/* Free the device number and delete the parent's children[]
 	 * (or root_hub) pointer.
 	 */

Thanks
Richard

Best regards,
Marek Vasut

#13 lore raw

PATCH v9 6/9 USB: notify phy when root hub port connect change

Quoted 50 lines · Marek Vasut

Dear Richard Zhao,

Quoted 48 lines · Richard Zhao
Quoted 27 lines

Phy may need to change settings when port connect change.

---

 drivers/usb/core/hub.c |    8 ++++++++
 1 file changed, 8 insertions(+)
drivers/usb/core/hub.c +1 -0
index 4cc8dc9..2ba9d84 100644
@@ -20,6 +20,7 @@
 
 #include <linux/usb.h>
 #include <linux/usbdevice_fs.h>
 #include <linux/usb/hcd.h>
 
+#include <linux/usb/otg.h>
 

#include <linux/usb/quirks.h>
#include <linux/kthread.h>
#include <linux/mutex.h>

drivers/usb/core/hub.c +0 -0
@@ -4037,6 +4038,13 @@ static void hub_port_connect_change(struct usb_hub
 *hub, int port1,

drivers/usb/core/hub.c static void hub_port_connect_change(struct usb_hub · line 4048

Quoted 10 lines
drivers/usb/core/hub.c +5 -0
 
 		}
 
 	}
 
+	if (unlikely(hcd->phy && !hdev->parent)) {
+		if (portstatus & USB_PORT_STAT_CONNECTION)
+			usb_phy_notify_connect(hcd->phy, port1);
+		else
+			usb_phy_notify_disconnect(hcd->phy, port1);

There's another issue. When hcd is removed, notify disconnect is not called. Is it ok, if I remove the above two line and add below patch:

drivers/usb/core/hub.c +0 -0
@@ -1924,6 +1924,11 @@ void usb_disconnect(struct usb_device **pdev)
 	 */
 	device_del(&udev->dev);
 
Quoted 6 lines

drivers/usb/core/hub.c void usb_disconnect(struct usb_device **pdev) · line 1930

Quoted 4 lines
drivers/usb/core/hub.c +4 -0
+	if (udev->parent && !udev->parent->parent) {
+		struct usb_hcd *hcd = bus_to_hcd(udev->bus);
+		usb_phy_notify_disconnect(hcd->phy, udev->portnum);
+	}

Shouldn't that go before device_del() ?

Any difference?

Thanks
Richard

Quoted 13 lines
Quoted 9 lines
drivers/usb/core/hub.c +1 -0
+
 	/* Free the device number and delete the parent's children[]
 	 * (or root_hub) pointer.
 	 */

Thanks
Richard

Best regards,
Marek Vasut

#14 lore raw

PATCH v9 6/9 USB: notify phy when root hub port connect change

Dear Richard Zhao,

[...]

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
drivers/usb/core/hub.c +0 -0
@@ -1924,6 +1924,11 @@ void usb_disconnect(struct usb_device **pdev)
 
 	 */
 
 	device_del(&udev->dev);
 
Quoted 8 lines
Quoted 6 lines

drivers/usb/core/hub.c void usb_disconnect(struct usb_device **pdev) · line 1930

Quoted 4 lines
drivers/usb/core/hub.c +4 -0
+	if (udev->parent && !udev->parent->parent) {
+		struct usb_hcd *hcd = bus_to_hcd(udev->bus);
+		usb_phy_notify_disconnect(hcd->phy, udev->portnum);
+	}

Shouldn't that go before device_del() ?

Any difference?

I was worried some corruption of other members in udev structure might happen, but I'm not so sure anymore after taking deer look.

Quoted 2 lines

Thanks
Richard

Best regards,
Marek Vasut

#15 lore raw

PATCH v9 6/9 USB: notify phy when root hub port connect change

In reply to Richard Zhao
Quoted 25 lines · Richard Zhao
Quoted 24 lines · Richard Zhao

Phy may need to change settings when port connect change.

---
 drivers/usb/core/hub.c |    8 ++++++++
 1 file changed, 8 insertions(+)
drivers/usb/core/hub.c +1 -0
index 4cc8dc9..2ba9d84 100644
@@ -20,6 +20,7 @@
 #include <linux/usb.h>
 #include <linux/usbdevice_fs.h>
 #include <linux/usb/hcd.h>
+#include <linux/usb/otg.h>
 #include <linux/usb/quirks.h>
 #include <linux/kthread.h>
 #include <linux/mutex.h>
@@ -4037,6 +4038,13 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1,
 		}
 	}
 
Quoted 7 lines

drivers/usb/core/hub.c static void hub_port_connect_change(struct usb_hub *hub, int port1, · line 4045

Quoted 5 lines
drivers/usb/core/hub.c +5 -0
+	if (unlikely(hcd->phy && !hdev->parent)) {
+		if (portstatus & USB_PORT_STAT_CONNECTION)
+			usb_phy_notify_connect(hcd->phy, port1);
+		else
+			usb_phy_notify_disconnect(hcd->phy, port1);

There's another issue. When hcd is removed, notify disconnect is not called. Is it ok, if I remove the above two line and add below patch:

You should keep those two lines, since it's possible for a disconnect to occur without usb_disconnect() being called. This happens when a device fails to enumerate.

drivers/usb/core/hub.c void usb_disconnect(struct usb_device **pdev) · line 1930

Quoted 10 lines
drivers/usb/core/hub.c +4 -0
@@ -1924,6 +1924,11 @@ void usb_disconnect(struct usb_device **pdev)
 	 */
 	device_del(&udev->dev);
 
+	if (udev->parent && !udev->parent->parent) {
+		struct usb_hcd *hcd = bus_to_hcd(udev->bus);
+		usb_phy_notify_disconnect(hcd->phy, udev->portnum);
+	}

You might not want to add this. usb_disconnect() can get called in situations where the device remains physically connected (if the firmware changes during a reset, for example).

If you want to notify the phy when the root hub is removed, there are better places to do it. One possibility is in hub_quiesce(), another is in usb_remove_hcd().

Alan Stern

#16 lore raw

PATCH v9 6/9 USB: notify phy when root hub port connect change

Quoted 54 lines · Alan Stern
Quoted 25 lines · Richard Zhao
Quoted 24 lines · Richard Zhao

Phy may need to change settings when port connect change.

---
 drivers/usb/core/hub.c |    8 ++++++++
 1 file changed, 8 insertions(+)
drivers/usb/core/hub.c +1 -0
index 4cc8dc9..2ba9d84 100644
@@ -20,6 +20,7 @@
 #include <linux/usb.h>
 #include <linux/usbdevice_fs.h>
 #include <linux/usb/hcd.h>
+#include <linux/usb/otg.h>
 #include <linux/usb/quirks.h>
 #include <linux/kthread.h>
 #include <linux/mutex.h>
@@ -4037,6 +4038,13 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1,
 		}
 	}
 
Quoted 7 lines

drivers/usb/core/hub.c static void hub_port_connect_change(struct usb_hub *hub, int port1, · line 4045

Quoted 5 lines
drivers/usb/core/hub.c +5 -0
+	if (unlikely(hcd->phy && !hdev->parent)) {
+		if (portstatus & USB_PORT_STAT_CONNECTION)
+			usb_phy_notify_connect(hcd->phy, port1);
+		else
+			usb_phy_notify_disconnect(hcd->phy, port1);

There's another issue. When hcd is removed, notify disconnect is not called. Is it ok, if I remove the above two line and add below patch:

You should keep those two lines, since it's possible for a disconnect to occur without usb_disconnect() being called. This happens when a device fails to enumerate.

drivers/usb/core/hub.c void usb_disconnect(struct usb_device **pdev) · line 1930

Quoted 10 lines
drivers/usb/core/hub.c +4 -0
@@ -1924,6 +1924,11 @@ void usb_disconnect(struct usb_device **pdev)
 	 */
 	device_del(&udev->dev);
 
+	if (udev->parent && !udev->parent->parent) {
+		struct usb_hcd *hcd = bus_to_hcd(udev->bus);
+		usb_phy_notify_disconnect(hcd->phy, udev->portnum);
+	}

You might not want to add this. usb_disconnect() can get called in situations where the device remains physically connected (if the firmware changes during a reset, for example).

Quoted 3 lines

If you want to notify the phy when the root hub is removed, there are better places to do it. One possibility is in hub_quiesce(), another is in usb_remove_hcd().

Thanks. I'll need more testing, and won't add it in this patch.

Richard

Quoted 8 lines

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

#17 lore raw

PATCH v9 7/9 usb: chipidea: permit driver bindings pass phy pointer

In reply to Richard Zhao

Sometimes, the driver bindings may know what phy they use. For example, when using device tree, the usb controller may have a phandler pointing to usb phy.

---
 drivers/usb/chipidea/ci.h    |    2 ++
 drivers/usb/chipidea/core.c  |    4 ++++
 drivers/usb/chipidea/host.c  |    1 +
 drivers/usb/chipidea/udc.c   |   11 +++++++----
 include/linux/usb/chipidea.h |    3 +++
 5 files changed, 17 insertions(+), 4 deletions(-)
drivers/usb/chipidea/ci.h +2 -0
index 9655e35..d738603 100644
@@ -160,6 +160,8 @@ struct ci13xxx {
 
 	struct ci13xxx_platform_data	*platdata;
 	int				vbus_active;
+	/* FIXME: some day, we'll not use global phy */
+	bool				global_phy;
 	struct usb_phy			*transceiver;
 	struct usb_hcd			*hcd;
 };
drivers/usb/chipidea/core.c +4 -0
index 39603d7..1083585 100644
@@ -419,6 +419,10 @@ static int __devinit ci_hdrc_probe(struct platform_device *pdev)
 
 	ci->dev = dev;
 	ci->platdata = dev->platform_data;
+	if (ci->platdata->phy)
+		ci->transceiver = ci->platdata->phy;
+	else
+		ci->global_phy = true;
 
 	ret = hw_device_init(ci, base);
 	if (ret < 0) {
drivers/usb/chipidea/host.c +1 -0
index 4a4fdb8..ebff9f4 100644
@@ -117,6 +117,7 @@ static int host_start(struct ci13xxx *ci)
 	hcd->has_tt = 1;
 
 	hcd->power_budget = ci->platdata->power_budget;
+	hcd->phy = ci->transceiver;
 
 	ehci = hcd_to_ehci(hcd);
 	ehci->caps = ci->hw_bank.cap;
drivers/usb/chipidea/udc.c +7 -4
index ba8284e..c7a032a 100644
@@ -1685,7 +1685,8 @@ static int udc_start(struct ci13xxx *ci)
 
 	ci->gadget.ep0 = &ci->ep0in->ep;
 
-	ci->transceiver = usb_get_phy(USB_PHY_TYPE_USB2);
+	if (ci->global_phy)
+		ci->transceiver = usb_get_phy(USB_PHY_TYPE_USB2);
 
 	if (ci->platdata->flags & CI13XXX_REQUIRE_TRANSCEIVER) {
 		if (ci->transceiver == NULL) {
@@ -1729,7 +1730,8 @@ static int udc_start(struct ci13xxx *ci)
 remove_trans:
 	if (!IS_ERR_OR_NULL(ci->transceiver)) {
 		otg_set_peripheral(ci->transceiver->otg, &ci->gadget);
-		usb_put_phy(ci->transceiver);
+		if (ci->global_phy)
+			usb_put_phy(ci->transceiver);
 	}
 
 	dev_err(dev, "error = %i\n", retval);
@@ -1738,7 +1740,7 @@ remove_dbg:
 unreg_device:
 	device_unregister(&ci->gadget.dev);
 put_transceiver:
-	if (!IS_ERR_OR_NULL(ci->transceiver))
+	if (!IS_ERR_OR_NULL(ci->transceiver) && ci->global_phy)
 		usb_put_phy(ci->transceiver);
 free_pools:
 	dma_pool_destroy(ci->td_pool);
@@ -1772,7 +1774,8 @@ static void udc_stop(struct ci13xxx *ci)
 
 	if (!IS_ERR_OR_NULL(ci->transceiver)) {
 		otg_set_peripheral(ci->transceiver->otg, NULL);
-		usb_put_phy(ci->transceiver);
+		if (ci->global_phy)
+			usb_put_phy(ci->transceiver);
 	}
 	dbg_remove_files(&ci->gadget.dev);
 	device_unregister(&ci->gadget.dev);
include/linux/usb/chipidea.h +3 -0
index be078f0..544825d 100644
@@ -5,12 +5,15 @@
 #ifndef __LINUX_USB_CHIPIDEA_H
 #define __LINUX_USB_CHIPIDEA_H
 
+#include <linux/usb/otg.h>
+
 struct ci13xxx;
 struct ci13xxx_platform_data {
 	const char	*name;
 	/* offset of the capability registers */
 	uintptr_t	 capoffset;
 	unsigned	 power_budget;
+	struct usb_phy	*phy;
 	unsigned long	 flags;
 #define CI13XXX_REGS_SHARED		BIT(0)
 #define CI13XXX_REQUIRE_TRANSCEIVER	BIT(1)
Signature · 1 line
1.7.9.5
#18 lore raw

PATCH v9 8/9 usb: otg: add basic mxs phy driver support

In reply to Richard Zhao

mxs phy is used in Freescale i.MX SoCs, for example imx23, imx28, imx6Q. This patch adds the basic host support.

---
 Documentation/devicetree/bindings/usb/mxs-phy.txt |   13 ++
 drivers/usb/otg/Kconfig                           |   10 ++
 drivers/usb/otg/Makefile                          |    1 +
 drivers/usb/otg/mxs-phy.c                         |  186 +++++++++++++++++++++
 4 files changed, 210 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/usb/mxs-phy.txt
 create mode 100644 drivers/usb/otg/mxs-phy.c
Documentation/devicetree/bindings/usb/mxs-phy.txt new file +13 -0
new file mode 100644
index 0000000..5835b27
@@ -0,0 +1,13 @@
+* Freescale MXS USB Phy Device
+
+Required properties:
+- compatible: Should be "fsl,imx23-usbphy"
+- reg: Should contain registers location and length
+- interrupts: Should contain phy interrupt
+
+Example:
+usbphy1: usbphy at 020c9000 {
+	compatible = "fsl,imx6q-usbphy", "fsl,imx23-usbphy";
+	reg = <0x020c9000 0x1000>;
+	interrupts = <0 44 0x04>;
+};
drivers/usb/otg/Kconfig +10 -0
index 5c87db0..13fd1ddf 100644
@@ -116,6 +116,16 @@ config FSL_USB2_OTG
 	help
 	  Enable this to support Freescale USB OTG transceiver.
 
+config USB_MXS_PHY
+	tristate "Freescale MXS USB PHY support"
+	depends on ARCH_MXC || ARCH_MXS
+	select STMP_DEVICE
+	select USB_OTG_UTILS
+	help
+	  Enable this to support the Freescale MXS USB PHY.
+
+	  MXS Phy is used by some of the i.MX SoCs, for example imx23/28/6x.
+
 config USB_MV_OTG
 	tristate "Marvell USB OTG support"
 	depends on USB_EHCI_MV && USB_MV_UDC && USB_SUSPEND
drivers/usb/otg/Makefile +1 -0
index 41aa509..a844b8d 100644
@@ -20,4 +20,5 @@ obj-$(CONFIG_USB_MSM_OTG)	+= msm_otg.o
 obj-$(CONFIG_AB8500_USB)	+= ab8500-usb.o
 fsl_usb2_otg-objs		:= fsl_otg.o otg_fsm.o
 obj-$(CONFIG_FSL_USB2_OTG)	+= fsl_usb2_otg.o
+obj-$(CONFIG_USB_MXS_PHY)	+= mxs-phy.o
 obj-$(CONFIG_USB_MV_OTG)	+= mv_otg.o
drivers/usb/otg/mxs-phy.c new file +186 -0

186 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#19 lore raw

PATCH v9 9/9 usb: chipidea: add imx platform driver

In reply to Richard Zhao

This patch supports only the host-mode functionality so far.

Cc Peter Chen <[email protected]>
Cc Alexander Shishkin <[email protected]>
Cc Felipe Balbi <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 .../devicetree/bindings/usb/ci13xxx-imx.txt        |   18 ++
 drivers/usb/chipidea/Makefile                      |    3 +
 drivers/usb/chipidea/ci13xxx_imx.c                 |  198 ++++++++++++++++++++
 3 files changed, 219 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/usb/ci13xxx-imx.txt
 create mode 100644 drivers/usb/chipidea/ci13xxx_imx.c
Documentation/devicetree/bindings/usb/ci13xxx-imx.txt new file +18 -0
new file mode 100644
index 0000000..2c29041
@@ -0,0 +1,18 @@
+* Freescale i.MX ci13xxx usb controllers
+
+Required properties:
+- compatible: Should be "fsl,imx27-usb"
+- reg: Should contain registers location and length
+- interrupts: Should contain controller interrupt
+
+Optional properties:
+- fsl,usbphy: phandler of usb phy that connects to the only one port
+- vbus-supply: regulator for vbus
+
+Examples:
+usb at 02184000 { /* USB OTG */
+	compatible = "fsl,imx6q-usb", "fsl,imx27-usb";
+	reg = <0x02184000 0x200>;
+	interrupts = <0 43 0x04>;
+	fsl,usbphy = <&usbphy1>;
+};
drivers/usb/chipidea/Makefile +3 -0
index b69900a..5c66d9c 100644
@@ -14,3 +14,6 @@ ifneq ($(CONFIG_PCI),)
 	obj-$(CONFIG_USB_CHIPIDEA)	+= ci13xxx_pci.o
 endif
 
+ifneq ($(CONFIG_OF_DEVICE),)
+	obj-$(CONFIG_USB_CHIPIDEA)	+= ci13xxx_imx.o
+endif
drivers/usb/chipidea/ci13xxx_imx.c new file +198 -0

198 lines not on this page · raw message

Signature · 1 line
1.7.9.5
maintainer
#20 lore raw

v9 cover add imx usb driver based on Greg next tree

In reply to Richard Zhao
Quoted 3 lines · Richard Zhao

The work is based on ci13xxx rework done by Alexander Shishkin.

To let Greg pick up, I also added patches Alex queued that I depends on.

I've applied everything but patch number 6, which I've responded to with some questions about it.

thanks,

greg k-h

#21 lore raw

v9 cover add imx usb driver based on Greg next tree

Dear Greg KH,

Quoted 7 lines · Richard Zhao
Quoted 3 lines

The work is based on ci13xxx rework done by Alexander Shishkin.

To let Greg pick up, I also added patches Alex queued that I depends on.

I've applied everything but patch number 6, which I've responded to with some questions about it.

That #6 emerged after discussion with Alan. It's unlikely on most hardware, but there are a few pieces where that case will happen.

Quoted 3 lines

thanks,

greg k-h

Best regards,
Marek Vasut