[PATCH v3 0/3] usb: core: lpm: add sysfs node for usb3 lpm permit

2015-11-14 Thread Lu Baolu
Hi, This patch series is about to add a sysfs attribute, through which users can disable or enable USB3 LPM (link power management) from a USB port. Once LPM is disabled from the USB port, LPM between the downstreaming device and the hub port will not be activated. This helps users to use any LPM-

[PATCH v3 2/3] usb: core: lpm: add sysfs node for usb3 lpm permit

2015-11-14 Thread Lu Baolu
USB3 LPM is default on in Linux kernel if both xHCI host controller and the USB devices declare to be LPM-capable. Unfortunately, some devices are known to work well with LPM disabled, but to be broken if LPM is enabled, although it declares the LPM capability. Users won't be able to use this kind

[PATCH v3 3/3] usb: core: lpm: remove usb3_lpm_enabled in usb_device

2015-11-14 Thread Lu Baolu
Commit 8306095fd2c1 ("USB: Disable USB 3.0 LPM in critical sections.") adds usb3_lpm_enabled member to struct usb_device. There is no reference to this member now. Hence, it could be removed. Signed-off-by: Lu Baolu --- include/linux/usb.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/inc

[PATCH v3 1/3] usb: core: lpm: fix usb3_hardware_lpm sysfs node

2015-11-14 Thread Lu Baolu
Commit 655fe4effe0f ("usbcore: add sysfs support to xHCI usb3 hardware LPM") introduced usb3_hardware_lpm sysfs node. This doesn't show the correct status of USB3 U1 and U2 LPM status. This patch fixes this by replacing usb3_hardware_lpm with two nodes, usb3_hardware_lpm_u1 (for U1) and usb3_hardw

Re: Broken usb stick after plug it on an usb port?

2015-11-14 Thread Emma
Hello, On Mon, Nov 9, 2015 at 9:52 AM, Bjørn Mork wrote: > Javi Barroso writes: >> El 6 de noviembre de 2015 0:28:40 CET, Greg KH escribió: >>>On Thu, Nov 05, 2015 at 06:03:15PM +0100, Javier Barroso wrote: Hello, I have a usb stick which was (apparently) broken after plug it on

Re: USB Device needs to be unplugged and plugged in to work

2015-11-14 Thread Peter Stuge
Jose Colmenares wrote: > If the computer starts, and the IMU is already plugged in, I have > to unplug it and plug it again. This is unacceptable because the > IMU will be used in a robot, so we cannot just unplug it every time > the robot starts. In a prototype you could work around this problem

Re: Page allocation failure

2015-11-14 Thread Alan Stern
On Fri, 13 Nov 2015, Steinar H. Gunderson wrote: > On Fri, Nov 13, 2015 at 04:02:48PM -0500, Alan Stern wrote: > >> So what is the road from here? I guess the original questions about cache > >> coherency still apply, and that this is what I'm seeing in dmesg. > > What questions? It should be obv

Re: Page allocation failure

2015-11-14 Thread Steinar H. Gunderson
On Sat, Nov 14, 2015 at 12:09:38PM -0500, Alan Stern wrote: > And you probably couldn't use GPU memory for this purpose because (I > assume) the USB host controller wouldn't be able to access it via DMA. I guess that depends a bit; on my particular system, I'm using an Intel GPU, so memory is shar

Re: [RFC] usb: dwc2: hcd: fix split schedule issue

2015-11-14 Thread Alan Stern
On Fri, 13 Nov 2015, Doug Anderson wrote: > To handle things smarter, I think I need to research how to deal with > hubs attached to hubs attached to hubs. For instance: > > dwc2 > -> multi_tt hub > -> single_tt hub > -> device 1 > -> device 2 > -> single_tt hub >

Re: Page allocation failure

2015-11-14 Thread Alan Stern
On Sat, 14 Nov 2015, Steinar H. Gunderson wrote: > On Sat, Nov 14, 2015 at 12:09:38PM -0500, Alan Stern wrote: > > And you probably couldn't use GPU memory for this purpose because (I > > assume) the USB host controller wouldn't be able to access it via DMA. > > I guess that depends a bit; on my

Re: at91sam9x5: USB mass storage gadget problems

2015-11-14 Thread Douglas Gilbert
On 15-11-12 05:18 PM, Alan Stern wrote: On Thu, 12 Nov 2015, Douglas Gilbert wrote: Yes, the X201 has USB 2.0 host ports. It is running a stock Ubuntu 15.10 kernel: 4.2.0-18-generic and the log indicates that the ehci_pci driver is being used. Part of the X201's syslog is attached in which a dr

Re: at91sam9x5: USB mass storage gadget problems

2015-11-14 Thread Boris Brezillon
Hi Douglas, On Sat, 14 Nov 2015 14:15:30 -0500 Douglas Gilbert wrote: > On 15-11-12 05:18 PM, Alan Stern wrote: > > On Thu, 12 Nov 2015, Douglas Gilbert wrote: > > > >> Yes, the X201 has USB 2.0 host ports. It is running a stock Ubuntu > >> 15.10 kernel: 4.2.0-18-generic and the log indicates th

Re: [PATCHv3 00/14] Equivalent of tcm_usb_gadget with configfs

2015-11-14 Thread Nicholas A. Bellinger
Hi Andrzej & Co, Apologies for the delayed follow up on this series. On Tue, 2015-10-27 at 10:39 +0100, Andrzej Pietrasiewicz wrote: > Dear All, > > This series adds support to tcm usb gadget for composing it with configfs. > > @target-devel folks: You might be wondering why add configfs for so

[PATCH] Atmel USB High speed device port, speed fix

2015-11-14 Thread Douglas Gilbert
Following changes that appeared in lk 4.0.0, the gadget udc driver for some ARM based Atmel SoCs (e.g. at91sam9x5 and sama5d3 families) incorrectly deduced full-speed USB link speed even when the hardware had negotiated a high-speed link. The fix is to make sure that the UDPHS Interrupt Enable Reg