Re: [RESEND PATCH v2] documentation: docbook: document process of writing an musb glue layer

2014-04-08 Thread Apelete Seketeli
Hi, On Mon, Apr-07-2014 at 06:02:18 PM -0500, Felipe Balbi wrote: Hi, On Mon, Apr 07, 2014 at 03:12:09PM -0700, Randy Dunlap wrote: On 04/05/2014 11:42 AM, Apelete Seketeli wrote: Document the process of writing an musb glue layer by taking the Ingenic JZ4740 glue layer as an example,

Re: MUSB/OMAP: gadget does not start when cable is plugged after the driver is started

2014-04-08 Thread Stefan Roese
On 07.04.2014 18:04, Felipe Balbi wrote: snip that's not caused by my patch, it's a previously existing bug. This should sort it out: commit e7f69404a878b5345ad07bf06d78559ecd31db79 Author: Felipe Balbi ba...@ti.com Date: Mon Apr 7 10:58:01 2014 -0500 usb: musb: omap2430: make

Re: [PATCH] cdc-acm: some enhancement on acm delayed write

2014-04-08 Thread Johan Hovold
On Tue, Apr 08, 2014 at 11:05:20AM +0800, Xiao Jin wrote: We find two problems on acm tty write delayed mechanism. Then you should split this into two patches. (1) When acm resume, the delayed wb will be started. But now only one write can be saved during acm suspend. More acm write may be

Re: [PATCH] xhci: Report max device limit when Enable Slot command fails.

2014-04-08 Thread Amund Hov
I completely understand your frustration, and it actually is relevant to kernel development. :) Perhaps the attached patch would have at least saved you some time and frustration in debugging the driver and host issue? Thanks Sarah. An error like that would allow me to know what the error

Re: xhci: non-superspeed enumeration failure

2014-04-08 Thread Johan Hovold
On Mon, Apr 07, 2014 at 07:26:01PM +0300, Mathias Nyman wrote: On 04/03/2014 07:32 PM, Johan Hovold wrote: Hi Mathias and Benjamin, Mathias, I understand you've got quite a lot on your plate with xhci at the moment, but have you had a change to look at this issue yet? It's an xhci-issue

Re: [PATCH 2/2] USB: serial: add dell wwan card(413c:81a9)

2014-04-08 Thread Bjørn Mork
AceLan Kao acelan@canonical.com writes: Hi, I'm not an expert of this field, so I can't really understand your reply. So, is the patch is acceptable? And I have another pci modem card with id 413c:81a3. I tried to add its id into sierra driver, but no luck. I still don't think the

[PATCH] usb: dwc3: add glue layer dependencies

2014-04-08 Thread Jean Delvare
Glue layers for the DWC3 driver only make sense on specific platforms. Add dependencies so that they are not built where they aren't needed. Signed-off-by: Jean Delvare jdelv...@suse.de Cc: Felipe Balbi ba...@ti.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: WingMan Kwok w-kw...@ti.com

Fwd: Isochronos audio

2014-04-08 Thread Russel Hughes
-- Forwarded message -- From: Russel Hughes russel.hug...@gmail.com Date: 6 April 2014 11:32 Subject: Isochronos audio To: linux-usb linux-usb@vger.kernel.org Can you describe the actual problem ? How can you trigger it ? What are you doing when the problem arises ? Do you

Re: [PATCH] cdc-acm: some enhancement on acm delayed write

2014-04-08 Thread Oliver Neukum
On Tue, 2014-04-08 at 09:33 +0200, Johan Hovold wrote: On Tue, Apr 08, 2014 at 11:05:20AM +0800, Xiao Jin wrote: We find two problems on acm tty write delayed mechanism. Then you should split this into two patches. (1) When acm resume, the delayed wb will be started. But now only one

Re: [PATCH] cdc-acm: some enhancement on acm delayed write

