Re: [PATCH 1/2] usb: chipidea: add xilinx zynq platform data

2015-08-27 Thread Nathan Sullivan
On Thu, Aug 27, 2015 at 01:11:30PM +0530, punnaiah choudary kalluri wrote: Hi, On Thu, Aug 27, 2015 at 10:03 AM, Peter Chen peter.c...@freescale.com wrote: On Thu, Aug 27, 2015 at 10:59:22AM +0530, sundeep subbaraya wrote: Hi, On Wed, Aug 26, 2015 at 8:57 PM, Nathan Sullivan

Re: [PATCH] usb: musb: Fix module autoload for OF platform driver

2015-08-27 Thread Luis de Bethencourt
On Thu, Aug 27, 2015 at 10:41:42AM -0500, Bin Liu wrote: Hi, On Thu, Aug 27, 2015 at 10:07 AM, Luis de Bethencourt l...@debethencourt.com wrote: This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work. Care to

[PATCH 1/7][v4]usb:fsl:otg: Make fsl otg driver as tristate

2015-08-27 Thread Ramneek Mehresh
Provide option to load fsl otg driver as loadable module. Signed-off-by: Ramneek Mehresh ramneek.mehr...@freescale.com --- drivers/usb/phy/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/phy/Kconfig b/drivers/usb/phy/Kconfig index 869c0cfcad..8a09267

[PATCH v2] usb: musb: ux500: Fix module autoload for OF platform driver

2015-08-27 Thread Luis de Bethencourt
This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work. Signed-off-by: Luis de Bethencourt l...@debethencourt.com --- drivers/usb/musb/ux500.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/musb/ux500.c

[PATCH 3/7][v4]usb:fsl:otg: Add support to add/remove usb host driver

2015-08-27 Thread Ramneek Mehresh
Add workqueue to add/remove host driver (outside interrupt context) upon each id change, and to remove host driver upon otg initialization by changing have_hcd variable. Signed-off-by: Li Yang le...@freescale.com Signed-off-by: Ramneek Mehresh ramneek.mehr...@freescale.com --- Changes for v4:

[PATCH 6/7][v4]usb:fsl:otg: Combine host/gadget start/resume for ID change

2015-08-27 Thread Ramneek Mehresh
Make call to fsl_otg_event for each id change even. Signed-off-by: Ramneek Mehresh ramneek.mehr...@freescale.com Reviewed-by: Fleming Andrew-AFLEMING aflem...@freescale.com Tested-by: Fleming Andrew-AFLEMING aflem...@freescale.com --- drivers/usb/phy/phy-fsl-usb.c | 15 +++ 1 file

[PATCH] usb: musb: Fix module autoload for OF platform driver

2015-08-27 Thread Luis de Bethencourt
This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work. Signed-off-by: Luis de Bethencourt l...@debethencourt.com --- drivers/usb/musb/ux500.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/musb/ux500.c

Re: [PATCH] usb: musb: Fix module autoload for OF platform driver

2015-08-27 Thread Bin Liu
Hi, On Thu, Aug 27, 2015 at 10:07 AM, Luis de Bethencourt l...@debethencourt.com wrote: This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work. Care to add 'ux500' to the summary line - 'usb: musb: ux500: Fix...'? That

[PATCH 2/7][v4]usb:fsl:otg: Add controller version based ULPI and UTMI phy

2015-08-27 Thread Ramneek Mehresh
Add controller version based ULPI and UTMI phy initialization for otg driver. Signed-off-by: Shengzhou Liu shengzhou@freescale.com Signed-off-by: Ramneek Mehresh ramneek.mehr...@freescale.com Reviewed-by: Fleming Andrew-AFLEMING aflem...@freescale.com Tested-by: Fleming Andrew-AFLEMING

Re: PROBLEM: lsusb -v freezes kernel on Acer ES1-111M

2015-08-27 Thread Roland Weber
Hello Alan, At the end, you also wrote During shutdown of the OS, the kernel also freezes. That's not entirely clear -- how can the kernel freeze when you run lsusb -v and then freeze again during shutdown? Do you mean that the bad kernel freezes during shutdown even if you don't run

[PATCH 0/7][v4] Add OTG support for FSL socs

2015-08-27 Thread Ramneek Mehresh
Add support for otg for all freescale socs having internal usb phy. Ramneek Mehresh (7): usb:fsl:otg: Make fsl otg driver as tristate usb:fsl:otg: Add controller version based ULPI and UTMI phy usb:fsl:otg: Add support to add/remove usb host driver usb:fsl:otg: Signal host drv when host

