Re: [PATCH v6 2/4] usb: gadget: Refactor request completion

2014-09-29 Thread Michal Sojka
On Mon, Sep 29 2014, Robert Baldyga wrote: Hi, On 09/24/2014 10:43 PM, Michal Sojka wrote: Use the recently introduced usb_gadget_giveback_request() in favor of direct invocation of the completion routine. All places in drivers/usb/ matching [-.]complete( were replaced with a call

[PATCH v6 1/4] usb: gadget: Introduce usb_gadget_giveback_request()

2014-09-24 Thread Michal Sojka
All USB peripheral controller drivers call completion routines directly. This patch adds usb_gadget_giveback_request() which will be used instead of direct invocation in the next patch. The goal here is to have a place where common functionality can be added. Signed-off-by: Michal Sojka so

[PATCH v6 3/4] usb: Rename usb-common.c

2014-09-24 Thread Michal Sojka
-common.o comprises only common.o. Signed-off-by: Michal Sojka so...@merica.cz --- drivers/usb/common/Makefile | 4 +- drivers/usb/common/common.c | 144 drivers/usb/common/usb-common.c | 144 3 files changed, 147

[PATCH v6 0/4] LED triggers for USB host and device

2014-09-24 Thread Michal Sojka
in usb/common/ (Felipe Balbi). - UDC drivers refactored so that LED trigger works for all of them. Changes from v1: - Moved from drivers/leds/ to drivers/usb/. - Improved Kconfig help. - Linked with other modules rather than being standalone modules. Michal Sojka (4): usb: gadget: Introduce

[PATCH v6 4/4] usb: Add LED triggers for USB activity

2014-09-24 Thread Michal Sojka
to the trigger): - __usb_hcd_giveback_urb():10 - 25 µs - usb_gadget_giveback_request(): 2 - 6 µs Signed-off-by: Michal Sojka so...@merica.cz --- drivers/usb/Kconfig | 10 +++ drivers/usb/common/Makefile | 1 + drivers/usb/common/led.c | 57

[PATCH v6 2/4] usb: gadget: Refactor request completion

2014-09-24 Thread Michal Sojka
for musb. Signed-off-by: Michal Sojka so...@merica.cz --- drivers/usb/chipidea/udc.c | 6 +++--- drivers/usb/dwc2/gadget.c | 6 +++--- drivers/usb/dwc3/gadget.c | 2 +- drivers/usb/gadget/udc/amd5536udc.c | 2 +- drivers/usb/gadget/udc/at91_udc.c

Re: [PATCH v5 1/3] usb: gadget: Refactor request completion

2014-09-23 Thread Michal Sojka
Dear Felipe, On Wed, Sep 17 2014, Felipe Balbi wrote: On Wed, Sep 17, 2014 at 09:21:11AM +0200, Michal Sojka wrote: All USB peripheral controller drivers called completion routines directly. This patch moves the completion call from drivers to usb_gadget_giveback_request(), in order to have

[PATCH v5 2/3] usb: Rename usb-common.c

2014-09-17 Thread Michal Sojka
-common.o comprises only common.o. Signed-off-by: Michal Sojka so...@merica.cz --- drivers/usb/common/Makefile | 4 +++- drivers/usb/common/{usb-common.c = common.c} | 0 2 files changed, 3 insertions(+), 1 deletion(-) rename drivers/usb/common/{usb-common.c = common.c} (100%) diff

[PATCH v5 3/3] usb: Add LED triggers for USB activity

2014-09-17 Thread Michal Sojka
to the trigger): - __usb_hcd_giveback_urb():10 - 25 µs - usb_gadget_giveback_request(): 2 - 6 µs Signed-off-by: Michal Sojka so...@merica.cz --- drivers/usb/Kconfig | 10 +++ drivers/usb/common/Makefile | 1 + drivers/usb/common/led.c | 57

[PATCH v5 0/3] LED triggers for USB host and device

2014-09-17 Thread Michal Sojka
: - Moved from drivers/leds/ to drivers/usb/. - Improved Kconfig help. - Linked with other modules rather than being standalone modules. Michal Sojka (3): usb: gadget: Refactor request completion usb: Rename usb-common.c usb: Add LED triggers for USB activity drivers/usb/Kconfig

[PATCH v5 1/3] usb: gadget: Refactor request completion

2014-09-17 Thread Michal Sojka
with a call to usb_gadget_giveback_request(). This was compile-tested with all ARM drivers enabled and runtime-tested for musb. Signed-off-by: Michal Sojka so...@merica.cz --- drivers/usb/chipidea/udc.c | 6 +++--- drivers/usb/dwc2/gadget.c | 6 +++--- drivers/usb/dwc3

Re: [PATCH v4 3/3] usb: Add LED triggers for USB activity

2014-08-29 Thread Michal Sojka
On Wed, Aug 27 2014, Greg Kroah-Hartman wrote: On Wed, Aug 27, 2014 at 10:58:00PM +0200, Michal Sojka wrote: With this patch, USB activity can be signaled by blinking a LED. There are two triggers, one for activity on USB host and one for USB gadget. Both trigger should work with all host

[PATCH v5 3/3] usb: Add LED triggers for USB activity

2014-08-29 Thread Michal Sojka
to the trigger): - __usb_hcd_giveback_urb():10 - 25 µs - usb_gadget_giveback_request(): 2 - 6 µs Signed-off-by: Michal Sojka so...@merica.cz --- drivers/usb/Kconfig | 10 +++ drivers/usb/common/Makefile | 1 + drivers/usb/common/led.c | 57

[PATCH v5 0/3] LED triggers for USB host and device

2014-08-29 Thread Michal Sojka
Kconfig help. - Linked with other modules rather than being standalone modules. Michal Sojka (3): usb: gadget: Refactor request completion usb: Rename usb-common.c usb: Add LED triggers for USB activity drivers/usb/Kconfig | 10 + drivers/usb/chipidea/udc.c

[PATCH v5 1/3] usb: gadget: Refactor request completion

2014-08-29 Thread Michal Sojka
with a call to usb_gadget_giveback_request(). This was compile-tested with all ARM drivers enabled and runtime-tested for musb. Signed-off-by: Michal Sojka so...@merica.cz --- drivers/usb/chipidea/udc.c | 6 +++--- drivers/usb/dwc2/gadget.c | 6 +++--- drivers/usb/dwc3

[PATCH v5 2/3] usb: Rename usb-common.c

2014-08-29 Thread Michal Sojka
-common.o comprises only common.o. Signed-off-by: Michal Sojka so...@merica.cz --- drivers/usb/common/Makefile | 4 +++- drivers/usb/common/{usb-common.c = common.c} | 0 2 files changed, 3 insertions(+), 1 deletion(-) rename drivers/usb/common/{usb-common.c = common.c} (100%) diff

[PATCH v3 1/2] usb: gadget: Refactor request completion

2014-08-27 Thread Michal Sojka
with a call to usb_gadget_giveback_request(). This was compile-tested with all ARM drivers enabled and runtime-tested for musb. Signed-off-by: Michal Sojka so...@merica.cz --- drivers/usb/chipidea/udc.c | 6 +++--- drivers/usb/dwc2/gadget.c | 6 +++--- drivers/usb/dwc3

[PATCH v3 0/2] LED triggers for USB host and device

2014-08-27 Thread Michal Sojka
Changes from v1: - Moved from drivers/leds/ to drivers/usb/ - Improved Kconfig help - Linked with other modules rather than being standalone modules Michal Sojka (2): usb: gadget: Refactor request completion usb: Add LED triggers for USB activity drivers/usb/Kconfig | 11

[PATCH v3 2/2] usb: Add LED triggers for USB activity

2014-08-27 Thread Michal Sojka
With this patch, USB activity can be signaled by blinking a LED. There are two triggers, one for activity on USB host and one for USB gadget. Both trigger should work with all host/device controllers. Tested only with musb. Signed-off-by: Michal Sojka so...@merica.cz --- drivers/usb/Kconfig

Re: [PATCH v3 1/2] usb: gadget: Refactor request completion

2014-08-27 Thread Michal Sojka
On Wed, Aug 27 2014, Michal Sojka wrote: All USB peripheral controller drivers called completion routines directly. This patch moves the completion call from drivers to usb_gadget_giveback_request(), in order to have a place where common functionality can be added. All places in drivers/usb

[PATCH v4 2/3] usb: Rename usb-common.c

2014-08-27 Thread Michal Sojka
-common.o comprises only common.o. Signed-off-by: Michal Sojka so...@merica.cz --- drivers/usb/common/Makefile | 4 +++- drivers/usb/common/{usb-common.c = common.c} | 0 2 files changed, 3 insertions(+), 1 deletion(-) rename drivers/usb/common/{usb-common.c = common.c} (100%) diff

[PATCH v4 3/3] usb: Add LED triggers for USB activity

2014-08-27 Thread Michal Sojka
With this patch, USB activity can be signaled by blinking a LED. There are two triggers, one for activity on USB host and one for USB gadget. Both trigger should work with all host/device controllers. Tested only with musb. Signed-off-by: Michal Sojka so...@merica.cz --- drivers/usb/Kconfig

[PATCH v4 1/3] usb: gadget: Refactor request completion

