Re: [PATCH] usb: dwc3: gadget: Avoid race between dwc3 interrupt handler and irq thread handler

2016-12-26 Thread Lu Baolu
Hi, On 12/26/2016 04:01 PM, Baolin Wang wrote: > On some platfroms(like x86 platform), when one core is running the USB gadget > irq thread handler by dwc3_thread_interrupt(), meanwhile another core also can > respond other interrupts from dwc3 controller and modify the event buffer by >

RE: net2280 Driver Bug

2016-12-26 Thread Alan Stern
On Mon, 26 Dec 2016, Raz Manor wrote: > Hello all, > Linus is right, I should remove all debug prints and keep > whit-spacing conventions. > > As for the real part of the patch, it is correct that it is only the > tmp reuse problem, and I couldn't agree more that it is a bad idea to > reuse a

Re: [PATCH 2/2] usb: host: xhci: Handle the right timeout command

2016-12-26 Thread Baolin Wang
Hi, On 21 December 2016 at 21:00, Mathias Nyman wrote: > On 21.12.2016 04:22, Baolin Wang wrote: >> >> Hi Mathias, >> >> On 20 December 2016 at 23:13, Mathias Nyman >> wrote: >>> >>> On 20.12.2016 09:30, Baolin Wang wrote: >>> ...

Re: [PATCH] usb: dwc3: gadget: Avoid race between dwc3 interrupt handler and irq thread handler

2016-12-26 Thread Baolin Wang
Hi, On 27 December 2016 at 10:39, Lu Baolu wrote: > Hi, > > On 12/26/2016 04:01 PM, Baolin Wang wrote: >> On some platfroms(like x86 platform), when one core is running the USB gadget >> irq thread handler by dwc3_thread_interrupt(), meanwhile another core also >> can

Re: [PATCH] usb: dwc3: gadget: Avoid race between dwc3 interrupt handler and irq thread handler

2016-12-26 Thread Lu Baolu
Hi, On 12/27/2016 10:58 AM, Baolin Wang wrote: > Hi, > > On 27 December 2016 at 10:39, Lu Baolu wrote: >> Hi, >> >> On 12/26/2016 04:01 PM, Baolin Wang wrote: >>> On some platfroms(like x86 platform), when one core is running the USB >>> gadget >>> irq thread handler

[PATCH] usb: dwc3: gadget: Avoid race between dwc3 interrupt handler and irq thread handler

2016-12-26 Thread Baolin Wang
On some platfroms(like x86 platform), when one core is running the USB gadget irq thread handler by dwc3_thread_interrupt(), meanwhile another core also can respond other interrupts from dwc3 controller and modify the event buffer by dwc3_interrupt() function, that will cause getting the wrong

[PATCH] usb: xhci: Disable streams on Intel Cherrytrail controllers

2016-12-26 Thread Hans de Goede
Using an UAS device (and thus USB-3 streams) on an Intel Cherrytrail device, results in the following error: xhci_hcd :00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring xhci_hcd :00:14.0: @742f7120 0600 02028000 Note that the

RE: net2280 Driver Bug

2016-12-26 Thread Raz Manor
Hello all, Linus is right, I should remove all debug prints and keep whit-spacing conventions. As for the real part of the patch, it is correct that it is only the tmp reuse problem, and I couldn't agree more that it is a bad idea to reuse a variable, or name it tmp. It is also correct that

Re: [PATCH v14 00/10] usbip: exporting devices

2016-12-26 Thread Shuah Khan
Hi Nobuo Iwata, On 12/26/2016 12:08 AM, Nobuo Iwata wrote: > Dear all, > > This series of patches adds exporting device operation to USB/IP. > > NOTE: > This patch set modifies only userspace codes in tools/usb/usbip. > Existing operation is still available. > New operation will not be enabled