RE: [PATCH] usb: xhci: Fix incomplete PM resume operation due to XHCI commmand timeout

2016-03-20 Thread Rajesh Bhagat
> -Original Message- > From: Alan Stern [mailto:st...@rowland.harvard.edu] > Sent: Friday, March 18, 2016 7:51 PM > To: Rajesh Bhagat > Cc: linux-usb@vger.kernel.org; linux-ker...@vger.kernel.org; > gre...@linuxfoundation.org; mathias.ny...@intel.com; Sriram Dash

RE: [PATCH] usb: xhci: Fix incomplete PM resume operation due to XHCI commmand timeout

2016-03-20 Thread Rajesh Bhagat
> -Original Message- > From: Mathias Nyman [mailto:mathias.ny...@linux.intel.com] > Sent: Friday, March 18, 2016 4:51 PM > To: Rajesh Bhagat ; linux-usb@vger.kernel.org; linux- > ker...@vger.kernel.org > Cc: gre...@linuxfoundation.org; mathias.ny...@intel.com;

Re: [PATCH] lan78xx: Protect runtime_auto check by #ifdef CONFIG_PM

2016-03-20 Thread Guenter Roeck
On 03/20/2016 03:43 AM, Geert Uytterhoeven wrote: If CONFIG_PM=n: drivers/net/usb/lan78xx.c: In function ‘lan78xx_get_stats64’: drivers/net/usb/lan78xx.c:3274: error: ‘struct dev_pm_info’ has no member named ‘runtime_auto’ If PM is disabled, the runtime_auto flag is not available,

Re: [PATCH] lan78xx: Protect runtime_auto check by #ifdef CONFIG_PM

2016-03-20 Thread David Miller
From: Eric Dumazet Date: Sun, 20 Mar 2016 09:35:52 -0700 > On Sun, 2016-03-20 at 11:43 +0100, Geert Uytterhoeven wrote: >> If CONFIG_PM=n: >> >> drivers/net/usb/lan78xx.c: In function ‘lan78xx_get_stats64’: >> drivers/net/usb/lan78xx.c:3274: error: ‘struct

Yet another Seagate quirk for unusual_uas.h

2016-03-20 Thread David Webb
I recently purchased a "Seagate 2TB Expansion Desktop Drive" from a UK store. The unix command 'lsusb -v' shows: idVendor 0x0bc2 Seagate RSS LLC idProduct 0x331a When plugged in this failed to install correctly. The first few lines of the error messages (journalctl -f )

Re: [PATCH] usb: Wait before re-enabling a port that has been disabled due to EMI

2016-03-20 Thread Guido Trentalancia
Hello Greg ! On dom, 2016-03-20 at 10:34 -0700, Greg KH wrote: > On Sun, Mar 20, 2016 at 06:09:57PM +0100, Guido Trentalancia wrote: > >  > > [ 1295.575679] usb 6-2: FTDI USB Serial Device converter now > > attached > > to ttyUSB1 > > [ 1302.204285] usb usb6-port2: disabled by hub (EMI?), re- > >

Re: [PATCH] usb: Wait before re-enabling a port that has been disabled due to EMI

2016-03-20 Thread Greg KH
On Sun, Mar 20, 2016 at 06:09:57PM +0100, Guido Trentalancia wrote: > Hello. > > Considering that EM interference can last for a while (generally up to > seconds), I am currently testing the following patch for module usbcore > so that it is possible to specify an amount of time to wait before >

Re: PROBLEM: Osprey 2 Mini sometimes resets every 200ms forever

2016-03-20 Thread Alan Stern
On Thu, 17 Mar 2016, ais523 wrote: > > There's no question about it -- your problem is caused by a buggy > > device. > > This actually doesn't surprise me at all; I became suspicious when I > saw that the serial number was 0123456789ABCDEF rather than something > that looked more like a serial

[PATCH] usb: Wait before re-enabling a port that has been disabled due to EMI

2016-03-20 Thread Guido Trentalancia
Hello. Considering that EM interference can last for a while (generally up to seconds), I am currently testing the following patch for module usbcore so that it is possible to specify an amount of time to wait before trying to re-enable a port that has been previously disabled by the hub

