Re: [PATCH V5] USB: Increment wakeup count on remote wakeup.

2018-04-21 Thread Greg KH
On Fri, Apr 20, 2018 at 11:08:21AM -0700, Ravi Chandra Sadineni wrote: > On chromebooks we depend on wakeup count to identify the wakeup source. > But currently USB devices do not increment the wakeup count when they > trigger the remote wake. This patch addresses the same. > > Resume condition is

Re: [PATCH] usb: musb: Support gadget mode when the port is set to dual role

2018-04-21 Thread Paul Kocialkowski
Hi, Le mardi 03 avril 2018 à 11:29 +0200, Maxime Ripard a écrit : > Hi, > > On Thu, Mar 29, 2018 at 01:57:24PM +0200, Paul Kocialkowski wrote: > > On Thu, 2018-03-29 at 11:23 +0200, Maxime Ripard wrote: > > > On Wed, Mar 28, 2018 at 11:52:13PM +0200, Paul Kocialkowski wrote: > > > > This allows d

Re: [PATCH] usb: musb: Support gadget mode when the port is set to dual role

2018-04-21 Thread Paul Kocialkowski
Hi, Le vendredi 20 avril 2018 à 09:25 -0500, Bin Liu a écrit : > On Thu, Mar 29, 2018 at 01:57:24PM +0200, Paul Kocialkowski wrote: > > Hi, > > > > On Thu, 2018-03-29 at 11:23 +0200, Maxime Ripard wrote: > > > On Wed, Mar 28, 2018 at 11:52:13PM +0200, Paul Kocialkowski wrote: > > > > This allows

Re: [PATCH 2/4] usb: gadget: composite: add function to increment delayed_status

2018-04-21 Thread Laurent Pinchart
Hi Alan, On Friday, 20 April 2018 17:09:57 EEST Alan Stern wrote: > On Thu, 19 Apr 2018, Laurent Pinchart wrote: > > According to include/linux/usb/composite.h, the delayed_status field > > should be protected by cdev->lock, which you should use here. > > > > I've read through the code and found

Re: [PATCH v1 0/2] usb: dwc2: gadget: Fixes for LPM

2018-04-21 Thread Simon Shields
Hi Grigor, On Fri, Apr 20, 2018 at 01:00:16PM +, Grigor Tovmasyan wrote: > Hi Simon, > > On 4/19/2018 8:31 PM, Simon Shields wrote: > > Hi all, > > > > On 10/04/2018 10:21 PM, Grigor Tovmasyan wrote: > >> Here are two little fixes for LPM feature. > >> > >> First one is coverity warning fix.

Re: [PATCH V5] USB: Increment wakeup count on remote wakeup.

2018-04-21 Thread Ravi Chandra Sadineni
Sure. Pushing it to the older kernels will definitely help. Thanks, Ravi On Sat, Apr 21, 2018 at 1:59 AM, Greg KH wrote: > On Fri, Apr 20, 2018 at 11:08:21AM -0700, Ravi Chandra Sadineni wrote: >> On chromebooks we depend on wakeup count to identify the wakeup source. >> But currently USB device

Re: [PATCH] usb: musb: Support gadget mode when the port is set to dual role

2018-04-21 Thread Bin Liu
On Sat, Apr 21, 2018 at 12:59:23PM +0200, Paul Kocialkowski wrote: > Hi, > > Le vendredi 20 avril 2018 à 09:25 -0500, Bin Liu a écrit : > > On Thu, Mar 29, 2018 at 01:57:24PM +0200, Paul Kocialkowski wrote: > > > Hi, > > > > > > On Thu, 2018-03-29 at 11:23 +0200, Maxime Ripard wrote: > > > > On W

Re: [PATCH 2/4] usb: gadget: composite: add function to increment delayed_status

2018-04-21 Thread Alan Stern
On Sat, 21 Apr 2018, Laurent Pinchart wrote: > Hi Alan, > > On Friday, 20 April 2018 17:09:57 EEST Alan Stern wrote: > > On Thu, 19 Apr 2018, Laurent Pinchart wrote: > > > According to include/linux/usb/composite.h, the delayed_status field > > > should be protected by cdev->lock, which you shoul

external USB-Speaker and "Not enough bandwidth for altsetting 1"

2018-04-21 Thread Lucas Clemente Vella
Hi, When I connect my new USB speaker, dmesg is flooded with the following message repeated over and over, and the speaker is not reconized as a sound device: [ 317.492017] xhci_hcd :00:14.0: Trying to add endpoint 0x2 without dropping it. [ 317.492019] usb 3-8: Not enough bandwidth for alt

Re: [RESEND v8 2/2] usb/gadget: Add driver for Aspeed SoC virtual hub

2018-04-21 Thread Benjamin Herrenschmidt
On Thu, 2018-04-19 at 14:40 +1000, Benjamin Herrenschmidt wrote: > The Aspeed BMC SoCs support a "virtual hub" function. It provides some > HW support for a top-level USB2 hub behind which sit 5 gadget "ports". > > This driver adds support for the full functionality, emulating the > hub standard r

Re: Since Linux 4.13 tlp or powertop usage cause "xHCI host controller not responding, assume dead" on Dell 5855

2018-04-21 Thread russianneuromancer
Hello! So far I tested attached patch but didn't tried to revert commit yet, will do next week. Result of running patched kernel with recommended debug options: https://paste.fedoraproject.org/paste/UpezexD~tDmQthoxV2BFbg 16/04/2018 14:55 +0300, Mathias Nyman: > On 10.04.2018 12:15, russianneur