2014-04-08 Thread Oliver Neukum
On Tue, 2014-04-08 at 09:33 +0200, Johan Hovold wrote: On Tue, Apr 08, 2014 at 11:05:20AM +0800, Xiao Jin wrote: (2) acm tty port ASYNCB_INITIALIZED flag will be cleared when close. If acm resume callback run after ASYNCB_INITIALIZED flag cleared, there will have no chance for delayed

Re: [PATCH] cdc-acm: some enhancement on acm delayed write

2014-04-08 Thread One Thousand Gnomes
(2) acm tty port ASYNCB_INITIALIZED flag will be cleared when close. If acm resume callback run after ASYNCB_INITIALIZED flag cleared, there will have no chance for delayed write to start. That lead to acm_wb.use can't be cleared. If user space open acm tty again and try to setd, tty will be

move ZTE CDMA device pid from zte_ev.c back to option.c

2014-04-08 Thread 刘磊
dear linuxfoundation:     I'm not sure if you receive our mails in lase week , i resend it now.   Please confirm whether it is correct format for submit. Looking forward to your reply.      modify reason: 1. Move device pid fffe from zte_ev.c back to option.c for our company. 2. Modify the

Re: about possible port reset when disconnect

2014-04-08 Thread vichy
hi Alan: 2014-04-07 10:06 GMT+08:00 Alan Stern st...@rowland.harvard.edu: On Sun, 6 Apr 2014, vichy wrote: hi alan: Why you think it is a bug in hardware? The timeout error means that the kernel told the controller to turn off the PORT_RESET bit, and 1000 us later the bit was still on.

Re: [PATCH] cdc-acm: some enhancement on acm delayed write

2014-04-08 Thread Johan Hovold
[ +CC: Oliver ] On Tue, Apr 08, 2014 at 12:22:29PM +0100, One Thousand Gnomes wrote: (2) acm tty port ASYNCB_INITIALIZED flag will be cleared when close. If acm resume callback run after ASYNCB_INITIALIZED flag cleared, there will have no chance for delayed write to start. That lead to

Re: [PATCH] cdc-acm: some enhancement on acm delayed write

2014-04-08 Thread Johan Hovold
[ +CC: Alan ] On Tue, Apr 08, 2014 at 12:33:31PM +0200, Oliver Neukum wrote: On Tue, 2014-04-08 at 09:33 +0200, Johan Hovold wrote: On Tue, Apr 08, 2014 at 11:05:20AM +0800, Xiao Jin wrote: (2) acm tty port ASYNCB_INITIALIZED flag will be cleared when close. If acm resume callback run

Re: [PATCH] cdc-acm: some enhancement on acm delayed write

2014-04-08 Thread Oliver Neukum
On Tue, 2014-04-08 at 15:17 +0200, Johan Hovold wrote: [ +CC: Alan ] On Tue, Apr 08, 2014 at 12:33:31PM +0200, Oliver Neukum wrote: On Tue, 2014-04-08 at 09:33 +0200, Johan Hovold wrote: On Tue, Apr 08, 2014 at 11:05:20AM +0800, Xiao Jin wrote: (2) acm tty port ASYNCB_INITIALIZED

Re: MUSB/OMAP: gadget does not start when cable is plugged after the driver is started

2014-04-08 Thread Felipe Balbi
Hi, On Tue, Apr 08, 2014 at 09:24:09AM +0200, Stefan Roese wrote: On 07.04.2014 18:04, Felipe Balbi wrote: snip that's not caused by my patch, it's a previously existing bug. This should sort it out: commit e7f69404a878b5345ad07bf06d78559ecd31db79 Author: Felipe Balbi

[PATCH V4 5/5] usb-phy: samsung-usb3: Remove older phy-samsung-usb3 driver

2014-04-08 Thread Vivek Gautam
Removing this older USB 3.0 DRD controller PHY driver, since a new driver based on generic phy framework is now available. Also removing the dt node for older driver from Exynos5250 device tree and updating the dt node for DWC3 controller. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com ---

