Re: cdc_ncm driver padding problem

2016-09-16 Thread Bjørn Mork
> ==From: Marek Brudka .. > ==The bad thing is DHCP. It seems, that cdc_ncm driver somehow consumes DHCP > ==replies. I had to manually setup wwan0 interface as well as routing > ==using the result > ==of Hayes command > == > ==AT^DHCP? > ==^DHCP: >

[PATCH 1/1] ARM: imx53: configure imx for ULPI phy

2016-09-16 Thread Fabien Lahoudere
In order to use ULPI phy with usb host 2 and 3, we need to configure controller register to enable ULPI features. Signed-off-by: Fabien Lahoudere --- drivers/usb/chipidea/ci_hdrc_imx.c | 5 +++ drivers/usb/chipidea/ci_hdrc_imx.h | 1 +

[PATCH 1/1] ARM: imx53: Add binding to disable USB 60Mhz clock

2016-09-16 Thread Fabien Lahoudere
This binding allow to disable the internal 60Mhz clock for USB host2 and host3. Signed-off-by: Fabien Lahoudere --- drivers/usb/chipidea/ci_hdrc_imx.c | 2 ++ drivers/usb/chipidea/ci_hdrc_imx.h | 1 + drivers/usb/chipidea/usbmisc_imx.c | 17 +

Re: ULPI phy issue with

2016-09-16 Thread Fabien Lahoudere
Hi, I have splitted the patch to submit only imx53 configuration. I will follow Stephen submission to test it with my board and add needed code to solve my clock issue. Thanks Fabien On 14/09/16 12:14, Peter Chen wrote: On Tue, Sep 13, 2016 at 08:05:32PM +0200, Fabien Lahoudere wrote:

Re: [PATCH 3/3] usb: gadget: default U1/U2 exit latencies to maximum

2016-09-16 Thread Felipe Balbi
Hi John, John Youn writes: >> John Youn writes: > John Youn writes: >> On 8/31/2016 2:38 AM, Felipe Balbi wrote: >>> If we don't know what are the actual U1/U2 exit >>> latencies from the UDC, we're better

Re: [PATCH] usb: gadget: udc: atmel: fix endpoint name

2016-09-16 Thread Nicolas Ferre
Le 15/09/2016 à 17:07, Alexandre Belloni a écrit : > Since commit c32b5bcfa3c4 ("ARM: dts: at91: Fix USB endpoint nodes"), > atmel_usba_udc fails with: > > [ cut here ] > WARNING: CPU: 0 PID: 0 at include/linux/usb/gadget.h:405 > ecm_do_notify+0x188/0x1a0 > Modules linked

Re: [PATCH 4/7] phy: meson: add USB2 PHY support for Meson8b and GXBB

2016-09-16 Thread Kishon Vijay Abraham I
Hi, On Friday 09 September 2016 09:44 PM, Martin Blumenstingl wrote: > On Fri, Sep 9, 2016 at 5:33 PM, Kevin Hilman wrote: >> However, the problem with all of the solutions proposed (runtime PM ones >> included) is that we're forcing a board-specific design issue (2 devices

Re: [PATCH v1 2/3] usb: gadget: NCM: link socket buffers to the device for received packets

2016-09-16 Thread Harish Jenny K N
> On Thursday 15 September 2016 08:35 PM, Yauheni Kaliuta wrote: >Is subject a bit misleading, it's more generic, then NCM? Agreed. I will submit v2 patchset. WBR, Harish Jenny K N -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to

[PATCH 0/4] staging: vt6655: Fix checkpatch issues

2016-09-16 Thread Namrata A Shettar
Fix multiple checkpatch issues. Namrata A Shettar (4): staging: vt6655: Replace NULL comparison staging: vt6655: Replace NULL comparison staging: vt6655: Break multiple assignments staging: vt6655: Break multiple assignments drivers/staging/vt6655/card.c| 6 --

Re: [PATCH V5] leds: trigger: Introduce a USB port trigger

2016-09-16 Thread Pavel Machek
On Thu 2016-09-15 15:33:19, Rafał Miłecki wrote: > On 15 September 2016 at 14:56, Pavel Machek wrote: > > On Fri 2016-09-09 13:31:10, Rafał Miłecki wrote: > >> On 9 September 2016 at 13:05, Greg KH wrote: > >> > On Fri, Sep 09, 2016 at 05:34:40PM +0800,

