Re: [PATCH] usb: phy: samsung-usb2: Toggle HSIC GPIO from device tree

2013-07-11 Thread Felipe Balbi
Hi, On Wed, Jul 10, 2013 at 10:42:27AM -0700, Julius Werner wrote: > Hi Felipe, > > This is intended to pull down a reset signal line, not to switch power > to the device. I could implement that with the regulator framework > too, but I think that would just be confusing and harder to understand

Re: [PATCH] usb: macro replacement Signed-off-by: Daniel Ciocirlan

2013-07-11 Thread Felipe Balbi
On Fri, Jul 12, 2013 at 09:48:08AM +0300, Daniel Ciocirlan wrote: > --- > drivers/usb/gadget/composite.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) you need to fix the patch by adding a commit log and moving your SoB to the commit log, rather than the subject. -- balbi signatu

[PATCH] usb: macro replacement Signed-off-by: Daniel Ciocirlan

2013-07-11 Thread Daniel Ciocirlan
--- drivers/usb/gadget/composite.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index 55f4df6..9d25912 100644 --- a/drivers/usb/gadget/composite.c +++ b/drivers/usb/gadget/composite.c @@ -1138,7 +1138,7 @@ st

Re: question on skel_read func of usb_skeleton.c‏

2013-07-11 Thread Greg KH
On Fri, Jul 12, 2013 at 05:51:04AM +, WangChen wrote: > I'm writing a driver for OSRFX2 learning board to test bulkloop > read/write. What's wrong with the existing usb-serial driver that can easily do this? > I think non-blocking write is good for such device due to > the FX2 chipset has dua

RE: question on skel_read func of usb_skeleton.c‏

2013-07-11 Thread WangChen
I'm writing a driver for OSRFX2 learning board to test bulkloop read/write. I think non-blocking write is good for such device due to the FX2 chipset has dual-buffer for bulk endpoints. I am just wondering if I also need to support blocking write IO due to I used to think from driver perspective

[PATCH] usb: renesas_usbhs: tidyup original usbhsx_for_each_xxx macro

2013-07-11 Thread Kuninori Morimoto
Current usbhsx_for_each_xxx macro will read out-of-array's memory after last loop operation. It was not good C language operation, and the binary which was compiled by (at least) gcc 4.8.1 is broken This patch tidyup these issues Reported-by: Yusuke Goda Reviewed-by: Takashi Yoshii Signed-off-by

Re: question on skel_read func of usb_skeleton.c‏

2013-07-11 Thread Greg KH
On Fri, Jul 12, 2013 at 04:49:54AM +, WangChen wrote: > Hi, Oliver, > Regarding skel_write, I see your current desgin only refuse its > execution  when> WRITES_IN_FLIGHT are on the fly, but this is not > blocking IO due to write() will not wait before callback returns, > right? Do you think it'

RE: question on skel_read func of usb_skeleton.c‏

2013-07-11 Thread WangChen
Hi, Oliver, Regarding skel_write, I see your current desgin only refuse its execution   when> WRITES_IN_FLIGHT are on the fly, but this is not blocking IO due to write() will not wait before callback returns, right? Do you think it's unnecessary to support blocking IO on write or any special reas

Re: Help adding trace events to xHCI

2013-07-11 Thread Kalle Valo
Sarah Sharp writes: > My initial list of specific trace points was something like: > > 1. xHCI host initialization and shutdown > > 2. xHCI memory allocation (dynamic ring resizing, structure alloc, etc) > > 3. A few individual xHCI host controller command tracepoints: >* status only for all

Re: Help adding trace events to xHCI

2013-07-11 Thread Kalle Valo
Johannes Berg writes: >> (Mentors and wireless folks, we're struggling a bit with adding trace >> events to the xHCI USB host controller driver. I'm trying to look at >> the ath6kl driver trace events as an example. We could use some help >> and/or advice.) > > Those were in turn modelled on ma

Re: [PATCH v12 00/13] Add tested id switch and vbus connect detect support for Chipidea

2013-07-11 Thread Marek Vasut
apply the patch > > below. The board stays in HOST mode all the time. If I configure it as > > peripheral, it works as peripheral. Note with [1], I was able to switch > > from Peripheral->Host , not the other way around. > > Thanks for your testing. But first, can you hav

Re: [PATCH v12 06/13] usb: chipidea: add otg_cap attribute for otg capable

2013-07-11 Thread Marek Vasut
Dear Peter Chen, > On Thu, Jul 11, 2013 at 05:36:10PM +0200, Marek Vasut wrote: > > Dear Peter Chen, > > > > > Since we need otgsc to know vbus's status at some chipidea > > > controllers even it is peripheral-only mode. Besides, some > > > SoCs (eg, AR9331 SoC) don't have otgsc register even > >

Re: Linux USB file storage gadget with new UDC

2013-07-11 Thread Victor Yeo
Hi, > However, the USB-2 spec says (section 9.2.6.4) that devices should be > able to carry out requests with no Data stage (such as Set-Config) > within 50 ms. Does your gadget really take longer than that to handle > the exception? > > To find out, collect a usbmon trace showing what happens wh

Re: [PATCH v12 00/13] Add tested id switch and vbus connect detect support for Chipidea

2013-07-11 Thread Peter Chen
On Thu, Jul 11, 2013 at 07:57:19PM +0200, Marek Vasut wrote: > Hi Peter, > > > This patchset adds tested otg id switch function and > > vbus connect and disconnect detection for chipidea driver. > > And fix kinds of bugs found at chipidea drivers after enabling > > id and vbus detection. > > > >