[PATCH 4/7][v4]usb:fsl:otg: Signal host drv when host is otg

2015-08-27 Thread Ramneek Mehresh
Set is_otg boolean flag to signal host driver when host is running in context of otg host suspend/resume. Signed-off-by: Ramneek Mehresh ramneek.mehr...@freescale.com --- drivers/usb/phy/phy-fsl-usb.c | 7 ++- include/linux/usb.h | 1 + 2 files changed, 7 insertions(+), 1

[PATCH 5/7][v4]usb:fsl:otg: Modify otg_event to start host drv

2015-08-27 Thread Ramneek Mehresh
Add mechanism to start host driver from inside fsl_otg_even upon each id change interrupt. Signed-off-by: Ramneek Mehresh ramneek.mehr...@freescale.com Reviewed-by: Fleming Andrew-AFLEMING aflem...@freescale.com Tested-by: Fleming Andrew-AFLEMING aflem...@freescale.com ---

[PATCH 7/7][v4]usb:fsl:otg: Add host-gadget drv sync delay

2015-08-27 Thread Ramneek Mehresh
Resolve synchronization issue between host and gadget drivers upon role-reversal. Signed-off-by: Ramneek Mehresh ramneek.mehr...@freescale.com Reviewed-by: Li Yang-R58472 le...@freescale.com Reviewed-by: Fleming Andrew-AFLEMING aflem...@freescale.com Tested-by: Fleming Andrew-AFLEMING

Re: [PATCH] xhci: give command abortion one more chance before killing xhci

2015-08-27 Thread Vincent Pelletier
Hello Mathias, On Wed, 26 Aug 2015 17:14:28 +0300, Mathias Nyman mathias.ny...@linux.intel.com wrote: We want to give the command abortion an additonal try to stop the command ring before we completely hose xhci. I did more tests to get a clearer idea of failure probability. Cold boot was a

[PATCH 4/7] usb: misc: usbtest: format the data pattern according to max packet size

2015-08-27 Thread Peter Chen
From: Alan Stern st...@rowland.harvard.edu With this change, the host and gadget doesn't need to agree with transfer length for comparing the data, since they doesn't know each other's transfer size, but know max packet size. (Fixed the 'line over 80 characters warning' by Peter Chen) Tested-by:

[PATCH 7/7] tools: usb: testusb: change the default value for length from 512 to 1024

2015-08-27 Thread Peter Chen
For ctrl out test, it needs length vary, so in order to run it with default parameters, we do this change. Cc: Michal Nazarewicz min...@mina86.com Signed-off-by: Peter Chen peter.c...@freescale.com --- tools/usb/testusb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 5/7] usb: gadget: f_sourcesink: format data pattern according to max packet size

2015-08-27 Thread Peter Chen
Since the host and gadget can't agree with transfer length before each transfer, but they agree with max packet size for each endpoint, we use max packet size to format data pattern. Signed-off-by: Peter Chen peter.c...@freescale.com --- drivers/usb/gadget/function/f_sourcesink.c | 5 +++-- 1

[PATCH 3/7] usb: misc: usbtest: using the same data format among write/compare/output

2015-08-27 Thread Peter Chen
Using the same data format buf[j] = (u8)(i + j) among write, compare buf, and console output stage. Signed-off-by: Peter Chen peter.c...@freescale.com --- drivers/usb/misc/usbtest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/misc/usbtest.c

[PATCH 0/7] usb: usbtest misc changes

2015-08-27 Thread Peter Chen
Hi all, In this series, we do some improvements for usb test, including usbtest at host side, sourcesink at gadget side, and testusb app running at host side. The main changes: - Format the data pattern according to max packet size, then, the host and gadget doesn't need to agree on the transfer

[PATCH 1/7] usb: misc: usbtest: allocate size of urb array according to user parameter

2015-08-27 Thread Peter Chen
Allocate the size of urb pointer array according to testusb's parameter sglen. Signed-off-by: Peter Chen peter.c...@freescale.com --- drivers/usb/misc/usbtest.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c index

[PATCH 2/7] usb: misc: usbtest: delete useless memset for urbs array