Re: [PATCH] lan78xx: Protect runtime_auto check by #ifdef CONFIG_PM

2016-03-20 Thread Eric Dumazet
On Sun, 2016-03-20 at 11:43 +0100, Geert Uytterhoeven wrote: > If CONFIG_PM=n: > > drivers/net/usb/lan78xx.c: In function ‘lan78xx_get_stats64’: > drivers/net/usb/lan78xx.c:3274: error: ‘struct dev_pm_info’ has no member > named ‘runtime_auto’ > > If PM is disabled, the runtime_auto

Re: usb: dwc2: Kernel 4.5 and socfpga problem

2016-03-20 Thread Dinh Nguyen
On 03/17/2016 09:35 PM, Phil Reid wrote: > G'day, > > Has anyone successful run the usb dwc2 from kenerl 4.5 on an socfpga. > Yes. I just tested on the devkit and USB is working fine: [0.655761] ffb4.usb supply vusb_d not found, using dummy regulator [0.662384] ffb4.usb supply

Re: [PATCH] uas: Limit qdepth at the scsi-host level

2016-03-20 Thread Hans de Goede
Hi, On 19-03-16 18:06, James Bottomley wrote: On Sat, 2016-03-19 at 09:59 +0100, Hans de Goede wrote: Commit 64d513ac31bd ("scsi: use host wide tags by default") causes the scsi-core to queue more cmnds then we can handle on devices with multiple LUNs, limit the qdepth at the scsi-host level

[PATCH] usb: xhci: Fix incomplete PM resume operation due to XHCI commmand timeout

2016-03-20 Thread Rajesh Bhagat
We are facing issue while performing the system resume operation from STR where XHCI is going to indefinite hang/sleep state due to wait_for_completion API called in function xhci_alloc_dev for command TRB_ENABLE_SLOT which never completes. Now, xhci_handle_command_timeout function is called and

Re: [GIT PULL] USB driver patches for 4.6-rc1

2016-03-20 Thread Peter Chen
On Fri, Mar 18, 2016 at 04:01:51PM -0700, Linus Torvalds wrote: > On Fri, Mar 18, 2016 at 3:51 PM, Linus Torvalds > wrote: > > > > The commit that ends up being marked bad is odd, but there it is: > > 69bec7259853 "USB: core: let USB device know device node". > >

RE: [PATCH] usb: chipidea: Configure DMA properties and ops from DT

2016-03-20 Thread Rajesh Bhagat
> -Original Message- > From: Peter Chen [mailto:hzpeterc...@gmail.com] > Sent: Friday, March 18, 2016 7:24 AM > To: Arnd Bergmann > Cc: Li Yang ; Bjorn Andersson > ; > Peter Chen ; Greg Kroah-Hartman >

[PATCH] cypress_m8: add sanity checking

2016-03-20 Thread Oliver Neukum
An attack using missing endpoints exists. CVE-2016-3137 Signed-off-by: Oliver Neukum CC: sta...@vger.kernel.org --- drivers/usb/serial/cypress_m8.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c index

[PATCH v2 01/11] ARM: davinci: defined missing CFGCHIP2_REFFREQ_* macros for MUSB PHY

2016-03-20 Thread David Lechner
From: Petr Kulhavy Only few MUSB PHY reference clock frequencies were defined. This patch defines macros for the missing frequencies: 19.2MHz, 38.4MHz, 13MHz, 26MHz, 20MHz, 40MHz Signed-off-by: Petr Kulhavy . Acked-by: Sergei Shtylyov

Re: [PATCH v2] usb/core: usb_alloc_dev(): fix setting of ->portnum

