Re: [PATCH] hid: fix bug destroying hidraw device files after parent

2014-02-26 Thread Nestor Lopez Casado
Hi Fernando, Why are older kernels not affected ? -nestor On Wed, Feb 26, 2014 at 8:56 AM, Fernando Luis Vázquez Cao fernando...@lab.ntt.co.jp wrote: I forgot to mention that if the fix below is acceptable it should be queued for 3.13-stable (older kernels are not affected). On 02/26/2014

Re: [PATCH] hid: fix bug destroying hidraw device files after parent

2014-02-26 Thread David Herrmann
Hi On Wed, Feb 26, 2014 at 8:51 AM, Fernando Luis Vázquez Cao fernando...@lab.ntt.co.jp wrote: I noticed that after hot unplugging a Logitech unifying receiver (drivers/hid/hid-logitech-dj.c) the kernel would occasionally spew a stack trace similar to this: usb 1-1.1.2: USB disconnect,

Re: [PATCH v2] u_ether: move hardware transmit to RX workqueue

2014-02-26 Thread clanlab.proj
On Mon, Feb 24, 2014 at 10:57 PM, Manu Gautam mgau...@codeaurora.org wrote: On 2/22/2014 11:11 AM, Clanlab (Taiwan) Linux Project wrote: In order to reduce the interrupt times in the embedded system, a receiving workqueue is introduced. This modification also enhanced the overall throughput

[PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN

2014-02-26 Thread freddy
From: Freddy Xin fre...@asix.com.tw Add VID:DID for Lenovo OneLinkDock Gigabit LAN Signed-off-by: Freddy Xin fre...@asix.com.tw --- drivers/net/usb/ax88179_178a.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/net/usb/ax88179_178a.c

Re: [PATCH] hid: fix bug destroying hidraw device files after parent

2014-02-26 Thread Jiri Kosina
On Wed, 26 Feb 2014, Fernando Luis Vázquez Cao wrote: I noticed that after hot unplugging a Logitech unifying receiver (drivers/hid/hid-logitech-dj.c) the kernel would occasionally spew a stack trace similar to this: usb 1-1.1.2: USB disconnect, device number 7 WARNING: CPU: 0 PID: 2865 at

gadgetfs: usb.c test application not working properly on i.mx6

2014-02-26 Thread Marco Zamponi
Hello! I compiled usb.c for both an ARM cortex a5 (kernel 3.6.9) and a9 (3.0.35). Both are connected to the same host when I run the binary with verbose output. One of them (the one on the A5) appears very quickly as a USB device in USB device tree viewer and has all the correct string descriptors

Re: [PATCH 00/11] usb: dwc3: more hibernation helpers

2014-02-26 Thread Pratyush Anand
On Wed, Feb 26, 2014 at 03:40:32AM +0800, Felipe Balbi wrote: Adding Amit for whome it will be very useful as he was about to start some work related to hibernation. Regards Pratyush Hi, these series cleans up dwc3 a little bit and adds more boiler plate code for hibernation support. Note

Re: [PATCH 04/11] usb: dwc3: gadget: implement dwc3_gadget_get_link_state

2014-02-26 Thread Pratyush Anand
On Wed, Feb 26, 2014 at 03:40:36AM +0800, Felipe Balbi wrote: From: Paul Zimmerman paul.zimmer...@synopsys.com This function will be used during hibernation to get the current link state. It will be needed at least for Hibernation support. Since we do receive linksts_change_interrupt,

Re: gadgetfs: usb.c test application not working properly on i.mx6

2014-02-26 Thread Fabio Estevam
On Wed, Feb 26, 2014 at 7:08 AM, Marco Zamponi mzamp...@gmail.com wrote: This is from the one running ont he A9: /dev/gadget/fsl-usb2-udc ep0 configured I have already told you this on another thread, but here I go once again: fsl-usb2-udc is the old driver from 3.0.35. Recent imx kernel uses

Re: [PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN

2014-02-26 Thread Bjørn Mork
fre...@asix.com.tw writes: From: Freddy Xin fre...@asix.com.tw Add VID:DID for Lenovo OneLinkDock Gigabit LAN This is the same patch Keith Packard sent, but with a slighly different description. I take that as another proof that we should not attempt to describe devices in these drivers.

Re: musb - high CPU load in DMA mode and dropouts during audio playback

2014-02-26 Thread Michal Šmucr
On 18.2.2014 2:18, Michal Šmucr wrote: Hello, i'm fighting with audio playback problem on Beaglebone Black AM-3358. Class compilant USB soundcards with isochronous transfers. With DMA enabled in kernels 3.13.2 and 3.14-rc2 it has following symptoms. - it will stutter immediately after starts

RE: HSIC on imx6

2014-02-26 Thread Rolf Evers-Fischer
Rolf Evers-Fischer embedde...@evers-fischer.de hat am 25. Februar 2014 um 17:30 geschrieben: Dear Peter, Peter Chen peter.c...@freescale.com hat am 20. Februar 2014 um 02:45 geschrieben: Okay that makes sense. In theory the ehci core should do the reset. Is there

RE: HSIC on imx6

2014-02-26 Thread Rolf Evers-Fischer
Hi Christian, Peter Chen peter.c...@freescale.com hat am 26. Februar 2014 um 03:05 geschrieben: patches. I am working some days on this topic but without much success and I am running out of time :/ Will keep you posted. Hope you soon will find some time.

Re: [PATCH 00/11] usb: dwc3: more hibernation helpers

2014-02-26 Thread Felipe Balbi
On Wed, Feb 26, 2014 at 03:38:23PM +0530, Pratyush Anand wrote: On Wed, Feb 26, 2014 at 03:40:32AM +0800, Felipe Balbi wrote: Adding Amit for whome it will be very useful as he was about to start some work related to hibernation. wait a bit on hibernation, there's a lot of ground work still

Re: [PATCH 2/6] usb: gadget: mv_udc: disable HW zlt for ep0

2014-02-26 Thread Felipe Balbi
Hi, On Tue, Feb 25, 2014 at 05:48:17PM -0800, Neil Zhang wrote: Hardware zlt will try to send the zero length packet automatically when the data transferd is multiple times of max packet, this will cause issues on Windows. So let's disable HW zlt by default.

Re: [PATCH 2/6] usb: gadget: mv_udc: disable HW zlt for ep0

2014-02-26 Thread Felipe Balbi
On Wed, Feb 26, 2014 at 02:36:19AM +, Peter Chen wrote: easy to be found. Chipidea bug too? Does it follow ch 8.5.3.2 Variable-length Data Stage, USB 2.0 spec? wait, this is a chipidea core ? Why aren't you guys using the chipidea driver yet ? You need to

Re: [PATCH 2/3] usb: dwc3: workaround: clock gating issues

2014-02-26 Thread Felipe Balbi
On Wed, Feb 26, 2014 at 02:19:38AM +0300, Sergei Shtylyov wrote: Hello. On 02/26/2014 12:36 AM, Felipe Balbi wrote: Revisions between 2.10a and 2.50a (included) have a known issue which may cause xHCI compliance tests to fail and/or quality issues with Isochronous transactions. Note

Re: [PATCH 2/6] usb: gadget: mv_udc: disable HW zlt for ep0

2014-02-26 Thread Felipe Balbi
On Wed, Feb 26, 2014 at 02:36:19AM +, Peter Chen wrote: easy to be found. Chipidea bug too? Does it follow ch 8.5.3.2 Variable-length Data Stage, USB 2.0 spec? wait, this is a chipidea core ? Why aren't you guys using the chipidea driver yet ? You need to

Re: Card reader not working properly with xHCI

2014-02-26 Thread Alan Stern
On Tue, 25 Feb 2014, Sarah Sharp wrote: On Tue, Feb 25, 2014 at 11:22:57PM +0100, Richard Sch�tz wrote: Hi everybody! I am experiencing a problem with my USB card reader and xHCI. Simply using dd to write an image to a SD card results in USB resets after a few seconds. Reading with dd

Re: 3.13.5, usb disappears sometimes and that results with sysfs being suprised

2014-02-26 Thread Alan Stern
On Wed, 26 Feb 2014, Arkadiusz Miskiewicz wrote: Hi. One of my dongles (logitech unifying) disappears sometimes. That results with sysfs warning. Shouldn't sysfs part be dealing with such scenario without a warning? No, sysfs is doing the right thing. But the HID subsystem isn't.

Re: [PATCH 04/11] usb: dwc3: gadget: implement dwc3_gadget_get_link_state

2014-02-26 Thread Felipe Balbi
Hi, On Wed, Feb 26, 2014 at 03:34:43PM +0530, Pratyush Anand wrote: On Wed, Feb 26, 2014 at 03:40:36AM +0800, Felipe Balbi wrote: From: Paul Zimmerman paul.zimmer...@synopsys.com This function will be used during hibernation to get the current link state. It will be needed at least

Re: [PATCH v5 06/16] usb: defer suspension of superspeed port while peer is powered

2014-02-26 Thread Alan Stern
On Tue, 25 Feb 2014, Dan Williams wrote: Look, we guarantee that the peer relation is dropped when either of the devices is unregistered. Therefore there's no need to take a reference to the peer device. Ugh, yes. Reference counts alone don't save us from this scenario: CPU1

Re: usb audio breaks ohci-pci

2014-02-26 Thread Alan Stern
On Wed, 26 Feb 2014, Dennis New wrote: That's weird. Are you sure you were running the patched kernel? There very definitely should have been a bunch of debugging output, at the point where the headset was unplugged if not before. Should I enable CONFIG_DEBUG_KERNEL as well?

Re: usb/serial/io_ti.c broken on BE systems

2014-02-26 Thread Johan Hovold
On Tue, Feb 25, 2014 at 03:55:07PM +, Ludovic wrote: Johan Hovold johan@... writes: Care to try the patch below? This driver could use some cleaning up so I might rework the patch somewhat, but let's find the bugs first. Thanks, Johan Hi, At 1st the driver detected

Re: [PATCH v2 1/2] usb: host: xhci-plat: Use module_platform_driver()

2014-02-26 Thread Sarah Sharp
On Fri, Feb 07, 2014 at 02:42:45PM -0800, Greg KH wrote: On Fri, Jan 31, 2014 at 02:29:52AM -0200, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com Using module_platform_driver() can make the code simpler. Signed-off-by: Fabio Estevam fabio.este...@freescale.com

Re: [PATCH v2 1/2] usb: host: xhci-plat: Use module_platform_driver()

2014-02-26 Thread Fabio Estevam
Hi Sarah, On Wed, Feb 26, 2014 at 2:39 PM, Sarah Sharp sarah.a.sh...@linux.intel.com wrote: Fabio, are you going to send a new version that fixes these build errors? Could you please discard this one and just apply 2/2 instead? Thanks, Fabio Estevam -- To unsubscribe from this list: send

Re: usb audio breaks ohci-pci

2014-02-26 Thread Alan Stern
Dennis, please use Reply-To-All so that your messages get sent to the mailing list as well as to me. On Wed, 26 Feb 2014, Dennis New wrote: Btw, I have noticed again that without the debugging patch, I get: 12:27:59 kernel: timeout: still 3 active urbs on EP #3 12:28:00 kernel: timeout:

Re: USB kernel oops

2014-02-26 Thread Nicholas Leippe
More information: Today I was still using it and noticed that I actually had another USB keyboard attached. (Since this is a wonky dell whose bios doesn't work with the Kinesis USB keyboard I had a generic USB keyboard plugged in also.) That keyboard was unresponsive. Very soon after

Re: [PATCH v5 06/16] usb: defer suspension of superspeed port while peer is powered

2014-02-26 Thread Dan Williams
On Wed, 2014-02-26 at 10:49 -0500, Alan Stern wrote: On Tue, 25 Feb 2014, Dan Williams wrote: Look, we guarantee that the peer relation is dropped when either of the devices is unregistered. Therefore there's no need to take a reference to the peer device. Ugh, yes. Reference

Re: HSIC on imx6

2014-02-26 Thread Christian Gmeiner
Hi Rolf 2014-02-26 15:48 GMT+01:00 Rolf Evers-Fischer embedde...@evers-fischer.de: Hi Christian, Peter Chen peter.c...@freescale.com hat am 26. Februar 2014 um 03:05 geschrieben: patches. I am working some days on this topic but without much success and I am running out of time :/

[PATCH] usb: xhci: Use IS_ENABLED() macro

2014-02-26 Thread Fabio Estevam
From: Fabio Estevam fabio.este...@freescale.com Using the IS_ENABLED() macro can make the code shorter and easier to read. Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- drivers/usb/host/xhci.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[RFCv3 4/4] xhci: rework command timeout and cancellation,

2014-02-26 Thread Mathias Nyman
Use one timer to control command timeout. start/kick the timer every time a command is completed and a new command is waiting, or a new command is added to a empty list. If the timer runs out, then tag the current command as aborted, and start the xhci command abortion process. Previously each

[RFCv3 2/4] xhci: Add a global command queue

2014-02-26 Thread Mathias Nyman
Create a list to store command structures, add a structure to it every time a command is submitted, and remove it from the list once we get a command completion event matching the command. Callers that wait for completion will free their command structures themselves. The other command structures

[RFCv3 3/4] xhci: Use completion and status in global command queue

2014-02-26 Thread Mathias Nyman
Remove the per-device command list and handle_cmd_in_cmd_wait_list() and use the completion and status variables found in the command structure in the global command list. Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci-hub.c | 11 ---

[RFCv3 1/4] xhci: Use command structures when queuing commands on the command ring

2014-02-26 Thread Mathias Nyman
To create a global command queue we require that each command put on the command ring is submitted with a command structure. Functions that queue commands and wait for completion need to allocate a command before submitting it, and free it once completed. The following command queuing functions

[RFCv3 0/4] xhci: re-work command queue management

2014-02-26 Thread Mathias Nyman
changes since v2: squash first 7 patches together that all just created commands and avoid some nasty mid-patch series memory leaking changes since v1: Fixing smatch warnings and errors. Check for null return from alloc_command, release lock in error path and

EHCI threadirq

2014-02-26 Thread Stefani Seibold
Hi Alan, i just checked the current linux git tree and the 3.13 kernel. In both i miss your fix for the thread irq support in the ehci hcd which you had promised. - Stefani -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to

Re: EHCI threadirq

2014-02-26 Thread Alan Stern
On Wed, 26 Feb 2014, Stefani Seibold wrote: Hi Alan, i just checked the current linux git tree and the 3.13 kernel. In both i miss your fix for the thread irq support in the ehci hcd which you had promised. The patch has not been merged yet. It was submitted here:

Re: EHCI threadirq

2014-02-26 Thread Greg KH
On Wed, Feb 26, 2014 at 03:40:52PM -0500, Alan Stern wrote: On Wed, 26 Feb 2014, Stefani Seibold wrote: Hi Alan, i just checked the current linux git tree and the 3.13 kernel. In both i miss your fix for the thread irq support in the ehci hcd which you had promised. The patch

Re: [PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN

2014-02-26 Thread David Miller
From: Bjørn Mork bj...@mork.no Date: Wed, 26 Feb 2014 13:13:12 +0100 fre...@asix.com.tw writes: From: Freddy Xin fre...@asix.com.tw Add VID:DID for Lenovo OneLinkDock Gigabit LAN This is the same patch Keith Packard sent, but with a slighly different description. I take that as another

Re: [PATCH v8 06/14] CLK: TI: OMAP3: Get rid of unused USB Host dummy clocks

2014-02-26 Thread Mike Turquette
Quoting Roger Quadros (2014-02-25 01:32:19) Hi Mike, On 02/25/2014 10:43 AM, Mike Turquette wrote: Quoting Roger Quadros (2014-02-20 03:40:01) The OMAP USB Host MFD driver no longer expects these non-existing clocks from the OMAP3 platform, so get rid of them. Looks good to me.

Re: [PATCH v5 06/16] usb: defer suspension of superspeed port while peer is powered

2014-02-26 Thread Alan Stern
On Wed, 26 Feb 2014, Dan Williams wrote: When CPU2 takes the lock it will certainly be after hubA-disconnected has been set, but I don't see what prevents de-referencing the hubA pointer from crashing. Continuing the above example: CPU1CPU2

Re: [PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN

2014-02-26 Thread Bjørn Mork
David Miller da...@davemloft.net writes: From: Bjørn Mork bj...@mork.no Date: Wed, 26 Feb 2014 13:13:12 +0100 fre...@asix.com.tw writes: From: Freddy Xin fre...@asix.com.tw Add VID:DID for Lenovo OneLinkDock Gigabit LAN This is the same patch Keith Packard sent, but with a slighly

Re: [PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN

2014-02-26 Thread David Miller
From: Bjørn Mork bj...@mork.no Date: Wed, 26 Feb 2014 22:14:10 +0100 David Miller da...@davemloft.net writes: From: Bjørn Mork bj...@mork.no Date: Wed, 26 Feb 2014 13:13:12 +0100 fre...@asix.com.tw writes: From: Freddy Xin fre...@asix.com.tw Add VID:DID for Lenovo OneLinkDock Gigabit

Re: [PATCH v5 04/16] usb: find internal hub tier mismatch via acpi

2014-02-26 Thread Alan Stern
On Fri, 21 Feb 2014, Dan Williams wrote: ACPI identifies peer ports by setting their 'group_token' and 'group_position' _PLD data to the same value. If a platform has tier mismatch [1] , ACPI can override the default (USB3 defined) peer port association for internal hubs. External hubs

Re: Card reader not working properly with xHCI

2014-02-26 Thread Richard Schütz
Am 26.02.2014 16:31, schrieb Alan Stern: On Tue, 25 Feb 2014, Sarah Sharp wrote: On Tue, Feb 25, 2014 at 11:22:57PM +0100, Richard Sch�tz wrote: Hi everybody! I am experiencing a problem with my USB card reader and xHCI. Simply using dd to write an image to a SD card results in USB resets

Re: [PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN

2014-02-26 Thread Bjørn Mork
David Miller da...@davemloft.net writes: From: Bjørn Mork bj...@mork.no No, sorry for being confusing. The patch is fine. But Keith sent it first... Did I apply Keith's patch? No, you didn't. And when I went looking at it now, I see why: It was posted to linux-usb and linux-kernel but

Re: [PATCH v5 04/16] usb: find internal hub tier mismatch via acpi

2014-02-26 Thread Dan Williams
On Wed, Feb 26, 2014 at 1:35 PM, Alan Stern st...@rowland.harvard.edu wrote: On Fri, 21 Feb 2014, Dan Williams wrote: ACPI identifies peer ports by setting their 'group_token' and 'group_position' _PLD data to the same value. If a platform has tier mismatch [1] , ACPI can override the

Re: [PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN

2014-02-26 Thread David Miller
From: Bjørn Mork bj...@mork.no Date: Wed, 26 Feb 2014 22:44:18 +0100 David Miller da...@davemloft.net writes: From: Bjørn Mork bj...@mork.no No, sorry for being confusing. The patch is fine. But Keith sent it first... Did I apply Keith's patch? No, you didn't. And when I went looking

Re: [PATCH v5 04/16] usb: find internal hub tier mismatch via acpi

2014-02-26 Thread Alan Stern
On Wed, 26 Feb 2014, Dan Williams wrote: I've been thinking about this. Maybe it isn't a problem, because now you don't set up the peer matching until after the port has been registered. All you have to do is allow the ACPI data to prevent a default match if the location data values

Re: [PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN

2014-02-26 Thread Keith Packard
Bjørn Mork bj...@mork.no writes: No, you didn't. And when I went looking at it now, I see why: It was posted to linux-usb and linux-kernel but not to netdev: http://www.kernelhub.org/?msg=420289p=2 I looked in MAINTAINERS and found linux-usb as a suitable address for drivers/net/usb/. I'm

Re: [PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN

2014-02-26 Thread Joe Perches
On Wed, 2014-02-26 at 14:23 -0800, Keith Packard wrote: Bjørn Mork bj...@mork.no writes: No, you didn't. And when I went looking at it now, I see why: It was posted to linux-usb and linux-kernel but not to netdev: http://www.kernelhub.org/?msg=420289p=2 I looked in MAINTAINERS and

RE: [PATCH 04/11] usb: dwc3: gadget: implement dwc3_gadget_get_link_state

2014-02-26 Thread Paul Zimmerman
Hi Felipe, Can you drop the part that checks the DCNRD bit, please? I made a mistake when I originally submitted this. It is not necessary to check the DCNRD bit every time before reading the link state, it should only be checked the first time after coming out of hibernation. Doing it every time

Re: [PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN

2014-02-26 Thread Keith Packard
Joe Perches j...@perches.com writes: You could use scripts/get_maintainer.pl next time. Yeah, good point. I always forget about that tool when I'm hacking outside my normal areas. -- keith.pack...@intel.com pgpdEhsqthszc.pgp Description: PGP signature

[PATCH] phy-rcar-gen2-usb: add device tree support

2014-02-26 Thread Sergei Shtylyov
Add support of the device tree probing for the Renesas R-Car generation 2 SoCs documenting the device tree binding as necessary. Signed-off-by: Sergei Shtylyov sergei.shtyl...@cogentembedded.com --- This patch is against the 'next' branch of Felipe Balbi's 'usb.git' repo.

[PATCH v3 00/13] Add USB OTG HNP and SRP support on Chipidea usb driver

2014-02-26 Thread Li Jun
From: b47624 b47624@ubuntu64bit1204.(none) 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 SRP will be supported. Reference to: On-The-Go and

[PATCH v3 01/13] usb: phy-fsm: update OTG HNP state transition conditions according to OTG and EH 2.0 spec.

2014-02-26 Thread Li Jun
According to:On-The-Go and Embedded Host Supplement to the USB Revision 2.0 Specification July 27, 2012 Revision 2.0 version 1.1a - From a_host to a_wait_bcon if !b_conn - Add transition from a_host to a_wait_vfall if id state is high or a_bus_drop - From a_wait_vfall to a_idle if

[PATCH v3 06/13] usb: chipidea: export interrupt enable and status register read functions.

2014-02-26 Thread Li Jun
This patch move usb interrupt enable and status register read functions from udc driver to core driver to use them in all ci drivers. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/ci.h |4 drivers/usb/chipidea/core.c | 20

[PATCH v3 03/13] usb: chipidea: host: vbus control change for OTG HNP.

2014-02-26 Thread Li Jun
Leave vbus on/off hanlded by OTG fsm if in OTG mode. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/host.c |6 +++--- drivers/usb/chipidea/host.h |9 + 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/usb/chipidea/host.c

[PATCH v3 05/13] usb: chipidea: udc: driver update for OTG HNP.

2014-02-26 Thread Li Jun
Add b_hnp_enable request handling and enable gadget-is_otg Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/udc.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index fe30dcc..602bbf3

[PATCH v3 04/13] usb: chipidea: host: init otg port number.

2014-02-26 Thread Li Jun
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 |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/usb/chipidea/host.c b/drivers/usb/chipidea/host.c index 4b609bc..5ec8ccd

[PATCH v3 02/13] usb: chipidea: usb OTG fsm initialization.

2014-02-26 Thread Li Jun
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 |1 + drivers/usb/chipidea/otg.c |7 +

[PATCH v3 07/13] usb: chipidea: add OTG fsm operation functions implemenation.

2014-02-26 Thread Li Jun
Add OTG HNP and SRP operation functions implementation: - charge vbus - drive vbus - connection signaling - drive sof - start data pulse - add fsm timer - delete fsm timer - start host - start gadget Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/bits.h| 11 ++

[PATCH v3 13/13] Documentation: ABI: usb: chipidea USB OTG HNP sysfs interface description.

2014-02-26 Thread Li Jun
This patch adds sysfs interface description for chipidea USB OTG role switch in HNP. Signed-off-by: Li Jun b47...@freescale.com --- .../ABI/testing/sysfs-platform-chipidea-usb-otg| 55 1 file changed, 55 insertions(+) diff --git

[PATCH v3 09/13] usb: chipidea: OTG HNP and SRP fsm implementation.

2014-02-26 Thread Li Jun
USB OTG interrupt handling and fsm transition according to USB OTG and EH 2.0, update otg timer timeout handlers. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/core.c| 10 ++- drivers/usb/chipidea/otg.c |9 +- drivers/usb/chipidea/otg_fsm.c | 191

[PATCH v3 10/13] usb: chipidea: add sys inputs for OTG fsm input.

2014-02-26 Thread Li Jun
This patch adds sys input to control and show OTG fsm inputs by application, user can do host and preipheral role switch by change these inputs. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/otg.c |1 + drivers/usb/chipidea/otg_fsm.c | 192

[PATCH v3 08/13] usb: chipidea: OTG fsm timers initialization.

2014-02-26 Thread Li Jun
This patch adds OTG fsm timers initialization, which use controller's 1ms interrupt as timeout counter, also adds some local timers which are not in otg_fsm_timer list. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/bits.h|1 + drivers/usb/chipidea/otg_fsm.c | 190

[PATCH v3 11/13] usb: chipidea: debug: add debug file for OTG variables show.

2014-02-26 Thread Li Jun
This patch adds a debug file for OTG vairables show. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/debug.c | 85 ++ 1 file changed, 85 insertions(+) diff --git a/drivers/usb/chipidea/debug.c b/drivers/usb/chipidea/debug.c index

[PATCH v3 12/13] usb: chipidea: debug: add debug file for controller registers dump.

2014-02-26 Thread Li Jun
This patch adds below registers dump for debug: - USBINTR - USBSTS - USBMODE - USBCMD - PORTSC - OTGSC Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/debug.c | 48 ++ 1 file changed, 48 insertions(+) diff --git

Re: [PATCH v2 7/9] usb: chipidea: OTG HNP and SRP fsm implementation.

2014-02-26 Thread Li Jun
On Mon, Feb 10, 2014 at 10:32:24AM +0800, Peter Chen wrote: On Mon, Jan 20, 2014 at 09:56:18AM +0800, Li Jun wrote: USB OTG interrupt handling and fsm transition according to USB OTG spec 2.0, update otg timer timeout handlers. USB OTG and EH 2.0 changed. Signed-off-by: Li Jun

RE: [PATCH 2/6] usb: gadget: mv_udc: disable HW zlt for ep0

2014-02-26 Thread Peter Chen
Chipidea bug too? Does it follow ch 8.5.3.2 Variable-length Data Stage, USB 2.0 spec? wait, this is a chipidea core ? Why aren't you guys using the chipidea driver yet ? You need to switch over to that driver dude, we can't have duplicated code in the tree.

Re: musb - high CPU load in DMA mode and dropouts during audio playback

2014-02-26 Thread George Cherian
Hi Michal, On 2/26/2014 7:07 PM, Michal Šmucr wrote: On 18.2.2014 2:18, Michal Šmucr wrote: Hello, i'm fighting with audio playback problem on Beaglebone Black AM-3358. Class compilant USB soundcards with isochronous transfers. what is the application you are using for play back. With DMA

[PATCH 1/2] dma: cppi41: start tear down only if channel is busy

2014-02-26 Thread George Cherian
Start the channel tear down only if the channel is busy, else just bail out. In some cases its seen that by the time the tear down is initiated the cppi completes the DMA, especially in ISOCH transfers. Signed-off-by: George Cherian george.cher...@ti.com --- drivers/dma/cppi41.c | 7 +-- 1

[PATCH 0/2] Fix CPPI Warnings during tear down after ISOCH transfers

2014-02-26 Thread George Cherian
Warinings are seen after ISOCH transfers, during channel tear down. This is mainly beacause we handle ISOCH differently as compared to other transfers. Patch 1: make sure we do channel tear down only if channel is busy. If not the tear down will never succeed. Patch 2: ISOCH

[PATCH 2/2] usb: musb: musb_cppi41: Dont reprogram DMA if tear down is initiated

2014-02-26 Thread George Cherian
Reprogramming the DMA after tear down is initiated leads to warning. This is mainly seen with ISOCH since we do a delayed completion for ISOCH transfers. In ISOCH transfers dma_completion should not reprogram if the channel tear down is initiated. Signed-off-by: George Cherian

[PATCH] usb: gadget: return the right length in ffs_epfile_io()

2014-02-26 Thread Chuansheng Liu
When the request length is aligned to maxpacketsize, sometimes the return length ret the user space requested len. At that time, we will use min_t(size_t, ret, len) to limit the size in case of user data buffer overflow. But we need return the min_t(size_t, ret, len) to tell the user space