Re: [PATCH 2/3 v3] usb: renesas_usbhs: support multi-channels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

On 17-06-2011 5:20, Kuninori Morimoto wrote:

Current renesas_usbhs supported 1 channel.
This patch support multi-channels.

Cc: Magnus <magnus.damm@xxxxxxxxx>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>
---
v2 ->  v3

- linked list version

  drivers/usb/renesas_usbhs/mod_gadget.c |   54 +++++++++++++++++++++++--------
  1 files changed, 40 insertions(+), 14 deletions(-)

diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c
index aa591b6..c6975ad 100644
--- a/drivers/usb/renesas_usbhs/mod_gadget.c
+++ b/drivers/usb/renesas_usbhs/mod_gadget.c
[...]
@@ -779,18 +796,25 @@ EXPORT_SYMBOL(usb_gadget_probe_driver);
[...]
+	/*
+	 * find controller
+	 */
+	usbhsg_for_each_controller(gpriv) {
+		if (gpriv->driver == driver)
+			goto find_muching_controller;
+	}
+	return -ENODEV;
+
+find_muching_controller:

   Maybe you mean "matching"?

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


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux