Re: [PATCH] usb: dwc3: gadget: only unmap requests from DMA if mapped

2017-09-06 Thread Thinh Nguyen
Hi, On 6/29/2017 12:54 AM, Jack Pham wrote: > A recent optimization was made so that a request put on the > pending_list wouldn't get mapped for DMA until just before > preparing a TRB for it. However, this poses a problem in case > the request is dequeued or the endpoint is disabled before the >

LOAN AVAILABLE @3 %

2017-09-06 Thread Mr
LOAN AVAILABLE @3 % Rely mohammedanis...@gmail.com -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[RESEND][PATCH 1/3] usb: dwc2: Improve gadget state disconnection handling

2017-09-06 Thread John Stultz
In the earlier commit dad3f793f20f ("usb: dwc2: Make sure we disconnect the gadget state"), I was trying to fix up the fact that we somehow weren't disconnecting the gadget state, so that when the OTG port was plugged in the second time we would get warnings about the state tracking being wrong.

[RESEND][PATCH 0/3] dwc2 fixes for edge cases on hikey

2017-09-06 Thread John Stultz
So here are a few dwc2 fixes that I've been using with HiKey. I'm not totally sure these are all ideal, but they avoid edge case issues that we have been running into with switching between gadget mode and host mode. I'd guess the first two are potentially -stable material, and the last might be

[RESEND][PATCH 2/3] usb: dwc2: Error out of dwc2_hsotg_ep_disable() if we're in host mode

2017-09-06 Thread John Stultz
We've found that while in host mode, using Android, if one runs the command: stop adbd The existing usb devices being utilized in host mode are disconnected. This is most visible with usb networking devices. This seems to be due to adbd closing the file: /dev/usb-ffs/adb/ep0 Which calls

[RESEND][PATCH 3/3] usb: dwc2: Fix UDC state tracking

2017-09-06 Thread John Stultz
It has been noticed that the dwc2 udc state reporting doesn't seem to work (at least on HiKey boards). Where after the initial setup, the sysfs /sys/class/udc/f72c.usb/state file would report "configured" no matter the state of the OTG port. This patch adds a call so that we report to the UDC

Re: [PATCH 27/31] usb/gadget/snps_udc_core: Move timer initialization earlier

2017-09-06 Thread Kees Cook
On Sun, Sep 3, 2017 at 2:12 PM, Michal Nazarewicz wrote: > On Thu, Aug 31 2017, Kees Cook wrote: >> With timer initialization made earlier at the start, there is no reason >> to make del_timer_sync() calls conditionally, there by removing the >> assignments and tests of the

Re: Debugging USB 3.0 Speeds

2017-09-06 Thread thetoad
On Wed, 6 Sep 2017, Mathias Nyman wrote: On 06.09.2017 12:24, Oliver Neukum wrote: Am Dienstag, den 05.09.2017, 13:52 -0700 schrieb Shaya Potter: I've added a USB 3.0 card that should support super speed to a server I have, but it's not working at super-speed speeds for the external hard

Re: [PATCH v6 3/8] usb: chipidea: Add support for Tegra20/30/114/124

2017-09-06 Thread Dmitry Osipenko
On 06.09.2017 16:21, Jon Hunter wrote: > > On 16/08/17 11:32, Dmitry Osipenko wrote: >> From: Thierry Reding >> >> All of these Tegra SoC generations have a ChipIdea UDC IP block that can >> be used for device mode communication with a host. Implement rudimentary >> support

RE: [PATCH] usb: xhci: Renesas uPD720202 needs short TX quirk

2017-09-06 Thread Yoshihiro Shimoda
Hi, Sorry, I missed this email... > -Original Message- > From: Felipe Balbi > Sent: Friday, August 18, 2017 10:10 AM > > Hi, > > Kai-Heng Feng writes: > >>> When plugging Logitech C920 webcam, warning messages filled up dmesg: > >>> [77117.655018] xhci_hcd

Re: Bug 196559: xhci_hcd: kernel panic using thunderbolt dell dock TB16 on 4.12.4