Re: [PATCH v12 06/13] usb: chipidea: add otg_cap attribute for otg capable

2013-07-11 Thread Peter Chen
On Thu, Jul 11, 2013 at 05:36:10PM +0200, Marek Vasut wrote: > Dear Peter Chen, > > > Since we need otgsc to know vbus's status at some chipidea > > controllers even it is peripheral-only mode. Besides, some > > SoCs (eg, AR9331 SoC) don't have otgsc register even > > the DCCPARAMS_DC and DCCPARAM

Re: linux-next: Tree for Jul 11 (usb/chipidea)

2013-07-11 Thread Peter Chen
On Fri, Jul 12, 2013 at 2:47 AM, Randy Dunlap wrote: > On 07/10/13 21:17, Stephen Rothwell wrote: >> Hi all, >> >> Changes since 20130710: >> > > > on x86_64: > > # CONFIG_USB_GADGET is not set > > ERROR: "usb_gadget_map_request" [drivers/usb/chipidea/ci_hdrc.ko] undefined! > ERROR: "usb_del_gadge

Re: [PATCH 03/50] USB: usblp: spin_lock in complete() cleanup

2013-07-11 Thread Ming Lei
On Thu, Jul 11, 2013 at 11:33 PM, Pete Zaitcev wrote: > On Thu, 11 Jul 2013 17:05:26 +0800 > Ming Lei wrote: > >> Complete() will be run with interrupt enabled, so change to >> spin_lock_irqsave(). >> >> Cc: Pete Zaitcev >> Signed-off-by: Ming Lei > > Signed-off-by: Pete Zaitcev Thank you. >

Re: [RFC] xhci: add traces for debug messages in xhci_address_device()

2013-07-11 Thread Xenia Ragiadakou
On 07/12/2013 03:54 AM, Greg KH wrote: Minor coding style nits below: On Fri, Jul 12, 2013 at 03:36:27AM +0300, Xenia Ragiadakou wrote: --- a/drivers/usb/host/xhci-dbg.c +++ b/drivers/usb/host/xhci-dbg.c @@ -21,6 +21,7 @@ */ #include "xhci.h" +#include "xhci-trace.h" #define XHCI_

[RFC v2] xhci: add traces for debug messages in xhci_address_device()

2013-07-11 Thread Xenia Ragiadakou
This patch declares an event class for trace events that trace messages with variadic arguments, called xhci_log_msg, and defines a trace event for tracing the debug messages in xhci_address_device() function, called xhci_dbg_address. In order to implement this type of trace events, a wrapper func

Re: [RFC] xhci: add traces for debug messages in xhci_address_device()

2013-07-11 Thread Greg KH
Minor coding style nits below: On Fri, Jul 12, 2013 at 03:36:27AM +0300, Xenia Ragiadakou wrote: > --- a/drivers/usb/host/xhci-dbg.c > +++ b/drivers/usb/host/xhci-dbg.c > @@ -21,6 +21,7 @@ > */ > > #include "xhci.h" > +#include "xhci-trace.h" > > #define XHCI_INIT_VALUE 0x0 > > @@ -580,3

Re: [PATCH] usb: phy: samsung-usb2: Toggle HSIC GPIO from device tree

2013-07-11 Thread Jingoo Han
On Friday, July 12, 2013 6:46 AM, Julius Werner wrote: > > Hi Jingoo, > > Yeah, I followed that discussion back then, but it seems to have > stalled a little (at least the HSIC patches haven't been picked up in > any kernel.org repo yet to my knowledge). > > The problem is that I think these app

[RFC] xhci: add traces for debug messages in xhci_address_device()

2013-07-11 Thread Xenia Ragiadakou
This patch declares an event class for trace events that trace messages with variadic arguments, called xhci_log_msg, and defines a trace event for tracing the debug messages in xhci_address_device() function, called xhci_dbg_address. In order to implement this type of trace events, a wrapper func

Re: [PATCH net-next] net/usb: add relative mii functions for r815x

2013-07-11 Thread David Miller
From: Hayes Wang Date: Mon, 8 Jul 2013 10:41:21 +0800 > Base on cdc_ether, add the mii functions for RTL8152 and RTL8153. > The RTL8152 and RTL8153 support ECM mode which use the driver of > cdc_ether. Add the mii functions. Then, the basic PHY access is > possible. > > Signed-off-by: Hayes Wang

Re: [PATCH] usb: phy: samsung-usb2: Toggle HSIC GPIO from device tree

2013-07-11 Thread Julius Werner
Hi Jingoo, Yeah, I followed that discussion back then, but it seems to have stalled a little (at least the HSIC patches haven't been picked up in any kernel.org repo yet to my knowledge). The problem is that I think these approaches cannot work reliably. I agree that it would be nice to control t

Re: Video corruption varies by system load

2013-07-11 Thread Devin Heitmueller
On Thu, Jul 11, 2013 at 5:02 PM, Alan Stern wrote: > You could try doing the opposite test: Leave the driver otherwise > intact, but have it not deliver the video buffers to the userspace > client. Interesting. Only one error in 72 frames of video. Suggests the problem is somewhere that is anyw

Re: Hardware bug in Intel USB-2 hub?

2013-07-11 Thread Alan Stern
On Thu, 11 Jul 2013, Sarah Sharp wrote: > > I don't know. The real cause of the problem is that the USB-2 spec > > never took this race into account. (AFAIK neither did the USB-3 spec; > > didn't you face this problem at one point?) It contains detailed state > > diagrams and explanations for

Re: Video corruption varies by system load

2013-07-11 Thread Alan Stern
On Thu, 11 Jul 2013, Devin Heitmueller wrote: > Funny - I had the same thought a few hours ago about moving the actual > URB processing to a tasklet. However I don't think it will help. > Here's why: > > Expanding on the test where I cut out everything in the URB handler > except for the submit,

Re: [PATCH] USB: global suspend and remote wakeup don't mix

2013-07-11 Thread Alan Stern
On Thu, 11 Jul 2013, Toralf Förster wrote: > On 07/11/2013 08:58 PM, Alan Stern wrote: > > This should be applied to the 3.10 stable kernel. > > > > Signed-off-by: Alan Stern > > Reported-and-tested-by: Toralf Förster > > CC: > > tested this patch against 3.10 - works fine too - thx. > > (th

Re: Audio I/O parameters

2013-07-11 Thread Clemens Ladisch
James Stone wrote: > On Mon, Jul 8, 2013 at 2:12 PM, James Stone wrote: >>> ALSA: poll time out, polled for 2176094 usecs >>> JackAudioDriver::ProcessAsync: read error, stopping... >>> >>> This is a definite reduction in performance compared to earlier kernels. In theory, "poll time out" indicate

Re: Help adding trace events to xHCI

2013-07-11 Thread Steven Rostedt
On Thu, 2013-07-11 at 19:08 +0200, Johannes Berg wrote: > > > lets say that we want the tracepoint function to have the prototype: > > > > > > void trace_cmd_address_device(const char *fmt, ...). > > I'm not sure this is possible. I think we (wireless) do this with > > void trace_cmd_address_de

Re: Video corruption varies by system load

2013-07-11 Thread Devin Heitmueller
On Thu, Jul 11, 2013 at 3:02 PM, Johannes Stezenbach wrote: > I'm not familiar with musb but a quick glance at the code > shows it uses software packet scheduling. If you do too > much processing in the URB completion callback (which > is called from irq context), then the next bus transaction >

Re: [PATCH] USB: global suspend and remote wakeup don't mix

2013-07-11 Thread Toralf Förster
On 07/11/2013 08:58 PM, Alan Stern wrote: > This should be applied to the 3.10 stable kernel. > > Signed-off-by: Alan Stern > Reported-and-tested-by: Toralf Förster > CC: tested this patch against 3.10 - works fine too - thx. (this patch is a slightly modified variant of what you sent a week

Re: Hardware bug in Intel USB-2 hub?

2013-07-11 Thread Sarah Sharp
On Wed, Jul 03, 2013 at 10:07:13AM -0400, Alan Stern wrote: > On Tue, 2 Jul 2013, Sarah Sharp wrote: > > > > On the other hand, I know from personal experience that some companies > > > are worried about this race and insist on avoiding it. Should I add a > > > Kconfig option to force global susp

Re: Video corruption varies by system load

2013-07-11 Thread Johannes Stezenbach
On Thu, Jul 11, 2013 at 02:12:08PM -0400, Alan Stern wrote: > On Thu, 11 Jul 2013, Devin Heitmueller wrote: > > > Another strange thing: If I change the completion handler on the 8147 > > to comment out the actual processing of the URB (such that all the > > completion handler does is resubmit th

Re: Help adding trace events to xHCI

2013-07-11 Thread Sarah Sharp
On Thu, Jul 11, 2013 at 07:08:53PM +0200, Johannes Berg wrote: > [also adding Steven, he's the tracing expert after all :-)] > > Hi Xenia, Sarah, all, > > > (Mentors and wireless folks, we're struggling a bit with adding trace > > events to the xHCI USB host controller driver. I'm trying to look

[PATCH] USB: global suspend and remote wakeup don't mix

2013-07-11 Thread Alan Stern
The hub driver was recently changed to use "global" suspend for system suspend transitions on non-SuperSpeed buses. This means that we don't suspend devices individually by setting the suspend feature on the upstream hub port; instead devices all go into suspend automatically when the root hub sto

[PATCH] USB: remove redundant "#if"

2013-07-11 Thread Alan Stern
This patch removes a redundant nested "#ifdef CONFIG_PM" from the hub driver. It also adds a label to the "#endif" line corresponding to the outer "#ifdef CONFIG_PM". Signed-off-by: Alan Stern --- [as1691] drivers/usb/core/hub.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-)

Re: Video corruption varies by system load

2013-07-11 Thread Alan Stern
On Thu, 11 Jul 2013, Devin Heitmueller wrote: > It looks like I may have created some confusion by attempting to > correlate the usbmon trace against the Beagle data. I've got two > environments I'm debugging on: an x86 box with the stock Intel EHCI > HCD, and a Davinci TI8147 ARM system which h

Re: [PATCH v12 00/13] Add tested id switch and vbus connect detect support for Chipidea

2013-07-11 Thread Marek Vasut
Hi Peter, > This patchset adds tested otg id switch function and > vbus connect and disconnect detection for chipidea driver. > And fix kinds of bugs found at chipidea drivers after enabling > id and vbus detection. > > This patch is fully tested at imx6 sabresd platform. > My chipidea repo: http

Re: Video corruption varies by system load

2013-07-11 Thread Devin Heitmueller
On Thu, Jul 11, 2013 at 11:28 AM, Alan Stern wrote: > On Thu, 11 Jul 2013, Johannes Stezenbach wrote: > >> I took a peek at the usbmon log, and there is one thing I don't get. >> >> $ grep "C Zi:1:005:2" em28xx_usbmon.log | less -S >> >> There are several cases where the isoc descriptor actual l

Re: [RFC] ux500 dma & short transfers on MUSB

2013-07-11 Thread Sebastian Andrzej Siewior
On 07/11/2013 06:58 PM, Greg KH wrote: >> following scenario: >> you attach an UART-TO-USB adapter to your musb port running ux500-dma >> code. The USB UARt driver queues 1x RX URB with the size of 256 bytes >> (example) and the max packet size is 64. >> >> The other side sends only one byte becaus

Re: Video corruption varies by system load

2013-07-11 Thread Devin Heitmueller
On Thu, Jul 11, 2013 at 4:24 AM, Johannes Stezenbach wrote: > There are several cases where the isoc descriptor actual length is > short (< 2892, e.g. 0, 552 or 1928), yet the actual_length for the > whole URB at the end of the line is still 64*2892 -- is that like it should > be? Yup, as Alan s

Re: Help adding trace events to xHCI

2013-07-11 Thread Johannes Berg
[also adding Steven, he's the tracing expert after all :-)] Hi Xenia, Sarah, all, > (Mentors and wireless folks, we're struggling a bit with adding trace > events to the xHCI USB host controller driver. I'm trying to look at > the ath6kl driver trace events as an example. We could use some help

Re: Help adding trace events to xHCI

2013-07-11 Thread Arend van Spriel
On 07/11/2013 06:20 PM, Sarah Sharp wrote: On Mon, Jul 08, 2013 at 09:17:59PM +0300, Xenia Ragiadakou wrote: But when there are other function calls before the callback call, I don't no why but i cannot track anymore the position of the args following the fmt argumenent in the stack with the p

Re: inconsistent {IN-HARDIRQ-W} -> {HARDIRQ-ON-W} usage with hcd_urb_list_lock

2013-07-11 Thread Alan Stern
On Thu, 11 Jul 2013, Sarah Sharp wrote: > On Sat, Jul 06, 2013 at 04:48:47PM -0400, Alan Stern wrote: > > On Sat, 6 Jul 2013, Maarten Lankhorst wrote: > > > > > I didn't even know I still had lockdep on. > > > The following lockdep splat happened when I plugged in a usb bluetooth > > > dongle, u

Re: [RFC] ux500 dma & short transfers on MUSB

2013-07-11 Thread Greg KH
On Thu, Jul 11, 2013 at 11:08:59AM +0200, Sebastian Andrzej Siewior wrote: > Hello, > > following scenario: > you attach an UART-TO-USB adapter to your musb port running ux500-dma > code. The USB UARt driver queues 1x RX URB with the size of 256 bytes > (example) and the max packet size is 64. >

Re: inconsistent {IN-HARDIRQ-W} -> {HARDIRQ-ON-W} usage with hcd_urb_list_lock

2013-07-11 Thread Sarah Sharp
On Sat, Jul 06, 2013 at 04:48:47PM -0400, Alan Stern wrote: > On Sat, 6 Jul 2013, Maarten Lankhorst wrote: > > > I didn't even know I still had lockdep on. > > The following lockdep splat happened when I plugged in a usb bluetooth > > dongle, using > > the pre-rc1 3.11 kernel at HEAD b2c311075db

Re: [PATCH] staging: dwc2: fix value used in dwc2_set_all_params

2013-07-11 Thread Matthijs Kooijman
On Thu, Jul 11, 2013 at 02:24:10PM +0200, Julien Delacou wrote: > From: Julien Delacou > > This fix uses 'value' parameter as it should be instead > of hardcoded -1. Woops! > Signed-off-by: Julien Delacou > Acked-by: Paul Zimmerman Reviewed-by: Matthijs Kooijman > --- > drivers/staging/dwc2

Help adding trace events to xHCI

2013-07-11 Thread Sarah Sharp
On Mon, Jul 08, 2013 at 09:17:59PM +0300, Xenia Ragiadakou wrote: > Hi Sarah, Hi Xenia, Comments below. (Mentors and wireless folks, we're struggling a bit with adding trace events to the xHCI USB host controller driver. I'm trying to look at the ath6kl driver trace events as an example. We co

Re: Video corruption varies by system load

2013-07-11 Thread Johannes Stezenbach
On Thu, Jul 11, 2013 at 11:28:38AM -0400, Alan Stern wrote: > On Thu, 11 Jul 2013, Johannes Stezenbach wrote: > > > Can you confirm that in the error case there is no IN token at all? > > That's what the analyzer log showed. Of course, it's possible that the > analyzer itself was faulty, but I d

Re: [PATCH 6/6] [RFC] usb: gadget: USB_GADGET should depend on HAS_DMA

2013-07-11 Thread Alan Stern
On Thu, 11 Jul 2013, Geert Uytterhoeven wrote: > If NO_DMA=y: > > drivers/built-in.o: In function `dma_set_coherent_mask': > include/linux/dma-mapping.h:93: undefined reference to `dma_supported' > include/linux/dma-mapping.h:93: undefined reference to `dma_supported' > drivers/built-in.o: In fun

Re: [PATCH 03/50] USB: usblp: spin_lock in complete() cleanup

2013-07-11 Thread Pete Zaitcev
On Thu, 11 Jul 2013 17:05:26 +0800 Ming Lei wrote: > Complete() will be run with interrupt enabled, so change to > spin_lock_irqsave(). > > Cc: Pete Zaitcev > Signed-off-by: Ming Lei Signed-off-by: Pete Zaitcev Good luck with that, Ming. I think the spin_lock_irqsave thing should've been do

Re: [PATCH v12 06/13] usb: chipidea: add otg_cap attribute for otg capable

2013-07-11 Thread Marek Vasut
Dear Peter Chen, > Since we need otgsc to know vbus's status at some chipidea > controllers even it is peripheral-only mode. Besides, some > SoCs (eg, AR9331 SoC) don't have otgsc register even > the DCCPARAMS_DC and DCCPARAMS_HC are both 1 at CAP_DCCPARAMS. > We inroduce otg_cap attribute to indi

Re: Video corruption varies by system load

2013-07-11 Thread Alan Stern
On Thu, 11 Jul 2013, Johannes Stezenbach wrote: > I took a peek at the usbmon log, and there is one thing I don't get. > > $ grep "C Zi:1:005:2" em28xx_usbmon.log | less -S > > There are several cases where the isoc descriptor actual length is > short (< 2892, e.g. 0, 552 or 1928), yet the act

Re: [PATCH 6/6] USB: ehci-omap: Implement suspend/resume

2013-07-11 Thread Alan Stern
On Thu, 11 Jul 2013, Roger Quadros wrote: > > The other two problems are both related to the interaction between > > system PM and runtime PM. Suppose the controller is already runtime > > suspended when the system goes to sleep. Because it is runtime > > suspended, it is enabled for wakeup. Bu

Re: [PATCH] usb: USB host support should depend on HAS_DMA

2013-07-11 Thread Alan Stern
On Thu, 11 Jul 2013, Geert Uytterhoeven wrote: > On Thu, Jul 11, 2013 at 3:01 AM, Alan Stern wrote: > > On Thu, 11 Jul 2013, Arnd Bergmann wrote: > > > >> On Wednesday 10 July 2013, Alan Stern wrote: > >> > This isn't right. There are USB host controllers that use PIO, not > >> > DMA. The HAS_D

Re: Linux USB file storage gadget with new UDC

2013-07-11 Thread Alan Stern
On Thu, 11 Jul 2013, Victor Yeo wrote: > Thanks. The USBCV test has tight timing requirement. Once Set-Config > request is sent out, USBCV sends out Get-Config request to get the > config value immediately. At that time, gadget driver has not yet done > the handle_exception. So Get-Config request

Re: Audio I/O parameters

2013-07-11 Thread Alan Stern
On Thu, 11 Jul 2013, James Stone wrote: > Hi Clemens, > > On Mon, Jul 8, 2013 at 2:12 PM, James Stone wrote: > > >> Acquire audio card Audio0 > >> creating alsa driver ... hw:USB,0|-|64|2|44100|0|0|nomon|swmeter|-|16bit > >> Using ALSA driver USB-Audio running on card 0 - Focusrite Scarlett 2i4

Re: [PATCH 45/50] sound: usb: usx2y: spin_lock in complete() cleanup

2013-07-11 Thread Ming Lei
On Thu, Jul 11, 2013 at 10:34 PM, Takashi Iwai wrote: > At Thu, 11 Jul 2013 22:13:35 +0800, > Ming Lei wrote: >> >> On Thu, Jul 11, 2013 at 9:50 PM, Takashi Iwai wrote: >> > At Thu, 11 Jul 2013 17:08:30 +0400, >> > Sergei Shtylyov wrote: >> >> >> >> On 11-07-2013 13:06, Ming Lei wrote: >> >> >> >

Re: [PATCH 45/50] sound: usb: usx2y: spin_lock in complete() cleanup

2013-07-11 Thread Takashi Iwai
At Thu, 11 Jul 2013 22:13:35 +0800, Ming Lei wrote: > > On Thu, Jul 11, 2013 at 9:50 PM, Takashi Iwai wrote: > > At Thu, 11 Jul 2013 17:08:30 +0400, > > Sergei Shtylyov wrote: > >> > >> On 11-07-2013 13:06, Ming Lei wrote: > >> > >> > Complete() will be run with interrupt enabled, so change to >

Re: [PATCH 45/50] sound: usb: usx2y: spin_lock in complete() cleanup

2013-07-11 Thread Ming Lei
On Thu, Jul 11, 2013 at 9:50 PM, Takashi Iwai wrote: > At Thu, 11 Jul 2013 17:08:30 +0400, > Sergei Shtylyov wrote: >> >> On 11-07-2013 13:06, Ming Lei wrote: >> >> > Complete() will be run with interrupt enabled, so change to >> > spin_lock_irqsave(). >> >> Changelog doesn't match the patch.

Re: [PATCH 44/50] sound: usb: caiaq: spin_lock in complete() cleanup

2013-07-11 Thread Daniel Mack
On 11.07.2013 11:06, Ming Lei wrote: > Complete() will be run with interrupt enabled, so change to > spin_lock_irqsave(). > > Cc: Daniel Mack > Cc: Jaroslav Kysela > Cc: Takashi Iwai > Cc: alsa-de...@alsa-project.org > Signed-off-by: Ming Lei Sound right to me, thanks. Acked-by: Daniel Mack

Re: [PATCH 17/50] USB: serial: sierra: spin_lock in complete() cleanup

2013-07-11 Thread Ming Lei
On Thu, Jul 11, 2013 at 9:02 PM, Sergei Shtylyov wrote: > Hello. > > > On 11-07-2013 13:05, Ming Lei wrote: > >> Complete() will be run with interrupt enabled, so change to >> spin_lock_irqsave(). > > >> Cc: Johan Hovold >> Signed-off-by: Ming Lei >> --- >> drivers/usb/serial/sierra.c |9 +

[PATCH 4/6] usb: gadget: USB_FOTG210_UDC should depend on HAS_DMA

2013-07-11 Thread Geert Uytterhoeven
If NO_DMA=y: drivers/built-in.o: In function `fotg210_start_dma': drivers/usb/gadget/fotg210-udc.c:354: undefined reference to `dma_map_single' drivers/usb/gadget/fotg210-udc.c:357: undefined reference to `dma_mapping_error' drivers/usb/gadget/fotg210-udc.c:362: undefined reference to `dma_sync_s

[PATCH 2/6] usb: chipidea: USB_CHIPIDEA_UDC should depend on HAS_DMA

2013-07-11 Thread Geert Uytterhoeven
If NO_DMA=y: drivers/built-in.o: In function `dma_set_coherent_mask': include/linux/dma-mapping.h:93: undefined reference to `dma_supported' drivers/built-in.o: In function `destroy_eps': drivers/usb/chipidea/udc.c:1598: undefined reference to `dma_pool_free' drivers/built-in.o: In function `free_

[PATCH 1/6] usb: dwc3: USB_DWC3 should depend on HAS_DMA

2013-07-11 Thread Geert Uytterhoeven
If NO_DMA=y: drivers/built-in.o: In function `dwc3_free_one_event_buffer': drivers/usb/dwc3/core.c:132: undefined reference to `dma_free_coherent' drivers/built-in.o: In function `dwc3_alloc_one_event_buffer': drivers/usb/dwc3/core.c:154: undefined reference to `dma_alloc_coherent' drivers/built-i

[PATCH 6/6] [RFC] usb: gadget: USB_GADGET should depend on HAS_DMA

2013-07-11 Thread Geert Uytterhoeven
If NO_DMA=y: drivers/built-in.o: In function `dma_set_coherent_mask': include/linux/dma-mapping.h:93: undefined reference to `dma_supported' include/linux/dma-mapping.h:93: undefined reference to `dma_supported' drivers/built-in.o: In function `usb_gadget_unmap_request': drivers/usb/gadget/udc-cor

[PATCH 5/6] usb: gadget: USB_MV_U3D should depend on HAS_DMA

2013-07-11 Thread Geert Uytterhoeven
If NO_DMA=y: drivers/built-in.o: In function `mv_u3d_done': drivers/usb/gadget/mv_u3d_core.c:206: undefined reference to `dma_pool_free' drivers/usb/gadget/mv_u3d_core.c:209: undefined reference to `dma_unmap_single' drivers/built-in.o: In function `mv_u3d_build_trb_one': drivers/usb/gadget/mv_u3d

[PATCH 3/6] usb: gadget: USB_MV_UDC should depend on HAS_DMA

2013-07-11 Thread Geert Uytterhoeven
If NO_DMA=y: drivers/built-in.o: In function `done': drivers/usb/gadget/mv_udc_core.c:239: undefined reference to `dma_pool_free' drivers/built-in.o: In function `build_dtd': drivers/usb/gadget/mv_udc_core.c:371: undefined reference to `dma_pool_alloc' drivers/built-in.o: In function `udc_prime_st

Re: [PATCH 45/50] sound: usb: usx2y: spin_lock in complete() cleanup

2013-07-11 Thread Takashi Iwai
At Thu, 11 Jul 2013 17:08:30 +0400, Sergei Shtylyov wrote: > > On 11-07-2013 13:06, Ming Lei wrote: > > > Complete() will be run with interrupt enabled, so change to > > spin_lock_irqsave(). > > Changelog doesn't match the patch. Yep, but moreover... > > Cc: Jaroslav Kysela > > Cc: Takash

Re: [PATCH 08/50] USB: legousbtower: spin_lock in complete() cleanup

2013-07-11 Thread Sergei Shtylyov
Hello. On 11-07-2013 16:36, Oliver Neukum wrote: I don't think this patch passes checkpatch.pl. This series is a mechanical replacement in dozens of drivers. That mechanicity shows too much in some patches. We cannot demand nice formatting. If you want to do something productive

Re: [PATCH 42/50] media: usb: tlg2300: spin_lock in complete() cleanup

2013-07-11 Thread Sergei Shtylyov
On 11-07-2013 13:06, Ming Lei wrote: Subject doesn't match the patch. Complete() will be run with interrupt enabled, so disable local interrupt before holding a global lock which is held without irqsave. Cc: Mauro Carvalho Chehab Cc: linux-me...@vger.kernel.org Signed-off-by: Ming Lei --

Re: [PATCH 44/50] sound: usb: caiaq: spin_lock in complete() cleanup

2013-07-11 Thread Sergei Shtylyov
On 11-07-2013 13:06, Ming Lei wrote: Complete() will be run with interrupt enabled, so change to spin_lock_irqsave(). Cc: Daniel Mack Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: alsa-de...@alsa-project.org Signed-off-by: Ming Lei --- sound/usb/caiaq/audio.c |5 +++-- 1 file changed, 3

Re: [PATCH 46/50] Sound: usb: ua101: spin_lock in complete() cleanup

2013-07-11 Thread Sergei Shtylyov
On 11-07-2013 13:06, Ming Lei wrote: Here the subject doesn't match the patch. Complete() will be run with interrupt enabled, so disable local interrupt before holding a global lock which is held without irqsave. Cc: Clemens Ladisch Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: alsa-de...@a

Re: [PATCH 45/50] sound: usb: usx2y: spin_lock in complete() cleanup

2013-07-11 Thread Sergei Shtylyov
On 11-07-2013 13:06, Ming Lei wrote: Complete() will be run with interrupt enabled, so change to spin_lock_irqsave(). Changelog doesn't match the patch. Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: alsa-de...@alsa-project.org Signed-off-by: Ming Lei --- sound/usb/usx2y/usbusx2yaudio.c |

Re: [PATCH 17/50] USB: serial: sierra: spin_lock in complete() cleanup

2013-07-11 Thread Sergei Shtylyov
Hello. On 11-07-2013 13:05, Ming Lei wrote: Complete() will be run with interrupt enabled, so change to spin_lock_irqsave(). Cc: Johan Hovold Signed-off-by: Ming Lei --- drivers/usb/serial/sierra.c |9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers

Re: [PATCH 36/50] media: usb: em28xx: spin_lock in complete() cleanup

2013-07-11 Thread Devin Heitmueller
On Thu, Jul 11, 2013 at 5:05 AM, Ming Lei wrote: > Complete() will be run with interrupt enabled, so change to > spin_lock_irqsave(). > > Cc: Mauro Carvalho Chehab > Cc: linux-me...@vger.kernel.org > Signed-off-by: Ming Lei > --- > drivers/media/usb/em28xx/em28xx-core.c |5 +++-- > 1 file c

Re: [PATCH 08/50] USB: legousbtower: spin_lock in complete() cleanup

2013-07-11 Thread Ming Lei
On Thu, Jul 11, 2013 at 8:18 PM, Sergei Shtylyov wrote: > Hello. > > > On 11-07-2013 13:05, Ming Lei wrote: > >> Complete() will be run with interrupt enabled, so change to >> spin_lock_irqsave(). > > >> Cc: Juergen Stuber >> Signed-off-by: Ming Lei >> --- >> drivers/usb/misc/legousbtower.c |

Re: [PATCH 08/50] USB: legousbtower: spin_lock in complete() cleanup

2013-07-11 Thread Oliver Neukum
On Thursday 11 July 2013 16:18:17 Sergei Shtylyov wrote: > I don't think this patch passes checkpatch.pl. This series is a mechanical replacement in dozens of drivers. We cannot demand nice formatting. If you want to do something productive, check the locking in the driver. Regards

[PATCH] staging: dwc2: fix value used in dwc2_set_all_params

2013-07-11 Thread Julien Delacou
From: Julien Delacou This fix uses 'value' parameter as it should be instead of hardcoded -1. Signed-off-by: Julien Delacou Acked-by: Paul Zimmerman --- drivers/staging/dwc2/hcd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dwc2/hcd.c b/drivers/stagi

Re: [PATCH 08/50] USB: legousbtower: spin_lock in complete() cleanup

2013-07-11 Thread Sergei Shtylyov
Hello. On 11-07-2013 13:05, Ming Lei wrote: Complete() will be run with interrupt enabled, so change to spin_lock_irqsave(). Cc: Juergen Stuber Signed-off-by: Ming Lei --- drivers/usb/misc/legousbtower.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drive

Re: [PATCH 05/50] USB: misc: uss720: spin_lock in complete() cleanup

2013-07-11 Thread Sergei Shtylyov
Hello. On 11-07-2013 13:05, Ming Lei wrote: Complete() will be run with interrupt enabled, so change to spin_lock_irqsave(). Signed-off-by: Ming Lei --- drivers/usb/misc/uss720.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/usb/misc/uss720.c b/dri

Announcing libusbx-1.0.16 final

2013-07-11 Thread Hans de Goede
Hi All, I'm very happy to announce the official libusbx-1.0.16 release! Highlights of changes since 1.0.15: --- * As Nathan Hjelm already announced in his "libusb and libusbx merging" mail, Nathan has taken over libusb maintenance and this release is a combined ef

Re: [PATCH v12 10/13] usb: chipidea: add wait vbus lower than OTGSC_BSV before role starts

2013-07-11 Thread Marc Kleine-Budde
On 07/11/2013 11:25 AM, Peter Chen wrote: > On Thu, Jul 11, 2013 at 09:24:56AM +0200, Marc Kleine-Budde wrote: >> On 07/11/2013 08:27 AM, Peter Chen wrote: >>> When the gadget role starts, we need to make sure the vbus is lower >>> than OTGSC_BSV, or there will be an vbus interrupt since we use >>>

[PATCH 03/50] USB: usblp: spin_lock in complete() cleanup

2013-07-11 Thread Ming Lei
Complete() will be run with interrupt enabled, so change to spin_lock_irqsave(). Cc: Pete Zaitcev Signed-off-by: Ming Lei --- drivers/usb/class/usblp.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/usb/class/usblp.c b/drivers/usb/class/usblp.c index d4

Re: [PATCH v12 10/13] usb: chipidea: add wait vbus lower than OTGSC_BSV before role starts

2013-07-11 Thread Peter Chen
On Thu, Jul 11, 2013 at 09:24:56AM +0200, Marc Kleine-Budde wrote: > On 07/11/2013 08:27 AM, Peter Chen wrote: > > When the gadget role starts, we need to make sure the vbus is lower > > than OTGSC_BSV, or there will be an vbus interrupt since we use > > B_SESSION_VALID as vbus interrupt to indicat

[PATCH 02/50] USB: cdc-wdm: spin_lock in complete() cleanup

2013-07-11 Thread Ming Lei
Complete() will be run with interrupt enabled, so change to spin_lock_irqsave(). Cc: Oliver Neukum Signed-off-by: Ming Lei --- drivers/usb/class/cdc-wdm.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-

[PATCH 32/50] wireless: ath: carl9170: spin_lock in complete() cleanup

2013-07-11 Thread Ming Lei
Complete() will be run with interrupt enabled, so change to spin_lock_irqsave(). Cc: Christian Lamparter Cc: "John W. Linville" Cc: linux-wirel...@vger.kernel.org Cc: net...@vger.kernel.org Signed-off-by: Ming Lei --- drivers/net/wireless/ath/carl9170/rx.c |5 +++-- 1 file changed, 3 inser

[PATCH 06/50] USB: iowarrior: spin_lock in complete() cleanup

2013-07-11 Thread Ming Lei
Complete() will be run with interrupt enabled, so change to spin_lock_irqsave(). Signed-off-by: Ming Lei --- drivers/usb/misc/iowarrior.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/misc/iowarrior.c b/drivers/usb/misc/iowarrior.c index d36f34e..010ed6d

[PATCH 39/50] media: usb: tm6000: spin_lock in complete() cleanup

2013-07-11 Thread Ming Lei
Complete() will be run with interrupt enabled, so change to spin_lock_irqsave(). Cc: Mauro Carvalho Chehab Cc: linux-me...@vger.kernel.org Signed-off-by: Ming Lei --- drivers/media/usb/tm6000/tm6000-video.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/medi

[PATCH 49/50] staging: ced1401: spin_lock in complete() cleanup

2013-07-11 Thread Ming Lei
Complete() will be run with interrupt enabled, so change to spin_lock_irqsave(). Cc: de...@driverdev.osuosl.org Signed-off-by: Ming Lei --- drivers/staging/ced1401/usb1401.c | 35 +++ 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/drivers/stagin

[PATCH 43/50] sound: usb: midi: spin_lock in complete() cleanup

2013-07-11 Thread Ming Lei
Complete() will be run with interrupt enabled, so change to spin_lock_irqsave(). Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Clemens Ladisch Cc: alsa-de...@alsa-project.org Signed-off-by: Ming Lei --- sound/usb/midi.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/so

[RFC] ux500 dma & short transfers on MUSB

2013-07-11 Thread Sebastian Andrzej Siewior
Hello, following scenario: you attach an UART-TO-USB adapter to your musb port running ux500-dma code. The USB UARt driver queues 1x RX URB with the size of 256 bytes (example) and the max packet size is 64. The other side sends only one byte because it is mean. Now, the way I understand it is, y

[PATCH 29/50] USBNET: rtl8150: spin_lock in complete() cleanup

2013-07-11 Thread Ming Lei
Complete() will be run with interrupt enabled, so change to spin_lock_irqsave(). Cc: net...@vger.kernel.org Signed-off-by: Ming Lei --- drivers/net/usb/rtl8150.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/usb/rtl8150.c b/drivers/net/usb/rtl8150.c inde

[PATCH 36/50] media: usb: em28xx: spin_lock in complete() cleanup

2013-07-11 Thread Ming Lei
Complete() will be run with interrupt enabled, so change to spin_lock_irqsave(). Cc: Mauro Carvalho Chehab Cc: linux-me...@vger.kernel.org Signed-off-by: Ming Lei --- drivers/media/usb/em28xx/em28xx-core.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media

[PATCH 31/50] wireless: zd1211rw: spin_lock in complete() cleanup

2013-07-11 Thread Ming Lei
Complete() will be run with interrupt enabled, so change to spin_lock_irqsave(). Cc: Daniel Drake Cc: Ulrich Kunitz Cc: "John W. Linville" Cc: linux-wirel...@vger.kernel.org Cc: net...@vger.kernel.org Signed-off-by: Ming Lei --- drivers/net/wireless/zd1211rw/zd_usb.c | 21 --

[PATCH 37/50] media: usb: sn9x102: spin_lock in complete() cleanup

2013-07-11 Thread Ming Lei
Complete() will be run with interrupt enabled, so change to spin_lock_irqsave(). Cc: Mauro Carvalho Chehab Cc: linux-me...@vger.kernel.org Signed-off-by: Ming Lei --- drivers/media/usb/sn9c102/sn9c102_core.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/m

[PATCH 47/50] staging: btmtk_usb: spin_lock in complete() cleanup

2013-07-11 Thread Ming Lei
Complete() will be run with interrupt enabled, so change to spin_lock_irqsave(). Cc: de...@driverdev.osuosl.org Signed-off-by: Ming Lei --- drivers/staging/btmtk_usb/btmtk_usb.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/btmtk_usb/btmtk_usb.c b/d

[PATCH 22/50] BT: btusb: spin_lock in complete() cleanup

2013-07-11 Thread Ming Lei
Complete() will be run with interrupt enabled, so change to spin_lock_irqsave(). Cc: Marcel Holtmann Cc: Gustavo Padovan Cc: Johan Hedberg Cc: linux-blueto...@vger.kernel.org Signed-off-by: Ming Lei --- drivers/bluetooth/btusb.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) d

[PATCH 23/50] BT: bfusb: read_lock in complete() cleanup

2013-07-11 Thread Ming Lei
Complete() will be run with interrupt enabled, so change to read_lock_irqsave(). Cc: Marcel Holtmann Cc: Gustavo Padovan Cc: Johan Hedberg Cc: linux-blueto...@vger.kernel.org Signed-off-by: Ming Lei --- drivers/bluetooth/bfusb.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletion

  1   2   >