2014-08-27 Thread Michal Sojka
with a call to usb_gadget_giveback_request(). This was compile-tested with all ARM drivers enabled and runtime-tested for musb. Signed-off-by: Michal Sojka so...@merica.cz --- drivers/usb/chipidea/udc.c | 6 +++--- drivers/usb/dwc2/gadget.c | 6 +++--- drivers/usb/dwc3

[PATCH v4 0/3] LED triggers for USB host and device

2014-08-27 Thread Michal Sojka
in usb/common/ (Felipe Balbi). - UDC drivers refactored so that LED trigger works for all of them. Changes from v1: - Moved from drivers/leds/ to drivers/usb/. - Improved Kconfig help. - Linked with other modules rather than being standalone modules. Michal Sojka (2): usb: gadget: Refactor request

Re: [PATCH v2 2/3] usb: Add LED trigger for USB host activity

2014-08-23 Thread Michal Sojka
Hi Bryan, thanks for the review. See some comments below. On Sat, Aug 23 2014, Bryan Wu wrote: On Fri, Aug 22, 2014 at 5:08 PM, Michal Sojka so...@merica.cz wrote: With this patch, USB host activity can be signaled by blinking a LED. This should work with all host controllers. Tested only

[PATCH 1/2] leds: usb: Add LED trigger for USB gadget activity

2014-08-22 Thread Michal Sojka
-off-by: Michal Sojka so...@merica.cz --- drivers/leds/trigger/Kconfig | 8 ++ drivers/leds/trigger/Makefile| 1 + drivers/leds/trigger/ledtrig-usbgadget.c | 45 drivers/usb/musb/musb_gadget.c | 6 +++-- include/linux/leds.h

Re: [PATCH 1/2] leds: usb: Add LED trigger for USB gadget activity

2014-08-22 Thread Michal Sojka
On Fri, Aug 22 2014, Greg Kroah-Hartman wrote: On Fri, Aug 22, 2014 at 10:39:03AM -0700, Bryan Wu wrote: On Fri, Aug 22, 2014 at 4:53 AM, Michal Sojka so...@merica.cz wrote: With this patch, USB gadget activity can be signaled by blinking a LED. Since there is no generic code where to put

Re: [PATCH 1/2] leds: usb: Add LED trigger for USB gadget activity

2014-08-22 Thread Michal Sojka
Hi Felipe, On Fri, Aug 22 2014, Felipe Balbi wrote: Hi, On Fri, Aug 22, 2014 at 01:53:12PM +0200, Michal Sojka wrote: With this patch, USB gadget activity can be signaled by blinking a LED. Since there is no generic code where to put the trigger for all USB controllers, each USB

[PATCH v2 0/3] LED triggers for USB host and device

2014-08-22 Thread Michal Sojka
This adds LED triggers for USB host and device. Changes from v1: - Moved from drivers/leds/ to drivers/usb/ - Improved Kconfig help - Linked with other modules rather than being standalone modules Michal Sojka (3): usb: Add missing #include usb: Add LED trigger for USB host activity usb

[PATCH v2 2/3] usb: Add LED trigger for USB host activity

2014-08-22 Thread Michal Sojka
With this patch, USB host activity can be signaled by blinking a LED. This should work with all host controllers. Tested only with musb. Signed-off-by: Michal Sojka so...@merica.cz --- drivers/usb/core/Kconfig | 9 + drivers/usb/core/Makefile | 1 + drivers/usb/core/hcd.c| 2

[PATCH v2 1/3] usb: Add missing #include

2014-08-22 Thread Michal Sojka
linux/usb/hcd.h needs the definition of struct usb_bus. Signed-off-by: Michal Sojka so...@merica.cz --- include/linux/usb/hcd.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h index 485cd5e..b43f0fe 100644 --- a/include/linux/usb/hcd.h +++ b

[PATCH v2 3/3] usb: Add LED trigger for USB gadget activity

2014-08-22 Thread Michal Sojka
-off-by: Michal Sojka so...@merica.cz --- drivers/usb/gadget/Kconfig | 12 drivers/usb/gadget/udc/Makefile | 5 - drivers/usb/gadget/udc/led.c| 38 ++ drivers/usb/musb/musb_gadget.c | 5 +++-- include/linux/usb/gadget.h | 10

[PATCH] USB: serial: ftdi_sio: Add Infineon Triboard

2014-07-10 Thread Michal Sojka
/starter-kit-tc1798/channel.html?channel=db3a304333b8a7ca0133cfa3d73e4268 [2] http://www.infineon.com/dgdl/TriBoardManual-TC1798-V10.pdf?folderId=db3a304412b407950112b409ae7c0343fileId=db3a304333b8a7ca0133cfae99fe426a Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- drivers/usb/serial/ftdi_sio.c