2017-09-06 Thread Jose Marino
The bug is still present in kernel 4.13. The panic logs look pretty much the same as with 4.12.4. I have attached the pstore and journald messages to the bugzilla bug report just in case. I reverted commit 5cc9b698a494827 on top of v4.13 and I can confirm that it fixes the problem. Jose On

Re: Debugging USB 3.0 Speeds

2017-09-06 Thread Shaya Potter
On Wed, 6 Sep 2017, Mathias Nyman wrote: On 06.09.2017 12:24, Oliver Neukum wrote: Am Dienstag, den 05.09.2017, 13:52 -0700 schrieb Shaya Potter: I've added a USB 3.0 card that should support super speed to a server I have, but it's not working at super-speed speeds for the external hard

Re: Bug 196559: xhci_hcd: kernel panic using thunderbolt dell dock TB16 on 4.12.4

2017-09-06 Thread Jose Marino
I have not tested 4.13 yet. I'll try to do that today and report back. Jose On 09/06/2017 01:16 AM, Greg KH wrote: On Tue, Sep 05, 2017 at 03:11:40PM -0600, Jose Marino wrote: Hi, I found a way to reliably trigger this bug: - Boot laptop - Plug in dock (with external display connected to

Re: [PATCH v6 3/8] usb: chipidea: Add support for Tegra20/30/114/124

2017-09-06 Thread Jon Hunter
On 16/08/17 11:32, Dmitry Osipenko wrote: > From: Thierry Reding > > All of these Tegra SoC generations have a ChipIdea UDC IP block that can > be used for device mode communication with a host. Implement rudimentary > support that doesn't allow switching between host and

Re: [PATCH] usb: Increase quirk delay for USB devices

2017-09-06 Thread Dmitry Fleytman
> On 5 Sep 2017, at 23:22 PM, Guenter Roeck wrote: > > On Tue, Sep 05, 2017 at 11:40:56AM +0300, Dmitry Fleytman wrote: >> Commit e0429362ab15 >> ("usb: Add device quirk for Logitech HD Pro Webcams C920 and C930e") >> introduced quirk to workaround an issue with some

Re: Debugging USB 3.0 Speeds

2017-09-06 Thread Mathias Nyman
On 06.09.2017 12:24, Oliver Neukum wrote: Am Dienstag, den 05.09.2017, 13:52 -0700 schrieb Shaya Potter: I've added a USB 3.0 card that should support super speed to a server I have, but it's not working at super-speed speeds for the external hard drives I connect, and a having a hard time

Re: Debugging USB 3.0 Speeds

2017-09-06 Thread Oliver Neukum
Am Dienstag, den 05.09.2017, 13:52 -0700 schrieb Shaya Potter: > I've added a USB 3.0 card that should support super speed to a server I > have, but it's not working at super-speed speeds for the external hard > drives I connect, and a having a hard time diagnosing why (hardware > issue/quirk?

Re: [PATCH] HID: add multi-input quirk for IDC6680 touchscreen

2017-09-06 Thread Jiri Kosina
On Mon, 4 Sep 2017, Nicholas Bishop wrote: > The Ideacom 6680 touchscreen is found in the Dell Latitude 2100. It > has two USB descriptors, the first of which has two input reports. The > HID_QUIRK_MULTI_INPUT quirk is needed to keep the correct maximum > value for ABS_X/ABS_Y (8191 instead of

Re: Bug 196559: xhci_hcd: kernel panic using thunderbolt dell dock TB16 on 4.12.4

2017-09-06 Thread Greg KH
On Tue, Sep 05, 2017 at 03:11:40PM -0600, Jose Marino wrote: > Hi, > I found a way to reliably trigger this bug: > - Boot laptop > - Plug in dock (with external display connected to dock) > - Send output to external display > - Suspend > > I did a bisect between 4.12.3 and 4.12.4 and here is the

Re: [PATCH v2 1/1] usb:xhci: update condition to select bus->sysdev from parent device

2017-09-06 Thread Mathias Nyman
On 06.09.2017 06:47, Thang Q. Nguyen wrote: On Tue, Sep 5, 2017 at 6:14 PM, Mathias Nyman > wrote: On 24.08.2017 05 :53, Thang Q. Nguyen wrote: On Sat, Aug 19, 2017 at 10:43 AM, Thang Q.