Re: [PATCH v2 1/1] usb: dwc3: gadget: Correct ISOC DATA PIDs for short packets

2017-07-21 Thread Fengwei Yin
Hi, On Wed, Jul 19, 2017 at 7:37 PM, Manu Gautam wrote: > > The PIDs for Isochronous data transfers are incorrect > for high bandwidth IN endpoints when the request length > is less than EP wMaxPacketSize. > As per spec correct PIDs for ISOC data transfers are: > ->For

Re: [PATCH v1 6/6] usb: dwc3: core: Notify USB3 PHY as well for DRD modes

2017-07-21 Thread Stephen Boyd
On 07/21/2017 04:02 AM, Manu Gautam wrote: > Driver currently notifies only USB3 PHY for mode change. > Extend this to USB3 PHY so that driver based on the mode > can release system resources - clocks, regulators etc. > and can even turn off PHY during runtime suspend. > > Signed-off-by: Manu

Re: [PATCH] HID: usbhid: fix "always poll" quirk

2017-07-21 Thread Jiri Kosina
On Wed, 12 Jul 2017, Dmitry Torokhov wrote: > Even though the IO for devices with "always poll" quirk is already running, > we still need to set HID_OPENED bit in usbhid->iofl so the interrupt > handler does not ignore the data coming from the device. > > Reported-by: Olof Johansson

Re: Warning dump on OMAP-L138 when g_zero module is removed

2017-07-21 Thread Alexandre Bailon
Hi Sekhar, On 07/10/2017 01:00 PM, Sekhar Nori wrote: > On Thursday 06 July 2017 10:43 PM, Alexandre Bailon wrote: >> On 06/29/2017 03:50 PM, Sekhar Nori wrote: >>> Hi Alexandre, Bin, >>> >>> With latest linux-next, I see a warning dump when I remove g_zero[1] on >>> OMAP-L138 LCDK board. I am

Kernel USB Driver Bug Report: USB keyboard stops working for a while after clicking the power button on Dell Inspiron 15 3000 series

2017-07-21 Thread Gia Thuan Lam
To honorable kernel developers, I am writing to report a kernel bug I have with my USB keyboard. I am using Linux kernel 4.10.0-29-generic, but this problem exists in older kernels as well at least since kernel 4.10.0-26. I am using Ubuntu Gnome 17.04. After closing the lid, I click the power

Re: [PATCH] usb: dwc3: Fix the USB 3.0 hub detection bug after warm boot

2017-07-21 Thread gustavo panizzo
Hello, On Thu, Jul 13, 2017 at 01:58:26PM +0800, Baolin Wang wrote: Hi, On 13 July 2017 at 07:20, gustavo panizzo wrote: Hello Wang thanks for your response On Wed, Jul 12, 2017 at 02:08:04PM +0800, Baolin Wang wrote: Hi, On 12 July 2017 at 11:52, gustavo panizzo

Re: USB 3.0 is broken on Odroid Xu4 on latest kernel

2017-07-21 Thread Anand Moon
Hi All, On 21 July 2017 at 16:10, Anand Moon <linux.am...@gmail.com> wrote: > Hi Markus Reichl/ Felipe/ Krzysztof / Jochen, > > On 21 July 2017 at 14:56, Markus Reichl <m.rei...@fivetechno.de> wrote: >> Hi Anand, >> >> the issue below is fixed with

Re: USB 3.0 is broken on Odroid Xu4 on latest kernel

2017-07-21 Thread Felipe Balbi
Hi, Sylwester Nawrocki writes: > Hi, > > On 07/21/2017 10:10 AM, Felipe Balbi wrote: >> Jochen Sprickerhof writes: > >>> I've send a patch for this some time ago here: >>> http://marc.info/?l=linux-usb=149945465112440=2 >>> >>> This goes along

Re: USB 3.0 is broken on Odroid Xu4 on latest kernel

2017-07-21 Thread Sylwester Nawrocki
Hi, On 07/21/2017 10:10 AM, Felipe Balbi wrote: Jochen Sprickerhof writes: I've send a patch for this some time ago here: http://marc.info/?l=linux-usb=149945465112440=2 This goes along with the patch in this thread: http://marc.info/?l=linux-usb=149983203023058=2

