RE: [PATCH] usb: dwc3: Fix assignment of EP transfer resources

2016-02-09 Thread B, Ravi
Hi John >-Original Message- >From: John Youn [mailto:john.y...@synopsys.com] >Sent: Wednesday, February 10, 2016 1:25 AM >To: Felipe Balbi; B, Ravi >Cc: john.y...@synopsys.com; linux-usb@vger.kernel.org >Subject: [PATCH] usb: dwc3: Fix assignment of EP transfer resources >The assignement

[PATCH] ARM: dts: ls1043a: Add quirk for Erratum A009116

2016-02-09 Thread Rajesh Bhagat
Add "snps,quirk-frame-length-adjustment" property to USB3 node for erratum A009116. This property provides value of GFLADJ_30MHZ for post silicon frame length adjustment. Signed-off-by: Rajesh Bhagat --- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 3 +++ 1 file changed, 3 insertions(+) d

Re: usb 3.0 external enclosure failure

2016-02-09 Thread Lars Melin
On 2016-02-10 04:52, Dimitrije Muzur wrote: This happens every time i connect Lc Power LC-25U3-7W (it has asmedia 1053e chip inside) external enclosure with Seagate ST500LT0 12-9WS142 disk inside. Everything works perfectly when connected to USB 2.0 port but when its connected to usb 3.0 i get r

Re: [PATCH v6 0/22] usb: dwc2: host: Fix and speed up all the stuff, especially with splits

2016-02-09 Thread John Youn
On 2/3/2016 10:24 AM, Doug Anderson wrote: > John, > > On Tue, Feb 2, 2016 at 3:57 PM, John Youn wrote: >> On 1/28/2016 6:20 PM, Douglas Anderson wrote: >>> This is a bit of catchall series for all the bug fix and performance >>> patches I've been working on over the last few months. Note that f

Re: [PATCH v6 10/22] usb: dwc2: host: Properly set the HFIR

2016-02-09 Thread John Youn
On 1/31/2016 2:19 PM, Doug Anderson wrote: > Kever, > > On Sun, Jan 31, 2016 at 1:23 AM, Kever Yang wrote: >> Doug, >> >> On 01/29/2016 10:20 AM, Douglas Anderson wrote: >>> >>> According to the most up to date version of the dwc2 databook, the FRINT >>> field of the HFIR register should be progr

[PATCH v3 1/2] usbip: vhci number of ports extension

2016-02-09 Thread Nobuo Iwata
This patch extends number of ports limitation in application (vhci) side. To do so, vhci driver supports multiple host controllers. The number of controllers can be specified as a module parameter 'num_controllers'. The default is 1. ex) # insmod vhci_hcd.ko num_controllers=4 Also, ports per

[PATCH v3 2/2] usbip: single thread event handler

2016-02-09 Thread Nobuo Iwata
This patch reduces number of event handling threads to one. In existing implementation, event kernel threads are created for each port. The functions of the threads are terminationg connection and error handling. It's too expensive to have to each port. With this patch, event handler is a singl

[PATCH v3 0/2] usbip: vhci number of ports extension

2016-02-09 Thread Nobuo Iwata
This series of patches extends number of ports limitaion in application (vhci) side. 0. Version info v3) # Fixed conflicts against linux-next 20160209. # Changed sysfs object and attribute name for old tools compatibility. # Changed nports status format not to include num_controllers value

[PATCH v7 3/3] usbip: safe completion against usb_kill_urb()

2016-02-09 Thread Nobuo Iwata
stub_shutdown_connection() : drivers/usb/usbip/stub_dev.c stub_device_cleanup_urbs() : drivers/usb/usbip/stub_main.c requests to kill pending URBs and clears priv lists. stub_complete() : drivers/usb/usbip/stub_tx.c might be called with URBs to have been requested to kill. To avoid kernel

[PATCH v7 1/3] usbip: exporting devices

2016-02-09 Thread Nobuo Iwata
USB/IP supports a function to import USB devices from application-side machine by attach command. The usage is as following. dev:# (Physically attach your USB device.) dev:# insmod usbip-core.ko and usbip-host.ko dev:# usbipd -D // Start usbip daemon. dev:# usbip list -l // List local USB devices

[PATCH v7 2/3] usbip: readme and manuals about exporting devices

2016-02-09 Thread Nobuo Iwata
This patch adds function and usage of export to README and manuals. The wording, 'server' and 'client' are changed. For existing attach command, the daemon runs device side machine and attach command is executed in application side machine. Then 'server' is used for device side and 'client' is

[PATCH v7 0/3] usbip: exporting devices

