Re: [PATCH v5 resend 0/2] phy-sun4i-usb: peripheral-mode + a31 otg workaround

2016-07-04 Thread Kishon Vijay Abraham I
On Sunday 03 July 2016 01:38 AM, Hans de Goede wrote: > Hi, > > On 30-06-16 07:47, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Wednesday 29 June 2016 11:44 PM, Hans de Goede wrote: >>> Hi Kishon, >>> >>> The "USB: Fix of_usb_get_dr_mode_by_phy with a shared phy block" >>> patch on which this s

Re: [PATCH v2] cdc-wdm: fix "out-of-sync" due to missing notifications

2016-07-04 Thread Oliver Neukum
On Sun, 2016-07-03 at 21:59 +0200, Bjørn Mork wrote: > default: > @@ -200,10 +200,29 @@ static void wdm_in_callback(struct urb *urb) > desc->reslength = length; > } > } > + > + /* > + * If desc->resp_count is unset, then the urb was s

Re: [PATCH net,stable] cdc_ncm: workaround for EM7455 "silent" data interface

2016-07-04 Thread Oliver Neukum
On Sun, 2016-07-03 at 22:24 +0200, Bjørn Mork wrote: > Several Lenovo users have reported problems with their Sierra > Wireless EM7455 modem. The driver has loaded successfully and > the MBIM management channel has appeared to work, including > establishing a connection to the mobile network. But n

Re: [RFC] usb: phy: generic: get rid of VBUS handling

2016-07-04 Thread Felipe Balbi
Hi, Robert Jarzmik writes: >>> - amend the drivers (for my part I have pxa27x_udc.c and probably >>> pxa25x_udc.c) >>> to subscribe to the notifier, and in the action function call either >>> usb_gadget_vbus_connect() or usb_gadget_vbus_disconnect(). >>> >>> Would that kind of approach solve

Re: [PATCHv3 1/2] usb: USB Type-C connector class

2016-07-04 Thread Oliver Neukum
On Wed, 2016-06-29 at 14:27 +0300, Heikki Krogerus wrote: > About the end user of the interface, I think Oliver knows more about > that. But I would imagine that the use cases will be something like, > for example, on systems that need prefer sertain roles, perhaps Host > for example on some serve

[BUG] Regression, usb-dwc3 not working, Odroid XU3, usb 3.0

2016-07-04 Thread Krzysztof Kozlowski
Hi, Since three recent next releases (first on 20160630), on Odroid XU3 board the USB 3.0 host port (the only one) stopped working. This is a "samsung,exynos5250-dwusb3" (drivers/usb/dwc3/dwc3-exynos.c). Two issues here: 1. The port does not show up as USB 3.0 device. This one device is missing

Re: [BUG] Regression, usb-dwc3 not working, Odroid XU3, usb 3.0

2016-07-04 Thread Felipe Balbi
Hi, Krzysztof Kozlowski writes: > Hi, > > > Since three recent next releases (first on 20160630), on Odroid XU3 board > the USB 3.0 host port (the only one) stopped working. > > This is a "samsung,exynos5250-dwusb3" (drivers/usb/dwc3/dwc3-exynos.c). > > Two issues here: > 1. The port does not s

Re: [BUG] Regression, usb-dwc3 not working, Odroid XU3, usb 3.0

2016-07-04 Thread Krzysztof Kozlowski
On 07/04/2016 01:33 PM, Felipe Balbi wrote: > > Hi, > > Krzysztof Kozlowski writes: > >> Hi, >> >> >> Since three recent next releases (first on 20160630), on Odroid XU3 board >> the USB 3.0 host port (the only one) stopped working. >> >> This is a "samsung,exynos5250-dwusb3" (drivers/usb/dwc3/

Re: [BUG] Regression, usb-dwc3 not working, Odroid XU3, usb 3.0

2016-07-04 Thread Felipe Balbi
Hi, Krzysztof Kozlowski writes: >>> Since three recent next releases (first on 20160630), on Odroid XU3 board >>> the USB 3.0 host port (the only one) stopped working. >>> >>> This is a "samsung,exynos5250-dwusb3" (drivers/usb/dwc3/dwc3-exynos.c). >>> >>> Two issues here: >>> 1. The port does no

Re: [PATCH v2] cdc-wdm: fix "out-of-sync" due to missing notifications

2016-07-04 Thread Bjørn Mork
Oliver Neukum writes: > On Sun, 2016-07-03 at 21:59 +0200, Bjørn Mork wrote: >> default: >> @@ -200,10 +200,29 @@ static void wdm_in_callback(struct urb *urb) >> desc->reslength = length; >> } >> } >> + >> +/* >> + * If desc->resp_count

Re: [PATCH net,stable] cdc_ncm: workaround for EM7455 "silent" data interface

2016-07-04 Thread Bjørn Mork
Oliver Neukum writes: > On Sun, 2016-07-03 at 22:24 +0200, Bjørn Mork wrote: >> Several Lenovo users have reported problems with their Sierra >> Wireless EM7455 modem. The driver has loaded successfully and >> the MBIM management channel has appeared to work, including >> establishing a connection

Re: [PATCH v2] cdc-wdm: fix "out-of-sync" due to missing notifications

2016-07-04 Thread Oliver Neukum
On Mon, 2016-07-04 at 13:54 +0200, Bjørn Mork wrote: > Oliver Neukum writes: > > > On Sun, 2016-07-03 at 21:59 +0200, Bjørn Mork wrote: > >>default: > >> @@ -200,10 +200,29 @@ static void wdm_in_callback(struct urb *urb) > >>desc->reslength = length; > >>

Re: [PATCH v5 3/7] phy: Add set_mode callback

2016-07-04 Thread Kishon Vijay Abraham I
Hi Bin, On Monday 27 June 2016 06:17 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Tuesday 10 May 2016 05:09 AM, David Lechner wrote: >> The initial use for this is for PHYs that have a mode related to USB OTG. >> There are several SoCs (e.g. TI OMAP and DA8xx) that have a mode setting >> in the

Re: [PATCH net,stable] cdc_ncm: workaround for EM7455 "silent" data interface

2016-07-04 Thread Oliver Neukum
On Mon, 2016-07-04 at 13:40 +0200, Bjørn Mork wrote: > Oliver Neukum writes: > > On Sun, 2016-07-03 at 22:24 +0200, Bjørn Mork wrote: > >> Several Lenovo users have reported problems with their Sierra > >> Wireless EM7455 modem. The driver has loaded successfully and > >> the MBIM management chann

kmem_cache_alloc fail with unable to handle paging request after pci hotplug remove.

2016-07-04 Thread Mathias Nyman
Hi AceLan Kao can get his DELL XPS 13 laptop to hang by plugging/un-plugging a USB 3.1 key via thunderbolt port. Allocating memory fails after this, always pointing to NULL pointer or page request failing in get_freepointer() called by kmalloc/kmem_cache_alloc. Unplugging a usb type-c device fr

Re: [PATCH v2] cdc-wdm: fix "out-of-sync" due to missing notifications

2016-07-04 Thread Bjørn Mork
Oliver Neukum writes: > On Mon, 2016-07-04 at 13:54 +0200, Bjørn Mork wrote: >> Oliver Neukum writes: >> >> > If you go for that approack you also need to do it >> > in resume() >> >> Yes, I wondered about that... But I didn't add it because I am unable >> to provoke the problem there, so I c

Re: kmem_cache_alloc fail with unable to handle paging request after pci hotplug remove.

2016-07-04 Thread Rafael J. Wysocki
On Mon, Jul 4, 2016 at 4:26 PM, Mathias Nyman wrote: > Hi > > AceLan Kao can get his DELL XPS 13 laptop to hang by plugging/un-plugging > a USB 3.1 key via thunderbolt port. > > Allocating memory fails after this, always pointing to NULL pointer or > page request failing in get_freepointer() calle

Re: kmem_cache_alloc fail with unable to handle paging request after pci hotplug remove.

2016-07-04 Thread Mathias Nyman
On 04.07.2016 17:25, Rafael J. Wysocki wrote: On Mon, Jul 4, 2016 at 4:26 PM, Mathias Nyman wrote: Hi AceLan Kao can get his DELL XPS 13 laptop to hang by plugging/un-plugging a USB 3.1 key via thunderbolt port. Allocating memory fails after this, always pointing to NULL pointer or page reque

Re: kmem_cache_alloc fail with unable to handle paging request after pci hotplug remove.

2016-07-04 Thread Lukas Wunner
On Mon, Jul 04, 2016 at 06:04:42PM +0300, Mathias Nyman wrote: > On 04.07.2016 17:25, Rafael J. Wysocki wrote: > > On Mon, Jul 4, 2016 at 4:26 PM, Mathias Nyman > > wrote: > > > AceLan Kao can get his DELL XPS 13 laptop to hang by plugging/un-plugging > > > a USB 3.1 key via thunderbolt port. > >

Re: kmem_cache_alloc fail with unable to handle paging request after pci hotplug remove.

2016-07-04 Thread Mathias Nyman
On 04.07.2016 18:21, Lukas Wunner wrote: On Mon, Jul 04, 2016 at 06:04:42PM +0300, Mathias Nyman wrote: On 04.07.2016 17:25, Rafael J. Wysocki wrote: On Mon, Jul 4, 2016 at 4:26 PM, Mathias Nyman wrote: AceLan Kao can get his DELL XPS 13 laptop to hang by plugging/un-plugging a USB 3.1 key v

g_serial looses data in direction from device to host

2016-07-04 Thread Tomáš Vávra
Hello, I am having some difficulties with kernel module Gadget Serial v2.4. g_serial is used on ARM machine BeagleBone Black with Arch Linux 4.6.3-1 which is communicating with host PC. I originally reported it here: bugzilla.kernel.org/show_bug.cgi?id=121441 The problem was reproduced on the

RE: g_serial looses data in direction from device to host

2016-07-04 Thread Andrew Goodbody
> -Original Message- > Hello, > I am having some difficulties with kernel module Gadget Serial v2.4. > g_serial is used on ARM machine BeagleBone Black with Arch Linux 4.6.3-1 > which is communicating with host PC. I originally reported it here: > bugzilla.kernel.org/show_bug.cgi?id=121441

pl2303_read_int_callback - usb_submit_urb failed with result -19

2016-07-04 Thread Malith Yapa
Continuously polling registers with the PL2303 usb serial adapter eventually results in usb_subimit_urb failed with result -19 (ENODEV) but reconnects immediately. occurrences are random. tried with two different PL2303 devices with the same result. -- To unsubscribe from this list: send the line "

Re: g_serial looses data in direction from device to host

2016-07-04 Thread Tomáš Vávra
Thank you for quick reaction. If I understand correctly, then your patch is addressing an issue in musb_host.c. But I reproduced the problem on Windows 10 as a host, so I would expect, that the problem in on the device side with g_serial module. Tomas On 4.7.2016 18:18, Andrew Goodbody wrote:

Re: [PATCH v2] cdc-wdm: fix "out-of-sync" due to missing notifications

2016-07-04 Thread Bjørn Mork
Bjørn Mork writes: > Oliver Neukum writes: >> On Mon, 2016-07-04 at 13:54 +0200, Bjørn Mork wrote: >>> Oliver Neukum writes: >>> > >>> > If you go for that approack you also need to do it >>> > in resume() >>> >>> Yes, I wondered about that... But I didn't add it because I am unable >>> to pr

Re: [PATCHv4 1/2] usb: USB Type-C connector class

2016-07-04 Thread Heikki Krogerus
Hi Guenter, On Sun, Jul 03, 2016 at 02:28:44PM -0700, Guenter Roeck wrote: > On 07/03/2016 12:38 PM, Heikki Krogerus wrote: > > On Fri, Jul 01, 2016 at 07:33:12AM -0700, Guenter Roeck wrote: > > > On Fri, Jul 01, 2016 at 03:05:35PM +0300, Heikki Krogerus wrote: > > > > I've updated my github branc

Re: g_serial looses data in direction from device to host

2016-07-04 Thread Alan Stern
On Mon, 4 Jul 2016, Tomáš Vávra wrote: > Sometime it fails when sending only 1024 B, or similar sized number, > usually 512 B is lost. I also tried to analyze USB packets with > Wireshark and there really was missing packets. But nothing else I could > interpret as a anomaly. Just maybe one thi

Re: [PATCHv4 1/2] usb: USB Type-C connector class

2016-07-04 Thread Guenter Roeck
On 07/04/2016 10:11 AM, Heikki Krogerus wrote: [ ... ] We should not forget also that the userspace can never rely on those details because of the fact that they simply will not always be available. On the other side, not being able to rely on a well defined ABI makes the ABI much less useful.

[PATCH v6 0/1] phy-sun4i-usb: Add support for peripheral-only mode

2016-07-04 Thread Hans de Goede
Hi Kishon, Thanks for merging one of the 2 pending phy-sun4i-usb patches, I see that the other one actually has a conflict after merging in linux-phy/fixes. So here is a rebased version of it. Note can you please make sure this gets into 4.8? I've a musb patch ("usb: musb: sunxi: Simplify dr_mode

[PATCH v6] phy-sun4i-usb: Add support for peripheral-only mode

2016-07-04 Thread Hans de Goede
Use the new of_usb_get_dr_mode_by_phy() function to get the dr_mode from the musb controller node instead of assuming that having an id_det gpio means otg mode, and not having one means host mode. Implement peripheral-only mode by adding a sun4i_usb_phy0_get_id_det helper which looks at the dr_mod

Re: kmem_cache_alloc fail with unable to handle paging request after pci hotplug remove.

2016-07-04 Thread AceLan Kao
Hi, These are logs from my machine. *** Before plug-in the USB key u@u-XPS-13-9xxx:~$ sudo lspci - -s 00:1c.0 00:1c.0 PCI bridge: Intel Corporation Device 9d10 (rev f1) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- Fa

Re: [PATCH v6] phy-sun4i-usb: Add support for peripheral-only mode

2016-07-04 Thread Kishon Vijay Abraham I
Hi Hans, On Tuesday 05 July 2016 02:47 AM, Hans de Goede wrote: > Use the new of_usb_get_dr_mode_by_phy() function to get the dr_mode This API in linux-phy -next still takes a single argument. This patch can go probably in the next -rc cycle. Thanks Kishon > from the musb controller node instea

Re: [PATCH v6 0/1] phy-sun4i-usb: Add support for peripheral-only mode

2016-07-04 Thread Kishon Vijay Abraham I
Hi, On Tuesday 05 July 2016 02:47 AM, Hans de Goede wrote: > Hi Kishon, > > Thanks for merging one of the 2 pending phy-sun4i-usb patches, I see > that the other one actually has a conflict after merging in > linux-phy/fixes. So here is a rebased version of it. > > Note can you please make sure