[PATCH V4 4/5] dt: exynos5250: Enable support for generic USB DRD phy

2014-04-08 Thread Vivek Gautam
Add device tree node for new usbdrd-phy driver, which is based on generic phy framework. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- arch/arm/boot/dts/exynos5250.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/exynos5250.dtsi

[PATCH RESEND] usb: ohci-exynos: Remove locks for 'ohci' in suspend callback

2014-04-08 Thread Vivek Gautam
Patch : 14982e3 USB: OHCI: Properly handle ohci-exynos suspend has already removed 'ohci_hcd' settings from exynos glue layer as a part of streamlining the ohci controller's suspend. So we don't need the locks for 'ohci_hcd' anymore. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com Cc:

[PATCH V4 3/5] dt: exynos5420: Enable support for DWC3 controller

2014-04-08 Thread Vivek Gautam
Add device tree nodes for DWC3 controller present on Exynos 5420 SoC, to enable support for USB 3.0. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- arch/arm/boot/dts/exynos5420.dtsi | 34 ++ 1 file changed, 34 insertions(+) diff --git

[PATCH V4 1/5] phy: Add new Exynos5 USB 3.0 PHY driver

2014-04-08 Thread Vivek Gautam
Add a new driver for the USB 3.0 PHY on Exynos5 series of SoCs. The new driver uses the generic PHY framework and will interact with DWC3 controller present on Exynos5 series of SoCs. Thereby, removing old phy-samsung-usb3 driver and related code used untill now which was based on usb/phy

Re: Fwd: [PATCH v2 2/2] usb: gadget: Add xilinx axi usb2 device support

2014-04-08 Thread sundeep subbaraya
On Mon, Apr 7, 2014 at 10:05 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Mon, Apr 07, 2014 at 02:36:13PM +0530, sundeep subbaraya wrote: +/** + * xudc_wrstatus - Sets up the usb device status stages. + * @udc: pointer to the usb device controller structure. + */ +static void

Re: XHCI Clear halt issue

2014-04-08 Thread Mathias Nyman
Hi On 04/07/2014 09:12 PM, Eric Gross wrote: Hi all, I am implementing a driver (currently libusb-based, but may change to kernel-based eventually) for a USB standard class type that makes use of endpoint stalling as a synchronization mechanism to recover after error conditions between device

Re: move ZTE CDMA device pid from zte_ev.c back to option.c

2014-04-08 Thread gre...@linuxfoundation.org
On Tue, Apr 08, 2014 at 07:59:28PM +0800, 刘磊 wrote: dear linuxfoundation:     I'm not sure if you receive our mails in lase week , i resend it now.   Please confirm whether it is correct format for submit. Looking forward to your reply.      modify reason: 1. Move device pid fffe from

Re: [PATCH] xhci: Report max device limit when Enable Slot command fails.

2014-04-08 Thread Sarah Sharp
On Tue, Apr 08, 2014 at 07:53:39AM +, Amund Hov wrote: I completely understand your frustration, and it actually is relevant to kernel development. :) Perhaps the attached patch would have at least saved you some time and frustration in debugging the driver and host issue? Thanks

Re: XHCI Clear halt issue

2014-04-08 Thread Eric Gross
Thanks for your help, Mathias! See my comments inline below: Mathias Nyman mathias.ny...@linux.intel.com wrote on 04/08/2014 10:26:43 AM: The issue we currently have is that the xHCI (both driver and hw) refuses to reset an endpoint if it's not halted. SetFeature(ENDPOINT_HALT) will set the

Re: Fwd: [PATCH v2 2/2] usb: gadget: Add xilinx axi usb2 device support

