[PATCH] usb: hub: judge BOS field in usb_reset_and_verify_device()

2017-05-01 Thread wangjianxing5210
From: "Jianxing.Wang" When notebook with intel-3165-wifi suspend and resume,crash for udev->bos is NULL. Signed-off-by: Jianxing.Wang --- drivers/usb/core/hub.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index

RE: [PATCH v4 3/3] USB3/DWC3: Enable undefined length INCR burst type

2017-05-01 Thread Jerry Huang
> -Original Message- > From: Felipe Balbi [mailto:ba...@kernel.org] > Sent: Friday, March 10, 2017 7:27 PM > To: Jerry Huang ; robh...@kernel.org; > mark.rutl...@arm.com; catalin.mari...@arm.com > Cc: linux-usb@vger.kernel.org; linux-ker...@vger.kernel.org; > devicet...@vger.kernel.org; li

Re: [PATCH] usb: musb: musb_cppi41: Update an error message

2017-05-01 Thread Sekhar Nori
Hi Alexandre, On Friday 28 April 2017 09:34 PM, Alexandre Bailon wrote: > If dma_request_slave_channel() failed to return a channel, > then the driver will print an error and request to defer probe. > Update the error message to explain we are defrering probe. > > Signed-off-by: Alexandre Bailon

[PATCH] usb: gadget: udc: add null check before pointer dereference

2017-05-01 Thread Gustavo A. R. Silva
Add null check before dereferencing dev->regs pointer inside net2280_led_shutdown() function. Addresses-Coverity-ID: 101783 Signed-off-by: Gustavo A. R. Silva --- drivers/usb/gadget/udc/net2280.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/udc/n

[usb-host] question about pointer dereference before null check