2016-02-09 Thread Nobuo Iwata
Dear all, This series of patches introduces exporting devices. This series is divided from "USB/IP over WebSocket" patch set. Rest of the set will be sent as another series. 0. Version info v7) # Removed userspace transmission and WebSocket command/daemon. # Fixed checkpatch errors and warnings

[PATCH] ARM: dts: ls2080a: Add quirk for Erratum A009116

2016-02-09 Thread Lijun Pan
Add "snps,quirk-frame-length-adjustment" property to USB3 node for erratum A009116. This property provides value of GFLADJ_30MHZ for post silicon frame length adjustment. Signed-off-by: Lijun Pan --- arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi |2 ++ 1 file changed, 2 insertions(+) diff

[PATCH] usb: fsl: fix typo FLS_USB2_WORKAROUND_ENGCM09152

2016-02-09 Thread Lijun Pan
FLS_USB2_WORKAROUND_ENGCM09152 is a typo. It should be FSL_USB2_WORKAROUND_ENGCM09152 since FSL is the abbreviation of Freescale. Signed-off-by: Lijun Pan --- arch/arm/mach-imx/mach-mx35_3ds.c|2 +- arch/arm/mach-imx/mach-vpr200.c |2 +- drivers/usb/gadget/udc/fsl_mxc_udc.c |

Re: [RFC v5 07/15] usb: ehci: add vbus-gpio parameter

2016-02-09 Thread Antony Pavlov
On Tue, 9 Feb 2016 23:15:20 +0100 Alban wrote: > On Tue, 9 Feb 2016 11:13:53 +0300 > Antony Pavlov wrote: > > > This patch retrieves and configures the vbus control gpio via > > the device tree. > > Wouldn't using a regulator be better than hard coding the GPIO case? > Marek Vasut has noted

Re: [RFC v5 07/15] usb: ehci: add vbus-gpio parameter

2016-02-09 Thread Alban
On Tue, 9 Feb 2016 11:13:53 +0300 Antony Pavlov wrote: > This patch retrieves and configures the vbus control gpio via > the device tree. Wouldn't using a regulator be better than hard coding the GPIO case? Alban -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the bo

Re: [PATCH] usb: dwc3: Fix assignment of EP transfer resources

2016-02-09 Thread John Youn
On 2/9/2016 12:06 PM, Felipe Balbi wrote: > > Hi John, > > John Youn writes: >> The assignement of EP transfer resources was not handled properly in the >> dwc3 driver. Commit aebda6187181 ("usb: dwc3: Reset the transfer >> resource index on SET_INTERFACE") previously fixed one aspect of this >>

usb 3.0 external enclosure failure

2016-02-09 Thread Dimitrije Muzur
This happens every time i connect Lc Power LC-25U3-7W (it has asmedia 1053e chip inside) external enclosure with Seagate ST500LT0 12-9WS142 disk inside. Everything works perfectly when connected to USB 2.0 port but when its connected to usb 3.0 i get repeated i/o errors continuous mounting and tha

Re: [Bug 112171] UBSAN: Undefined behaviour in drivers/usb/host/ehci-hub.c:873:47

2016-02-09 Thread Greg KH
On Tue, Feb 09, 2016 at 12:41:37PM +0800, Yaroslav Molochko wrote: > After upgrade to 4.5.0-rc3 I've got following stack trace, never seen > that before: > > Feb 08 22:58:56 x kernel: UBSAN: Undefined behaviour in > d

Re: Increasing TRBS_PER_SEGMENT causes DMAR/PTE faults