2014-04-08 Thread Felipe Balbi
Hi, On Tue, Apr 08, 2014 at 09:31:29PM +0530, sundeep subbaraya wrote: +static const struct usb_gadget_ops xusb_udc_ops = { + .get_frame = xudc_get_frame, + .wakeup = xudc_wakeup, + .udc_start = xudc_start, + .udc_stop = xudc_stop, no pullup ??? What gives ?

Re: about possible port reset when disconnect

2014-04-08 Thread Alan Stern
On Tue, 8 Apr 2014, vichy wrote: That's a different bit. USB_PORT_FEAT_C_RESET isn't the same as USB_PORT_FEAT_RESET. what I am curious is, if port reset bit will clear to 0 within 2ms, why we still need to clear_port_feature with USB_PORT_FEAT_C_RESET (clear Port reset ) if

Re: Fwd: Isochronos audio

2014-04-08 Thread Alan Stern
On Tue, 8 Apr 2014, Russel Hughes wrote: Hi, I put in a new kernel and get the response from uname -r of 3.14.0-031400-generic, apologies for the pedantry I am not that sure what I am doing. The device behaves exactly the same as default Linux kernel, buffer is erratic not stable like USB

Re: [PATCH v7 01/11] usb: chipidea: usb OTG fsm initialization.

2014-04-08 Thread Peter Chen
On Sat, Apr 05, 2014 at 01:37:14PM +0800, Li Jun wrote: This patch adds OTG fsm related initialization when do otg init, add a seperate file for OTG fsm related utilities. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/Makefile |1 + drivers/usb/chipidea/ci.h

Re: [PATCH v7 03/11] usb: chipidea: host: init otg port number.

2014-04-08 Thread Peter Chen
On Sat, Apr 05, 2014 at 01:37:16PM +0800, Li Jun wrote: Init otg_port number of otg capable host to be 1 at host start. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/host.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v7 00/11] Add USB OTG HNP and SRP support on Chipidea usb driver

2014-04-08 Thread Peter Chen
On Sat, Apr 05, 2014 at 01:37:13PM +0800, Li Jun wrote: From: Li Jun b47...@freescale.com This patchset adds USB OTG HNP and SRP support on chipidea usb driver, existing OTG port role swtich function by ID pin status kept unchanged, based on that, if select CONFIG_USB_OTG_FSM, OTG HNP and

Re: [PATCH RESEND] usb: ohci-exynos: Remove locks for 'ohci' in suspend callback

2014-04-08 Thread Jingoo Han
On Tuesday, April 08, 2014 11:41 PM, Vivek Gautam wrote: Patch : 14982e3 USB: OHCI: Properly handle ohci-exynos suspend has already removed 'ohci_hcd' settings from exynos glue layer as a part of streamlining the ohci controller's suspend. So we don't need the locks for 'ohci_hcd' anymore.

[PATCH 2/2] usb: ehci-platform: Return immediately from suspend if ehci_suspend fails

2014-04-08 Thread Vivek Gautam
Patch 'b8efdaf USB: EHCI: add check for wakeup/suspend race' adds a check for possible race between suspend and wakeup interrupt, and thereby it returns -EBUSY as error code if there's a wakeup interrupt. So the platform host controller should not proceed further with its suspend callback, rather

[PATCH 1/2] usb: ehci-exynos: Return immediately from suspend if ehci_suspend fails

2014-04-08 Thread Vivek Gautam
Patch 'b8efdaf USB: EHCI: add check for wakeup/suspend race' adds a check for possible race between suspend and wakeup interrupt, and thereby it returns -EBUSY as error code if there's a wakeup interrupt. So the platform host controller should not proceed further with its suspend callback, rather

Re: [PATCH 1/2] usb: ehci-exynos: Return immediately from suspend if ehci_suspend fails

2014-04-08 Thread Jingoo Han
On Wednesday, April 09, 2014 1:01 PM, Vivek Gautam wrote: Patch 'b8efdaf USB: EHCI: add check for wakeup/suspend race' adds a check for possible race between suspend and wakeup interrupt, and thereby it returns -EBUSY as error code if there's a wakeup interrupt. So the platform host