2017-05-01 Thread Gustavo A. R. Silva
Hello everybody, While taking a look into Coverity ID 100828 I ran into the following piece of code at drivers/usb/host/ehci-sched.c:1096: u32 addr; int think_time; int hs_transfers; addr = dev->ttport << 24; if (!ehci_is_TDI(ehci) || (dev-

Re: Regression - Linux 4.9: ums_eneub6250 broken: transfer buffer not dma capable - Trace

2017-05-01 Thread Alan Stern
On Wed, 26 Apr 2017, Andreas Hartmann wrote: > On 04/24/2017 at 10:39 PM Alan Stern wrote: > > On Sun, 23 Apr 2017, Andreas Hartmann wrote: > > > >> Am 23.04.2017 um 18:09 schrieb Alan Stern: > >>> On Sat, 22 Apr 2017, Andreas Hartmann wrote: > >>> > > In the meanwhile, I see another problem.

[PATCH] USB: xhci: fix lock-inversion problem

2017-05-01 Thread Alan Stern
With threaded interrupts, bottom-half handlers are called with interrupts enabled. Therefore they can't safely use spin_lock(); they have to use spin_lock_irqsave(). Lockdep warns about a violation occurring in xhci_irq(): = [ INFO: possibl

Re: USB-related lock inversion complaint

2017-05-01 Thread Alan Stern
On Mon, 1 May 2017, Bart Van Assche wrote: > On Mon, 2017-05-01 at 13:39 -0400, Alan Stern wrote: > > On Fri, 28 Apr 2017, Alan Stern wrote: > > > On Fri, 28 Apr 2017, Bart Van Assche wrote: > > He wrote: > > > > > There, that's where we hold the lock with interrupts enabled. > > > > > > So some

Re: USB-related lock inversion complaint

2017-05-01 Thread Bart Van Assche
On Mon, 2017-05-01 at 13:39 -0400, Alan Stern wrote: > On Fri, 28 Apr 2017, Alan Stern wrote: > > On Fri, 28 Apr 2017, Bart Van Assche wrote: > He wrote: > > > There, that's where we hold the lock with interrupts enabled. > > > > So someone forced interrupt threading and the code assumes the inte

Re: [PATCH] usb: musb: Fix trying to suspend while active for OTG configurations

2017-05-01 Thread Bin Liu
On Wed, Apr 19, 2017 at 11:22:55AM +0300, Peter Ujfalusi wrote: > > > On 2017-04-07 17:35, Tony Lindgren wrote: > >Commit d8e5f0eca1e8 ("usb: musb: Fix hardirq-safe hardirq-unsafe > >lock order error") caused a regression where musb keeps trying to > >enable host mode with no cable connected. Thi

Re: Asmedia USB 1343 crashes

2017-05-01 Thread Thomas Fjellstrom
On Monday, May 1, 2017 1:57:53 PM MDT Alan Stern wrote: > On Mon, 1 May 2017, Thomas Fjellstrom wrote: > > > On Monday, May 1, 2017 10:54:12 AM MDT Alan Stern wrote: > > > On Mon, 1 May 2017, Thomas Fjellstrom wrote: > > > > I've got a 970 Pro gaming aura motherboard with an Asmedia 1343 Usb 3.1

Re: Kernel / USB bug

2017-05-01 Thread Nicolas Repentin
Anyone ? Le 30/04/2017 à 18:34, Nicolas Repentin a écrit : > Hi all, > > I got some bugs on USB 3.0 storage. > > I've created a bugzilla here: > > https://bugzilla.kernel.org/show_bug.cgi?id=189631 > > Can you please help to correct this please? > > > It happens during transfers or big copies to

Re: Asmedia USB 1343 crashes

2017-05-01 Thread Alan Stern
On Mon, 1 May 2017, Thomas Fjellstrom wrote: > On Monday, May 1, 2017 10:54:12 AM MDT Alan Stern wrote: > > On Mon, 1 May 2017, Thomas Fjellstrom wrote: > > > I've got a 970 Pro gaming aura motherboard with an Asmedia 1343 Usb 3.1 > > > controller. It's been consistently throwing errors and eventu

Re: USB-related lock inversion complaint

2017-05-01 Thread Alan Stern
On Fri, 28 Apr 2017, Alan Stern wrote: > On Fri, 28 Apr 2017, Bart Van Assche wrote: > > > Hello, > > > > Every time I boot a particular development server the complaint shown > > below appears in the system log. I don't know when this behavior has > > been introduced. But I noticed that I can r

Re: Asmedia USB 1343 crashes

2017-05-01 Thread Thomas Fjellstrom
On Monday, May 1, 2017 10:54:12 AM MDT Alan Stern wrote: > On Mon, 1 May 2017, Thomas Fjellstrom wrote: > > I've got a 970 Pro gaming aura motherboard with an Asmedia 1343 Usb 3.1 > > controller. It's been consistently throwing errors and eventually crashing > > and becomming unresponsive. > > May

Re: Asmedia USB 1343 crashes

2017-05-01 Thread Alan Stern
On Mon, 1 May 2017, Thomas Fjellstrom wrote: > I've got a 970 Pro gaming aura motherboard with an Asmedia 1343 Usb 3.1 > controller. It's been consistently throwing errors and eventually crashing > and > becomming unresponsive. Maybe if you posted a kernel log showing those errors, people woul

Re: [PATCH] usb: musb: musb_cppi41: Update an error message

2017-05-01 Thread Bin Liu
Hi, On Fri, Apr 28, 2017 at 06:04:54PM +0200, Alexandre Bailon wrote: > If dma_request_slave_channel() failed to return a channel, > then the driver will print an error and request to defer probe. > Update the error message to explain we are defrering probe. > > Signed-off-by: Alexandre Bailon >

Asmedia USB 1343 crashes

2017-05-01 Thread Thomas Fjellstrom
I've got a 970 Pro gaming aura motherboard with an Asmedia 1343 Usb 3.1 controller. It's been consistently throwing errors and eventually crashing and becomming unresponsive. Even just plugging in one device to the rear port will eventually cause the controller to die. Usually only takes a few

Re: I'd like to donate a MacBook Pro

2017-05-01 Thread Greg KH
On Mon, May 01, 2017 at 12:27:41AM -0600, Alex Henrie wrote: > Dear kernel developers, > > I have a MacBookPro12,1 A1502 with a very annoying problem. Every time > it boots, the screen stays black for about 90 seconds, and the > keyboard is unresponsive for an additional 40 seconds. Both the > int