Re: xHCI problem? [was Re: Erratic USB device behavior and device loss]

2016-09-16 Thread Alan Stern
On Fri, 16 Sep 2016, Ritesh Raj Sarraf wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Hello Ulf and Alan, > > On Thu, 2016-09-15 at 10:16 -0400, Alan Stern wrote: > > > --- > > >  drivers/mmc/host/rtsx_usb_sdmmc.c | 2 ++ > > >  1 file changed, 2 insertions(+) > > >  > > > diff

[PATCH] usb: musb: fix error handling message in probe

2016-09-16 Thread Arnd Bergmann
We print an error message when platform_device_register_full() fails, but the initialization of the argument has been removed, as shown in this warning: drivers/usb/musb/da8xx.c: In function 'da8xx_probe': drivers/usb/musb/da8xx.c:521:3: error: 'ret' may be used uninitialized in this function

Re: [RFC/PATCH] usb: misc: Add a driver for TC7USB40MU

2016-09-16 Thread Peter Chen
On Thu, Sep 15, 2016 at 06:16:38PM -0700, Stephen Boyd wrote: > > > For #3, it is not the > > use case for this design. #3 is usually used for the single port which > > needs to support switching role on the fly without disconnection. > > So, you may only need to consider #2, you can't use

Re: [RFC/PATCH] usb: misc: Add a driver for TC7USB40MU

2016-09-16 Thread Peter Chen
On Wed, Sep 14, 2016 at 01:55:02AM -0700, Stephen Boyd wrote: > Quoting Stephen Boyd (2016-09-13 18:42:46) > > On the db410c 96boards platform we have a TC7USB40MU[1] on the > > board to mux the D+/D- lines from the SoC between a micro usb > > "device" port and a USB hub for "host" roles. Upon a

[PATCH] usb: musb: Fix tusb6010 compile error on blackfin

2016-09-16 Thread Bin Liu
From: Tony Lindgren We have CONFIG_BLACKFIN ifdef redefining all musb registers in musb_regs.h and tusb6010.h is never included causing a build error with blackfin-allmodconfig and COMPILE_TEST. Let's fix the issue by not building tusb6010 if CONFIG_BLACKFIN is selected.

Re: mceusb xhci issue?

2016-09-16 Thread Alan Stern
On Thu, 15 Sep 2016, Wade Berrier wrote: > On Thu Sep 15 15:13, Alan Stern wrote: > > On Sat, 10 Sep 2016, Wade Berrier wrote: > > > > > On Thu Aug 11 16:18, Alan Stern wrote: > > > > I never received any replies to this message. Should the patch I > > > > suggested be merged? > > > > > > > >

[PATCH] musb-fixes for v4.8-rc7

2016-09-16 Thread Bin Liu
Hi Greg, Here is one patch for musb to fix a build error reported by kbuild test robot. If it is too late for v4.8, I think it is okay to merge it to v4.9-rc. Please let me know if any change is needed. Thanks, -Bin. --- Tony Lindgren (1): usb: musb: Fix tusb6010 compile error on blackfin

[PATCH V6] usb: core: Introduce a USB port LED trigger

2016-09-16 Thread Rafał Miłecki
From: Rafał Miłecki This commit adds a new trigger responsible for turning on LED when USB device gets connected to the selected USB port. This can can useful for various home routers that have USB port(s) and a proper LED telling user a device is connected. The trigger gets

Re: [PATCHv3] usb: musb: Fix unbalanced platform_disable

2016-09-16 Thread Bin Liu
Hi, On Wed, Sep 14, 2016 at 11:10:19AM -0700, Tony Lindgren wrote: > Commit a83e17d0f73b ("usb: musb: Improve PM runtime and phy handling > for 2430 glue layer") moved PHY enable/disable calls to happen from > omap2430_musb_enable/disable(). That broke enumeration for several > devices as PM

Re: [PATCH v4 21/22] phy: Add support for Qualcomm's USB HSIC phy

2016-09-16 Thread Rob Herring
On Wed, Sep 07, 2016 at 02:35:18PM -0700, Stephen Boyd wrote: > The HSIC USB controller on qcom SoCs has an integrated all > digital phy controlled via the ULPI viewport. > > Cc: Kishon Vijay Abraham I > Cc: > Signed-off-by: Stephen Boyd

