Query on usb super speed function suspend support

2019-03-15 Thread cchiluve
Hi USB team, I have a query regarding the function suspend support on usb gadget drivers. USB super-speed supports function suspend/resume features. It looks like latest kernel usb gadget drivers does not have changes to support function level suspend/resume/remote wakeup features in device

[PATCH] [PATCH] usb: gadget: composite: Fix double free memory bug

2019-03-15 Thread Chandana Kishori Chiluveru
configfs_dev_cleanup function can double free os_desc and buffer when called from different context. For example, this can be called from composite_unbind() and when composite_bind() fails. Fix this issue by setting request and buffer pointer to NULL after kfree. Signed-off-by: Chandana Kishori Ch

Re: REGRESSION: usb: dwc2: gadget: Add scatter-gather mode

2019-03-15 Thread Andrzej Pietrasiewicz
Hi Minas, W dniu 12.03.2019 o 08:54, Minas Harutyunyan pisze: Hi, SB CV MSC tests failed starting from Test Case 6 with BNA interrupt on ep1in. It's first BULK IN transaction after GET MAXLUN. Thank you for reporting. I bisected and identified my own commit 10209abe87f5ebfd482a00323f5236d6

Re: REGRESSION: usb: dwc2: gadget: Add scatter-gather mode

2019-03-15 Thread Andrzej Pietrasiewicz
Hi again, sorry for long lines. Reformatted now. Hi Minas, W dniu 12.03.2019 o 08:54, Minas Harutyunyan pisze: Hi, SB CV MSC tests failed starting from Test Case 6 with BNA interrupt on ep1in. It's first BULK IN transaction after GET MAXLUN. Thank you for reporting. I bisected and identi

Re: [PATCH v3 0/8] usb: typec: fusb302: Various fixes

2019-03-15 Thread Heikki Krogerus
On Mon, Mar 11, 2019 at 11:48:10AM +0100, Hans de Goede wrote: > Hi All, > > Here is v3 of my fusb302 bug-fix series, the main fix in this series > makes active adapters like Type-C to HDMI (often HDMI + USB-3-A) adapters > work when they are to be powered by the Type-C port and thus present both

Re: [PATCH] usb: typec: pi3usb30532: Keep orientation when setting mux to safe mode

2019-03-15 Thread Heikki Krogerus
On Fri, Feb 22, 2019 at 08:22:39PM +0100, Hans de Goede wrote: > Keep the orientation value when setting the mux to safe mode, this > fixes the orientation getting reset when switching alt-modes. > > Signed-off-by: Hans de Goede Acked-by: Heikki Krogerus > --- > drivers/usb/typec/mux/pi3usb30

Re: [PATCH] usb: typec: altmodes/displayport: Fall back to multi-func pins

2019-03-15 Thread Heikki Krogerus
On Mon, Feb 25, 2019 at 01:56:37PM +0100, Hans de Goede wrote: > If our port-partner supports both DP-only operation (pin-assignment C) > and multi-func operation (pin-assignment D) and we only support > pin-assignment D and the port-partner prefers DP-only mode, then > before this commit we would

[PATCH] usb: typec: tcpm: Try PD-2.0 if sink does not respond to 3.0 source-caps

2019-03-15 Thread Hans de Goede
PD 2.0 sinks are supposed to accept src-capabilities with a 3.0 header and simply ignore any src PDOs which the sink does not understand such as PPS but some 2.0 sinks instead ignore the entire PD_DATA_SOURCE_CAP message, causing contract negotiation to fail. This commit fixes such sinks not worki

Re: Problem with USB2 devices connected to a hub

2019-03-15 Thread Mathias Nyman
On 14.3.2019 20.39, Georg Chini wrote: On 14.03.19 15:00, Mathias Nyman wrote: On 14.3.2019 14.38, Georg Chini wrote: Hello, I have a problem with multiple USB2 devices. After purchasing a new motherboard, some USB2 devices (specifically audio devices and bluetooth dongles) do no longer work

Re: [PATCH] usb: typec: tcpm: Try PD-2.0 if sink does not respond to 3.0 source-caps

2019-03-15 Thread Guenter Roeck
On Fri, Mar 15, 2019 at 03:42:19PM +0100, Hans de Goede wrote: > PD 2.0 sinks are supposed to accept src-capabilities with a 3.0 header and > simply ignore any src PDOs which the sink does not understand such as PPS > but some 2.0 sinks instead ignore the entire PD_DATA_SOURCE_CAP message, > causin

Re: Problem with USB2 devices connected to a hub

2019-03-15 Thread Georg Chini
On 15.03.19 15:48, Mathias Nyman wrote: On 14.3.2019 20.39, Georg Chini wrote: On 14.03.19 15:00, Mathias Nyman wrote: On 14.3.2019 14.38, Georg Chini wrote: Hello, I have a problem with multiple USB2 devices. After purchasing a new motherboard, some USB2 devices (specifically audio devices

Re: [PATCH] usb: typec: tcpm: Try PD-2.0 if sink does not respond to 3.0 source-caps

2019-03-15 Thread Hans de Goede
Hi, On 3/15/19 3:57 PM, Guenter Roeck wrote: On Fri, Mar 15, 2019 at 03:42:19PM +0100, Hans de Goede wrote: PD 2.0 sinks are supposed to accept src-capabilities with a 3.0 header and simply ignore any src PDOs which the sink does not understand such as PPS but some 2.0 sinks instead ignore the

Re: [PATCH] usb: typec: tcpm: Try PD-2.0 if sink does not respond to 3.0 source-caps

2019-03-15 Thread Guenter Roeck
On Fri, Mar 15, 2019 at 05:43:05PM +0100, Hans de Goede wrote: > Hi, > > On 3/15/19 3:57 PM, Guenter Roeck wrote: > >On Fri, Mar 15, 2019 at 03:42:19PM +0100, Hans de Goede wrote: > >>PD 2.0 sinks are supposed to accept src-capabilities with a 3.0 header and > >>simply ignore any src PDOs which th