2016-03-20 Thread Peter Chen
On Fri, Mar 18, 2016 at 10:13:34AM -0400, Alan Stern wrote: > On Thu, 17 Mar 2016, Nicolai Stange wrote: > > > With commit 69bec7259853 ("USB: core: let USB device know device node"), > > the port1 argument of usb_alloc_dev() gets overwritten as follows: > > > > ... usb_alloc_dev(..., unsigned

[PATCH] lan78xx: Protect runtime_auto check by #ifdef CONFIG_PM

2016-03-20 Thread Geert Uytterhoeven
If CONFIG_PM=n: drivers/net/usb/lan78xx.c: In function ‘lan78xx_get_stats64’: drivers/net/usb/lan78xx.c:3274: error: ‘struct dev_pm_info’ has no member named ‘runtime_auto’ If PM is disabled, the runtime_auto flag is not available, but auto suspend is not enabled anyway. Hence protect

Re: rtl8xxxu 4.4.5(from f23): I get a panic adding a new device to the driver

2016-03-20 Thread Greg KH
On Thu, Mar 17, 2016 at 09:01:25PM +0100, poma wrote: > On 17.03.2016 19:02, Jes Sorensen wrote: > > Jes Sorensen writes: > >> Xose Vazquez Perez writes: > >>> Hi, > >>> > >>> If I do: > >>> # echo "0bda 8176" >

[PATCH v4 4/7] usb: mux: add driver for Intel gpio controlled port mux

2016-03-20 Thread Lu Baolu
In some Intel platforms, a single usb port is shared between USB host and device controller. The shared port is under control of GPIO pins. This patch adds the support for USB GPIO controlled port mux. Signed-off-by: David Cohen Signed-off-by: Lu Baolu

Re: [PATCH v10 3/9] dt-bindings: phy: tegra-xusb-padctl: Add Tegra210 support

2016-03-20 Thread Stephen Warren
On 03/04/2016 09:19 AM, Thierry Reding wrote: From: Thierry Reding Extend the binding to cover the set of feature found in Tegra210. Acked-by: Stephen Warren diff --git a/Documentation/devicetree/bindings/phy/nvidia,tegra124-xusb-padctl.txt

[PATCH v2 02/11] ARM: davinci: add set_parent callback for mux clocks

2016-03-20 Thread David Lechner
Introduce a set_parent callback that will be used for mux clocks, such as the USB PHY muxes and the async3 clock domain mux. Signed-off-by: David Lechner --- v2 changes: This is a new patch in v2. arch/arm/mach-davinci/clock.c | 17 -

[PATCH v1 3/5] usb: gadget: pch_udc: enable MSI if hardware supports

2016-03-20 Thread Andy Shevchenko
Try to enable MSI in case hardware supports it. At least Intel Quark is known SoC which indeed does. Signed-off-by: Andy Shevchenko --- drivers/usb/gadget/udc/pch_udc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/gadget/udc/pch_udc.c

[PATCH v7 1/4] gadget: Introduce the usb charger framework

2016-03-20 Thread Baolin Wang
This patch introduces the usb charger driver based on usb gadget that makes an enhancement to a power driver. It works well in practice but that requires a system with suitable hardware. The basic conception of the usb charger is that, when one usb charger is added or removed by reporting from

Re: problems with cp210x

2016-03-20 Thread Greg KH
On Fri, Mar 18, 2016 at 10:25:29AM +0100, walter harms wrote: > > > Am 17.03.2016 18:04, schrieb Greg KH: > > On Thu, Mar 17, 2016 at 05:41:13PM +0100, walter harms wrote: > >> > >> > >> Am 29.02.2016 17:10, schrieb Greg KH: > >>> On Mon, Feb 29, 2016 at 02:47:45PM +0100, walter harms wrote: >

Re: [PATCH v7 0/4] Introduce usb charger framework to deal with the usb gadget power negotation

2016-03-20 Thread Baolin Wang
On 16 March 2016 at 19:20, Mark Brown wrote: > On Wed, Mar 16, 2016 at 01:05:27PM +0200, Felipe Balbi wrote: >> Mark Brown writes: >> > On Mon, Feb 29, 2016 at 11:22:12PM +0900, Mark Brown wrote: >> >> On Mon, Jan 04, 2016 at 11:04:26AM +0800, Baolin Wang

Build failure in mainline kernel due to 'lan78xx: add ndo_get_stats64'

2016-03-20 Thread Guenter Roeck
Hi, your commit a59f8c5b048 ("lan78xx: add ndo_get_stats64") is causing the following build failure if CONFIG_PM is not enabled. drivers/net/usb/lan78xx.c: In function 'lan78xx_get_stats64': drivers/net/usb/lan78xx.c:3274:27: error: 'struct dev_pm_info' has no member named 'runtime_auto'