[PATCH] USB: change bInterval default to 10 ms

2016-09-16 Thread Alan Stern
Some full-speed mceusb infrared transceivers contain invalid endpoint descriptors for their interrupt endpoints, with bInterval set to 0. In the past they have worked out okay with the mceusb driver, because the driver sets the bInterval field in the descriptor to 1, overwriting whatever value may

Re: [PATCH 4/7] phy: meson: add USB2 PHY support for Meson8b and GXBB

2016-09-16 Thread Arnd Bergmann
On Friday, September 16, 2016 1:49:59 PM CEST Kishon Vijay Abraham I wrote: > > I think the offset information can come from the devicetree too. The phy can > be > modeled something like below. > > usb-phys@c000 { > compatible =

Re: [PATCH v2 3/6] phy: meson: add USB2 PHY support for Meson8b and GXBB

2016-09-16 Thread Kishon Vijay Abraham I
Hi Kevin, On Wednesday 14 September 2016 09:36 PM, Kevin Hilman wrote: > Kishon, > > Martin Blumenstingl writes: > >> This is a new driver for the USB PHY found in Meson8b and GXBB SoCs. >> >> Signed-off-by: Martin Blumenstingl

Gadget regression with u_ether in Linux next

2016-09-16 Thread Tony Lindgren
Hi, Looks like commit c9ffc78745f8 ("usb: gadget: NCM: Protect dev->port_usb using dev->lock") causes hangs for me with Linux next. Reverting c9ffc78745f8 makes the issues go away, some more info below. Regards, Tony 8< With gadgets configured and after connecting the

Re: xHCI problem? [was Re: Erratic USB device behavior and device loss]

2016-09-16 Thread Ritesh Raj Sarraf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hello Ulf and Alan, On Thu, 2016-09-15 at 10:16 -0400, Alan Stern wrote: > > --- > >  drivers/mmc/host/rtsx_usb_sdmmc.c | 2 ++ > >  1 file changed, 2 insertions(+) > >  > > diff --git a/drivers/mmc/host/rtsx_usb_sdmmc.c > >

Re: [PATCH] musb: Export musb_root_disconnect for use in modules

2016-09-16 Thread Greg Kroah-Hartman
On Fri, Sep 16, 2016 at 04:59:36PM +0200, Hans de Goede wrote: > Export musb_root_disconnect for use in modules, so that musb glue > code build as module can use it. > > Signed-off-by: Hans de Goede > --- > drivers/usb/musb/musb_virthub.c | 1 + > 1 file changed, 1

Re: [PATCH] musb: Export musb_root_disconnect for use in modules

2016-09-16 Thread Mark Brown
On Fri, Sep 16, 2016 at 05:47:01PM +0200, Greg Kroah-Hartman wrote: > On Fri, Sep 16, 2016 at 04:59:36PM +0200, Hans de Goede wrote: > > +EXPORT_SYMBOL_GPL(musb_root_disconnect); > Does this fix a build error somehow? Who reported it? Yes, the sunxi driver uses this symbol and the build bots

Re: [PATCH] musb: Export musb_root_disconnect for use in modules

2016-09-16 Thread Greg Kroah-Hartman
On Fri, Sep 16, 2016 at 04:53:17PM +0100, Mark Brown wrote: > On Fri, Sep 16, 2016 at 05:47:01PM +0200, Greg Kroah-Hartman wrote: > > On Fri, Sep 16, 2016 at 04:59:36PM +0200, Hans de Goede wrote: > > > > +EXPORT_SYMBOL_GPL(musb_root_disconnect); > > > Does this fix a build error somehow? Who

Re: [PATCH] USB: change bInterval default to 10 ms

2016-09-16 Thread Mauro Carvalho Chehab
Em Fri, 16 Sep 2016 10:24:26 -0400 (EDT) Alan Stern escreveu: > Some full-speed mceusb infrared transceivers contain invalid endpoint > descriptors for their interrupt endpoints, with bInterval set to 0. > In the past they have worked out okay with the mceusb driver,

[GIT PULL] USB-serial updates for v4.9-rc1

2016-09-16 Thread Johan Hovold
Hi Greg, Here's are my updates for 4.9. All have been in linux-next for quite some time. Thanks, Johan The following changes since commit fa8410b355251fd30341662a40ac6b22d3e38468: Linux 4.8-rc3 (2016-08-21 16:14:10 -0700) are available in the git repository at:

Re: [PATCH v4 22/22] phy: Add support for Qualcomm's USB HS phy

2016-09-16 Thread Rob Herring
On Wed, Sep 07, 2016 at 02:35:19PM -0700, Stephen Boyd wrote: > The high-speed phy on qcom SoCs is controlled via the ULPI > viewport. > > Cc: Kishon Vijay Abraham I > Cc: > Signed-off-by: Stephen Boyd > --- >

Re: [GIT PULL] USB-serial fixes for v4.8-rc7

2016-09-16 Thread Greg Kroah-Hartman
On Fri, Sep 16, 2016 at 05:03:00PM +0200, Johan Hovold wrote: > Hi Greg, > > Here's another device id for 4.8 unless you prefer holding off for 4.9. > > Has been in linux-next. > > Thanks, > Johan > > > The following changes since commit 9395452b4aab7bc2475ef8935b4a4fb99d778d70: > > Linux

Re: [GIT PULL] USB-serial updates for v4.9-rc1

2016-09-16 Thread Greg Kroah-Hartman
On Fri, Sep 16, 2016 at 05:12:05PM +0200, Johan Hovold wrote: > Hi Greg, > > Here's are my updates for 4.9. All have been in linux-next for quite > some time. > > Thanks, > Johan > > > The following changes since commit fa8410b355251fd30341662a40ac6b22d3e38468: > > Linux 4.8-rc3 (2016-08-21

Re: next-20160915 build: 2 failures 16 warnings (next-20160915)

2016-09-16 Thread Hans de Goede
Hi, On 15-09-16 17:41, Mark Brown wrote: On Thu, Sep 15, 2016 at 12:43:41PM +0100, Build bot for Mark Brown wrote: Today's -next fails to build both arm and arm64 allmodconfigs due to: arm64-allmodconfig ERROR: "musb_root_disconnect" [drivers/usb/musb/sunxi.ko] undefined!

[PATCH] musb: Export musb_root_disconnect for use in modules

2016-09-16 Thread Hans de Goede
Export musb_root_disconnect for use in modules, so that musb glue code build as module can use it. Signed-off-by: Hans de Goede --- drivers/usb/musb/musb_virthub.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/musb/musb_virthub.c

[GIT PULL] USB-serial fixes for v4.8-rc7

2016-09-16 Thread Johan Hovold
Hi Greg, Here's another device id for 4.8 unless you prefer holding off for 4.9. Has been in linux-next. Thanks, Johan The following changes since commit 9395452b4aab7bc2475ef8935b4a4fb99d778d70: Linux 4.8-rc6 (2016-09-11 20:02:25 -0700) are available in the git repository at:

Re: mceusb xhci issue?

2016-09-16 Thread Mauro Carvalho Chehab
Em Fri, 16 Sep 2016 10:25:31 -0400 (EDT) Alan Stern escreveu: > On Thu, 15 Sep 2016, Wade Berrier wrote: > > > On Thu Sep 15 15:13, Alan Stern wrote: > > > On Sat, 10 Sep 2016, Wade Berrier wrote: > > > > > > > On Thu Aug 11 16:18, Alan Stern wrote: > > > > > I

Re: cdc_acm bug? read buffer bytes shifted

2016-09-16 Thread Julio Guerra
> On Sat, 2016-08-20 at 14:14 +0200, Julio Guerra wrote: Another example: > 00 00 00 00 00 00 00 01 ... > 01 00 00 00 00 00 00 00 ... > 00 01 00 00 00 00 00 00 ... > 00 00 01 00 00 00 00 00 after a random number of times, while usbmon shows the usb payload

Re: [PATCH 3/3] usb: gadget: default U1/U2 exit latencies to maximum

2016-09-16 Thread John Youn
On 9/16/2016 12:55 AM, Felipe Balbi wrote: > > Hi John, > > John Youn writes: >>> John Youn writes: >> John Youn writes: >>> On 8/31/2016 2:38 AM, Felipe Balbi wrote: If we don't know what are the actual