2016-02-09 Thread linux-usb
On Fri, Aug 07, 2015 at 05:39:55PM +0300, Mathias Nyman wrote: > > On 07.08.2015 15:40, linux-...@andraxin.se wrote: > > Hi there, > > Hi Hi again (a few months later, when I finally found some time) > > Moving from 4.0.4 to 4.0.5, my USB 3.0 controller became practically useless > > (and this

Re: [PATCH] usb: dwc3: Fix assignment of EP transfer resources

2016-02-09 Thread Felipe Balbi
Hi John, John Youn writes: > The assignement of EP transfer resources was not handled properly in the > dwc3 driver. Commit aebda6187181 ("usb: dwc3: Reset the transfer > resource index on SET_INTERFACE") previously fixed one aspect of this > where resources may be exhausted with multiple calls

Re: [PATCHv2] net2280.h: fix endpoint max packet for super speed connections

2016-02-09 Thread Greg KH
On Tue, Feb 09, 2016 at 09:19:46AM +, Simon Appleby wrote: > This patch fixes the register offset used for super-speed connection's > max packet size. Without it using the 338x series of devices in enhanced > mode will only allow full or high speed operation to function correctly. > > Signed-o

[PATCH] usb: dwc3: Fix assignment of EP transfer resources

2016-02-09 Thread John Youn
The assignement of EP transfer resources was not handled properly in the dwc3 driver. Commit aebda6187181 ("usb: dwc3: Reset the transfer resource index on SET_INTERFACE") previously fixed one aspect of this where resources may be exhausted with multiple calls to SET_INTERFACE. However, it introduc

"reset full-speed USB device number 6 using ehci-pci" with Dell Inspiron 15R 5537

2016-02-09 Thread Dâniel Fraga
I'm using Linux 4.4.1 kernel on a Dell Inspiron 15R 5537 and everytime I wake up from S3 sleep, the syslog is full of the following message: Feb 9 17:19:05 tux kernel: [19196.253206] usb 3-1.6: reset full-speed USB device number 6 using ehci-pci Feb 9 17:19:05 tux kernel: [19196.406206]

Re: Announcement: Launching soon Open Source USB Type-C Probe

2016-02-09 Thread Kartik Raghavan
On Tue, Feb 9, 2016 at 11:47 PM, Greg KH wrote: > On Tue, Feb 09, 2016 at 10:58:30PM +0530, Kartik Raghavan wrote: >> USB C-thru is launching soon on the crowd funding platform >> crowdsupply.com (https://www.crowdsupply.com/goarks/usb-c-thru/). >> >> USB C-thru is an Open Source USB Type-C probe.

Re: [PATCHv2 1/2] usb: dwc3: pci: use build-in properties instead of platform data

2016-02-09 Thread John Youn
On 2/9/2016 5:51 AM, Heikki Krogerus wrote: > Hi, > >> I can reproduce this now when the device does not have primary fwnode >> (of_node or ACPI). Everything seems to work fine if there is the >> primary fwnode and when the build-in properties are used as the >> secondary fwnode (fallback). >> >>

Re: [RFC][PATCH] usb: gadget: u_ether: Add workqueue as bottom half handler for rx data path

2016-02-09 Thread Greg Kroah-Hartman
On Tue, Feb 09, 2016 at 10:17:46PM +0530, Amit Pundir wrote: > On 9 February 2016 at 04:50, Greg Kroah-Hartman > wrote: > > On Tue, Feb 09, 2016 at 02:07:02AM +0530, Amit Pundir wrote: > >> Please ignore this one too. I should have build tested these patches > >> individually and not in particular

Re: [PATCH 3/3] usb: type-c: UCSI ACPI driver

2016-02-09 Thread Greg KH
On Tue, Feb 09, 2016 at 07:01:23PM +0200, Heikki Krogerus wrote: > Driver for ACPI enumerated UCSI devices. What does this mean? What does the driver do? Why would we care? > > Signed-off-by: Heikki Krogerus > --- > drivers/usb/type-c/Kconfig | 10 > drivers/usb/type-c/Makefile

Re: [PATCH 2/3] usb: type-c: USB Type-C Connector System Software Interface

2016-02-09 Thread Greg KH
On Tue, Feb 09, 2016 at 07:01:22PM +0200, Heikki Krogerus wrote: > USB Type-C Connector System Software Interface (UCSI) is a > specification that defines registers and data structures > used to interface with the USB Type-C connectors on a system. > > The specification is public and available at:

Re: [PATCH 1/3] usb: USB Type-C Connector Class

2016-02-09 Thread Greg KH
On Tue, Feb 09, 2016 at 07:01:21PM +0200, Heikki Krogerus wrote: > The purpose of this class is to provide unified interface > for user space to get the status and basic information about > USB Type-C Connectors in the system, control data role > swapping, and when USB PD is available, also power r

Re: Announcement: Launching soon Open Source USB Type-C Probe

2016-02-09 Thread Greg KH
On Tue, Feb 09, 2016 at 10:58:30PM +0530, Kartik Raghavan wrote: > USB C-thru is launching soon on the crowd funding platform > crowdsupply.com (https://www.crowdsupply.com/goarks/usb-c-thru/). > > USB C-thru is an Open Source USB Type-C probe. This is a non intrusive > 6 layer board that monitors

Announcement: Launching soon Open Source USB Type-C Probe

2016-02-09 Thread Kartik Raghavan
USB C-thru is launching soon on the crowd funding platform crowdsupply.com (https://www.crowdsupply.com/goarks/usb-c-thru/). USB C-thru is an Open Source USB Type-C probe. This is a non intrusive 6 layer board that monitors USB Type-C signals. Documentation on this is available at (https://github.

[PATCH 1/3] usb: USB Type-C Connector Class

2016-02-09 Thread Heikki Krogerus
The purpose of this class is to provide unified interface for user space to get the status and basic information about USB Type-C Connectors in the system, control data role swapping, and when USB PD is available, also power role swapping and Altenate Modes. The class will export the following int

[PATCH 0/3] usb: USB Type-C Class and driver for UCSI

2016-02-09 Thread Heikki Krogerus
Hi, The OS, or more precisely the user space, needs to be able to control a few things regarding USB Type-C ports. The first thing that must be allowed to be controlled is the data role. USB Type-C ports will select the data role randomly with DRP ports. When USB PD is supported, also independent

[PATCH 3/3] usb: type-c: UCSI ACPI driver

2016-02-09 Thread Heikki Krogerus
Driver for ACPI enumerated UCSI devices. Signed-off-by: Heikki Krogerus --- drivers/usb/type-c/Kconfig | 10 drivers/usb/type-c/Makefile| 1 + drivers/usb/type-c/ucsi_acpi.c | 133 + 3 files changed, 144 insertions(+) create mode 100644 dr

[PATCH 2/3] usb: type-c: USB Type-C Connector System Software Interface

2016-02-09 Thread Heikki Krogerus
USB Type-C Connector System Software Interface (UCSI) is a specification that defines registers and data structures used to interface with the USB Type-C connectors on a system. The specification is public and available at: http://www.intel.com/content/www/us/en/io/universal-serial-bus/usb-type-c-

Re: [RFC][PATCH] usb: gadget: u_ether: Add workqueue as bottom half handler for rx data path

2016-02-09 Thread Amit Pundir
On 9 February 2016 at 04:50, Greg Kroah-Hartman wrote: > On Tue, Feb 09, 2016 at 02:07:02AM +0530, Amit Pundir wrote: >> Please ignore this one too. I should have build tested these patches >> individually and not in particular series. I'll resend this patch. > > Send them in a numbered series so

Spansion's CMSIS-DAP + COM Port

2016-02-09 Thread Thorsten Wilmer
Hi, I have a Starter Kit SK-FM4-176L-S6SE2CC modprobe usbserial vendor=0x1a6a product=0x2000 makes the USB Port appear nicely (works with gtkterm) and at the same time one can use the CMIS-DAP adapter with openocd. As suggested by the driver I would like to recommend the vendor/product IDs to

Re: [PATCH 0/2] Two phy-twl4030-usb fixes for unloading the module

2016-02-09 Thread Tony Lindgren
* Kishon Vijay Abraham I [160208 21:13]: > Hi Tony, > > On Tuesday 09 February 2016 01:21 AM, Tony Lindgren wrote: > > Hi Kishon, > > > > * Tony Lindgren [151130 21:40]: > >> Hi, > >> > >> Here are two fixes for rmmod and PM. These can be merged separately after > >> the review from the MUSB re

Re: usb: musb: slower system resume

2016-02-09 Thread Vishal Thanki
On Mon, Feb 08, 2016 at 08:44:19PM +0200, Felipe Balbi wrote: > > Hi, > > Vishal Thanki writes: > > It is vanilla kernel v4.0, except for some ASoC patches and v5 of Dave's PM > > series from kernel v3.19-rc5 rebased to it. > > Care to try *real* vanilla v4.4 instead ? v4.5-rc3 would be even >

Re: [PATCHv2 1/2] usb: dwc3: pci: use build-in properties instead of platform data

2016-02-09 Thread Heikki Krogerus
Hi, > I can reproduce this now when the device does not have primary fwnode > (of_node or ACPI). Everything seems to work fine if there is the > primary fwnode and when the build-in properties are used as the > secondary fwnode (fallback). > > This is a regression in drivers/base/property.c. Than

[PATCH 2/2] USB: musb: DA8xx: Add DT support for the DA8xx driver

2016-02-09 Thread Petr Kulhavy
Adds DT support for the TI DA830 and DA850 USB driver. Signed-off-by: Petr Kulhavy --- drivers/usb/musb/da8xx.c | 136 +++ drivers/usb/musb/musb_core.c | 24 drivers/usb/musb/musb_core.h | 2 + 3 files changed, 162 insertions(+) diff --git

Re: [RFC v5 07/15] usb: ehci: add vbus-gpio parameter

2016-02-09 Thread Marek Vasut
On Tuesday, February 09, 2016 at 09:13:53 AM, Antony Pavlov wrote: > This patch retrieves and configures the vbus control gpio via > the device tree. > > This patch is based on a ehci-s5p.c commit fd81d59c90d38661 > ("USB: ehci-s5p: Add vbus setup function to the s5p ehci glue layer"). > > Signed

Re: [PATCH v2 2/2] usb: musb: Fix DMA desired mode for Mentor DMA engine

2016-02-09 Thread Sergei Shtylyov
Hello. On 2/9/2016 1:15 AM, Joshua Henderson wrote: From: Cristian Birsan Commit 754fe4a92c07 ("usb: musb: Remove ifdefs for TX DMA for musb_host.c") introduces a problem setting the desired channel mode for the Mentor DMA engine. There is a case where the pointer of the channel DMA mode is

Re: [PATCH v2 1/2] usb: musb: Fix DMA for host mode

2016-02-09 Thread Sergei Shtylyov
On 2/9/2016 1:15 AM, Joshua Henderson wrote: From: Cristian Birsan Commit ac33cdb16681 ("usb: musb: Remove ifdefs for musb_host_rx in musb_host.c part5") introduces a problem setting DMA host mode. This commit fixes the done condition that advances the musb schedule. Without this patch the th

Re: [PATCH 1/1] Drivers: USB: DA8xx MUSB: added DT support

2016-02-09 Thread Sergei Shtylyov
On 2/9/2016 11:30 AM, Petr Kulhavy wrote: I have prepared the patch as per you comments. Unfortunately I cannot use the 4.5 kernel from Felipe's repo as the of_usb_get_dr_mode() has been replaced with of_usb_get_dr_mode_by_phy() which requires a PHY node, which does not exist for DA8xx as we dis

Re: [PATCH v6 17/22] usb: dwc2: host: Manage frame nums better in scheduler

2016-02-09 Thread Herrero, Gregory
Hi Doug, > Hi, > > On Thu, Jan 28, 2016 at 6:20 PM, Douglas Anderson > wrote: > > static void dwc2_qh_init(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, > > struct dwc2_hcd_urb *urb) > > { > > @@ -569,11 +655,6 @@ static void dwc2_qh_init(struct dwc2_hsotg *hsotg, >

gadgetfs WARNING at drivers/usb/gadget/udc/dummy_hcd.c:674

2016-02-09 Thread Vegard Nossum
Hi again Marek, With your two patches on top of latest mainline I've run into this warning: gadgetfs: connected gadgetfs: disconnected [ cut here ] WARNING: CPU: 0 PID: 35 at drivers/usb/gadget/udc/dummy_hcd.c:674 dummy_free_request+0x92/0xa0() CPU: 0 PID: 35 Comm: afl-

Re: [PATCHv2 1/2] usb: dwc3: pci: use build-in properties instead of platform data

2016-02-09 Thread Heikki Krogerus
> > diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dwc3/dwc3-pci.c > > index d064ba8..22cd49b 100644 > > --- a/drivers/usb/dwc3/dwc3-pci.c > > +++ b/drivers/usb/dwc3/dwc3-pci.c > > @@ -47,6 +47,14 @@ static const struct acpi_gpio_mapping > > acpi_dwc3_byt_gpios[] = { > > > > static int

[PATCHv2] net2280.h: fix endpoint max packet for super speed connections

2016-02-09 Thread Simon Appleby
This patch fixes the register offset used for super-speed connection's max packet size. Without it using the 338x series of devices in enhanced mode will only allow full or high speed operation to function correctly. Signed-off-by: Simon Appleby --- linux/drivers/usb/gadget/udc/net2280.h.orig 20

Re: [PATCH 1/1] Drivers: USB: DA8xx MUSB: added DT support

2016-02-09 Thread Petr Kulhavy
On 08.02.2016 18:55, Sergei Shtylyov wrote: On 02/08/2016 06:32 PM, Petr Kulhavy wrote: I have prepared the patch as per you comments. Unfortunately I cannot use the 4.5 kernel from Felipe's repo as the of_usb_get_dr_mode() has been replaced with of_usb_get_dr_mode_by_phy() which requires a PHY

[RFC v5 07/15] usb: ehci: add vbus-gpio parameter

2016-02-09 Thread Antony Pavlov
This patch retrieves and configures the vbus control gpio via the device tree. This patch is based on a ehci-s5p.c commit fd81d59c90d38661 ("USB: ehci-s5p: Add vbus setup function to the s5p ehci glue layer"). Signed-off-by: Antony Pavlov Cc: Alan Stern Cc: Greg Kroah-Hartman Cc: linux-usb@vge