[PATCH v1 6/6] usb: dwc3: core: Notify USB3 PHY as well for DRD modes

2017-07-21 Thread Manu Gautam
Driver currently notifies only USB3 PHY for mode change. Extend this to USB3 PHY so that driver based on the mode can release system resources - clocks, regulators etc. and can even turn off PHY during runtime suspend. Signed-off-by: Manu Gautam diff --git

Re: USB 3.0 is broken on Odroid Xu4 on latest kernel

2017-07-21 Thread Anand Moon
Hi Markus Reichl/ Felipe/ Krzysztof / Jochen, On 21 July 2017 at 14:56, Markus Reichl <m.rei...@fivetechno.de> wrote: > Hi Anand, > > the issue below is fixed with > 4.13.0-rc1-next-20170721. > > Gruß, > -- > Markus Reichl > > Am 19.07.2017 um 16:58

Re: [PATCH 2/3] usb: xhci: Add DbC support in xHCI driver

2017-07-21 Thread Felipe Balbi
Hi, Lu Baolu writes: > +static void xhci_dbc_stop(struct xhci_hcd *xhci) > +{ > + struct xhci_dbc *dbc = xhci->dbc; > + > + WARN_ON(!dbc); > + > + cancel_delayed_work_sync(>event_work); > + > + if (dbc->gs_port_num != GSPORT_INVAL) { > +

Re: USB 3.0 is broken on Odroid Xu4 on latest kernel

2017-07-21 Thread Felipe Balbi
Hi, Jochen Sprickerhof writes: > * Felipe Balbi [2017-07-21 11:10]: >> Hi, >> >> Jochen Sprickerhof writes: >> > Hi, >> > >> > I've send a patch for this some time ago here: >> > >> >

Re: USB 3.0 is broken on Odroid Xu4 on latest kernel

2017-07-21 Thread Markus Reichl
Hi Anand, the issue below is fixed with 4.13.0-rc1-next-20170721. Gruß, -- Markus Reichl Am 19.07.2017 um 16:58 schrieb Anand Moon: > Hi Krzysztof, > > Today I tried to compile the latest kernel for Odroid xu4. > using exynos_defconfig I build and loaded the kernel. > but to

Re: [PATCH] HID: usbhid: fix "always poll" quirk

2017-07-21 Thread Benjamin Tissoires
On Jul 12 2017 or thereabouts, Dmitry Torokhov wrote: > Even though the IO for devices with "always poll" quirk is already running, > we still need to set HID_OPENED bit in usbhid->iofl so the interrupt > handler does not ignore the data coming from the device. > > Reported-by: Olof Johansson

Re: USB 3.0 is broken on Odroid Xu4 on latest kernel

2017-07-21 Thread Jochen Sprickerhof
* Felipe Balbi [2017-07-21 11:10]: > Hi, > > Jochen Sprickerhof writes: > > Hi, > > > > I've send a patch for this some time ago here: > > > > http://marc.info/?l=linux-usb=149945465112440=2 > > > > This goes along with the patch in this thread: > > > >

[PATCH 1/1] usb: chipidea: core: do not register extcon notifier if extcon device is not existed

2017-07-21 Thread Peter Chen
This issue is detected when the system has another device driver which registers USB connector extcon device, fix it by adding extcon device check. Signed-off-by: Peter Chen --- drivers/usb/chipidea/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] usb: dwc3: Support the dwc3 host suspend/resume

2017-07-21 Thread Manu Gautam
Hi, On 7/21/2017 2:31 PM, Baolin Wang wrote: > On 21 July 2017 at 16:45, Manu Gautam wrote: >> Hi, >> >> >> On 7/21/2017 12:28 PM, Baolin Wang wrote: >>> For some mobile devices with strict power management, we also want to >>> suspend the host when the slave was detached

Re: [PATCH] usb: dwc3: Support the dwc3 host suspend/resume

2017-07-21 Thread Baolin Wang
On 21 July 2017 at 16:45, Manu Gautam wrote: > Hi, > > > On 7/21/2017 12:28 PM, Baolin Wang wrote: >> For some mobile devices with strict power management, we also want to >> suspend the host when the slave was detached for power saving. Thus >> adding the host

[PATCH 1/3] usb: xhci: Make some static functions global

2017-07-21 Thread Lu Baolu
This patch makes some static functions global to avoid duplications in different files. These functions can be used in the implementation of xHCI debug capability. There is no functional change. Signed-off-by: Lu Baolu --- drivers/usb/host/xhci-mem.c | 94

[PATCH 0/3] usb: xhci: Add debug capability support in xhci

2017-07-21 Thread Lu Baolu
Hi, This series is for xHCI debug capability (spec section 7.6.8) support in the xHCI driver. xHCI compatible USB host controllers(i.e. super-speed USB3 controllers) can be implemented with the Debug Capability(DbC). It presents a debug device which is fully compliant with the USB framework and

[PATCH 3/3] usb: doc: Update document for USB3 debug port usage

2017-07-21 Thread Lu Baolu
Update Documentation/driver-api/usb/usb3-debug-port.rst. This update includes the guide for using xHCI debug capability based TTY serial link. Signed-off-by: Lu Baolu --- Documentation/driver-api/usb/usb3-debug-port.rst | 68 1 file changed, 68

[PATCH 2/3] usb: xhci: Add DbC support in xHCI driver

2017-07-21 Thread Lu Baolu
xHCI compatible USB host controllers(i.e. super-speed USB3 controllers) can be implemented with the Debug Capability(DbC). It presents a debug device which is fully compliant with the USB framework and provides the equivalent of a very high performance full-duplex serial link. The debug capability

Re: [PATCH] usb: dwc3: Support the dwc3 host suspend/resume

2017-07-21 Thread Manu Gautam
Hi, On 7/21/2017 12:28 PM, Baolin Wang wrote: > For some mobile devices with strict power management, we also want to > suspend the host when the slave was detached for power saving. Thus > adding the host suspend/resume functions to support this requirement. USB/PM core already takes care of

Re: USB 3.0 is broken on Odroid Xu4 on latest kernel

2017-07-21 Thread Felipe Balbi
Hi, Jochen Sprickerhof writes: > Hi, > > I've send a patch for this some time ago here: > > http://marc.info/?l=linux-usb=149945465112440=2 > > This goes along with the patch in this thread: > > http://marc.info/?l=linux-usb=149983203023058=2 > > Would be great if you

Re: USB 3.0 is broken on Odroid Xu4 on latest kernel

2017-07-21 Thread Jochen Sprickerhof
Hi, I've send a patch for this some time ago here: http://marc.info/?l=linux-usb=149945465112440=2 This goes along with the patch in this thread: http://marc.info/?l=linux-usb=149983203023058=2 Would be great if you could give it a try and report back. @Felipe can I do anything more to get

Re: [PATCH 1/2] usb: dwc3: Don't reinitialize core during host bus-suspend/resume

2017-07-21 Thread Baolin Wang
Hi Manu, On 21 July 2017 at 10:32, Baolin Wang wrote: > Hi Manu, > > On 20 July 2017 at 19:12, Manu Gautam wrote: >> Hi, >> >> >> On 7/13/2017 1:13 PM, Baolin Wang wrote: >>> Hi, >>> >>> On 13 July 2017 at 15:26, Manu Gautam

[PATCH] usb: dwc3: Support the dwc3 host suspend/resume

2017-07-21 Thread Baolin Wang
For some mobile devices with strict power management, we also want to suspend the host when the slave was detached for power saving. Thus adding the host suspend/resume functions to support this requirement. We will issue the pm_suspend_ignore_children() for the dwc3 device, since we will resume

Re: new driver Fresco Logic

2017-07-21 Thread PePa
Just to follow up on https://www.mail-archive.com/linux-usb@vger.kernel.org/msg42874.html about USB to VGA devices. FL released a limited driver that decodes the USB to display, but doesn't interact with X in any way: https://github.com/fresco-fl2000/fl2000 (Since last month!) Cheers, Peter