2015-08-27 Thread Peter Chen
The element of urbs array will be initialized at below code at once. for (i = 0; i param-sglen; i++) { urbs[i] = iso_alloc_urb(udev, pipe, desc, param-length, offset); Signed-off-by: Peter Chen peter.c...@freescale.com ---

Re: [PATCH 1/2] usb: chipidea: add xilinx zynq platform data

2015-08-27 Thread Peter Chen
On Thu, Aug 27, 2015 at 09:33:07AM -0500, Nathan Sullivan wrote: On Thu, Aug 27, 2015 at 01:11:30PM +0530, punnaiah choudary kalluri wrote: Hi, On Thu, Aug 27, 2015 at 10:03 AM, Peter Chen peter.c...@freescale.com wrote: On Thu, Aug 27, 2015 at 10:59:22AM +0530, sundeep subbaraya

Re: Likely issue with ch341 kernel-module/driver

2015-08-27 Thread Johan Hovold
On Thu, Aug 27, 2015 at 01:57:01PM +0530, Ajay Garg wrote: Hi John. On Thu, Aug 27, 2015 at 1:07 PM, Johan Hovold jo...@kernel.org wrote: Try to see if you can get the device to work reliably with some other driver (vendor driver or other OS) to rule out a broken device. I tested

Re: [PATCH 1/7] phy: exynos-usb2: add vbus regulator support

2015-08-27 Thread Kishon Vijay Abraham I
Hi, On Tuesday 25 August 2015 11:42 AM, Krzysztof Kozlowski wrote: On 25.08.2015 14:47, Marek Szyprowski wrote: Hello, On 2015-08-21 14:44, Kishon Vijay Abraham I wrote: On Friday 21 August 2015 06:08 PM, Marek Szyprowski wrote: Exynos USB2 PHY has separate power supply, which is usually

Re: Likely issue with ch341 kernel-module/driver

2015-08-27 Thread Ajay Garg
I started in the morning to build the driver from the source provided by the vendor, but it was written in the times of kernel-version 2.4, and I got hopelessly stuck. Wanting to take a break, I reset my setup, and VERY strangely, what I now observe is :: a) I am NOT able to send anything from

Re: [PATCH 0/5] usb: xhci: Fix breakage on dual-role case

2015-08-27 Thread Mathias Nyman
On 20.08.2015 10:09, Roger Quadros wrote: Hi Mathias, Hi On 18/08/15 13:39, Roger Quadros wrote: Hi, Plugging and unplugging a USB-OTG adapter with a USB device into a am437x-gp-evm dual-role port (USB1) causes XHCI to malfunction and USB device to be no longer detected after a few

Re: Likely issue with ch341 kernel-module/driver

2015-08-27 Thread Johan Hovold
[ Please avoid top-posting. ] On Thu, Aug 27, 2015 at 12:13:32PM +0530, Ajay Garg wrote: I started in the morning to build the driver from the source provided by the vendor, but it was written in the times of kernel-version 2.4, and I got hopelessly stuck. The vendor driver is only for 2.4?

Re: [PATCH 1/2] usb: chipidea: add xilinx zynq platform data

2015-08-27 Thread punnaiah choudary kalluri
Hi, On Thu, Aug 27, 2015 at 10:03 AM, Peter Chen peter.c...@freescale.com wrote: On Thu, Aug 27, 2015 at 10:59:22AM +0530, sundeep subbaraya wrote: Hi, On Wed, Aug 26, 2015 at 8:57 PM, Nathan Sullivan nathan.sulli...@ni.com wrote: The Xilinx Zynq udc does not need the

Re: Likely issue with ch341 kernel-module/driver

2015-08-27 Thread Ajay Garg
Hi John. On Thu, Aug 27, 2015 at 1:07 PM, Johan Hovold jo...@kernel.org wrote: Try to see if you can get the device to work reliably with some other driver (vendor driver or other OS) to rule out a broken device. I tested the serial-usb adapter using a loopback-hardware-tool (confirmed to be

[PATCH v1 1/1] xhci: replace custom implementation of readq / writeq

2015-08-27 Thread Andy Shevchenko
The readq() and writeq() helpers are available in the asm-generic/io-64-nonatomic-hi-lo.h and asm-generic/io-64-nonatomic-lo-hi.h headers. Replace custom implementation by the generic helpers. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/usb/host/xhci.h | 14

Re: [PATCH] usb: Move xhci_pme_quirk() behind an #ifdef CONFIG_PM, as it is not used when it's not defined

2015-08-27 Thread Mathias Nyman
On 27.08.2015 00:57, Tomer Barletz wrote: Ping. Ah, yes, makes sense. I'll add it -Mathias -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Likely issue with ch341 kernel-module/driver

2015-08-27 Thread Peter Stuge
Johan Hovold wrote: I started in the morning to build the driver from the source provided by the vendor, but it was written in the times of kernel-version 2.4, and I got hopelessly stuck. The vendor driver is only for 2.4? Peter? http://www.wch.cn/download/CH341SER_LINUX_ZIP.html