Re: When enabling usb autosuspend, new usb devices aren't recognized

2012-09-06 Thread Florian Merz
Hi Alan, Do you mean that if you plug in a new USB device, nothing happens? Or do you mean that some USB devices which were present during boot don't get detected? The first, when I plug in a new USB device. Are the undetected devices attached to a USB-2 port or a USB-3 port? I can

[PATCH] In xhci-ring.c, function inc_enq and inc_deq calculate the dma address of trb but never used.

2012-09-06 Thread Girish Verma
Signed-off-by: Girish Verma gir...@circuitsutra.com --- drivers/usb/host/xhci-ring.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 643c2f3..5c5c47b 100644 --- a/drivers/usb/host/xhci-ring.c +++

Re: [PATCH 12/29] usb/gadget: move global vars from epautoconf into struct usb_gadget

2012-09-06 Thread Michal Nazarewicz
On Thu, Sep 06 2012, Sebastian Andrzej Siewior wrote: epautoconf has two global variables which count the endpoint number of last assigned endpoint. This patch removes the global variable and keeps it as per (UDC) gadget. While here, the ifdef is removed and now the in and outpoint are

Re: [PATCH 18/29] usb/gadget: make g_printer enumerate again

2012-09-06 Thread Michal Nazarewicz
On Thu, Sep 06 2012, Sebastian Andrzej Siewior wrote: This was broken in 2e87edf49 (usb: gadget: make g_printer use composite). The USB-strings were not setup properly and were not used. No function was added which results in an empty USB config. While fixing this, the interface number is now

Re: [PATCH 19/29] usb/gadget: initialize the strings in tcm_usb_gadget properly

2012-09-06 Thread Michal Nazarewicz
On Thu, Sep 06 2012, Sebastian Andrzej Siewior wrote: I have no idea what I've been thinking while I was doing this in the first place. Now the strings are initialized properly and reported by lsusb. Signed-off-by: Sebastian Andrzej Siewior bige...@linutronix.de Acked-by: Michal Nazarewicz

Re: [PATCH 01/29] staging/ccg: Add a note about compatibility issues.

2012-09-06 Thread Michal Nazarewicz
On Thu, Sep 06 2012, Sebastian Andrzej Siewior wrote: The first item on the todo list is a new user interface. Put this information into Kconfig's help entry to people are not too confusing once an user API changes which does not happen in kernel otherwise. Cc: de...@driverdev.osuosl.org

Re: [PATCH 1/3] arm: omap: hwmod: add a new addr space in otg for writing to control module

2012-09-06 Thread Tony Lindgren
* Felipe Balbi ba...@ti.com [120906 10:23]: Hi, On Thu, Sep 06, 2012 at 08:13:03PM +0300, Felipe Balbi wrote: Hi, On Thu, Sep 06, 2012 at 09:04:58PM +0530, Vaibhav Hiremath wrote: On 9/6/2012 8:25 PM, Kishon Vijay Abraham I wrote: The mailbox register for usb otg in omap

Re: When enabling usb autosuspend, new usb devices aren't recognized

2012-09-06 Thread Ruslan Bilovol
Hi Florian, This is just a suggestion, but.. maybe you have a hub between a host and a device? In such case you need to enable remote wakeups for it. For example, using your little script: for i in `find /sys/bus/usb/devices/*/power/wakeup`; do echo enabled $i; done; -- Best regards, Ruslan

Re: When enabling usb autosuspend, new usb devices aren't recognized

2012-09-06 Thread Alan Stern
On Fri, 7 Sep 2012, Ruslan Bilovol wrote: Hi Florian, This is just a suggestion, but.. maybe you have a hub between a host and a device? In such case you need to enable remote wakeups for it. For example, using your little script: for i in `find /sys/bus/usb/devices/*/power/wakeup`; do

Re: [RFC] How to handle delays in isochronous transfers?

2012-09-06 Thread Peter Chen
Here's the problem we face: The class driver submits packets 1, 2, 3, and 4. They get sent properly, but the completion interrupt is delayed. As a result, the class driver's completion handler doesn't get called until too late; the frames for packets 5 - 44 have already expired. The data

Re: A question on EHCI unlink code

2012-09-06 Thread Pavan Kondeti
On 9/6/2012 10:57 PM, Alan Stern wrote: On Thu, 6 Sep 2012, Pavan Kondeti wrote: Hi I am debugging EHCI host system error (4.15.2.4) issue. The issue happens during unlinking of URB from an interface driver. In our system the device is always connected to the host. some interfaces are

Re: changing usbnet's API to better deal with cdc-ncm

2012-09-06 Thread Ming Lei
On Fri, Sep 7, 2012 at 1:56 AM, Oliver Neukum oneu...@suse.de wrote: On Friday 07 September 2012 00:09:13 Ming Lei wrote: On Thu, Sep 6, 2012 at 4:30 PM, Bjørn Mork bj...@mork.no wrote: Ming Lei tom.leim...@gmail.com writes: Looks the introduced .tx_bundle is not necessary since .tx_fixup

[RFC 2/6] usb/dwc3: fix isoc END TRANSFER Condition

2012-09-06 Thread Pratyush Anand
There were still some corner cases where isoc transfer was not able to restart, specially when missed does not happen , and gadget does not queue any new request during giveback. Cleanup function calls giveback first, which provides a way to queue another request to gadget. But gadget did not had

[RFC 3/6] usb/dwc3: Correct Return from ep_queue

2012-09-06 Thread Pratyush Anand
Its better to return from each if condition as they are mutually exclusive. Signed-off-by: Pratyush Anand pratyush.an...@st.com --- drivers/usb/dwc3/gadget.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index

[RFC 5/6] usb/dwc3: Fix update transfer issue condition

2012-09-06 Thread Pratyush Anand
Update transfer is issued for the TRBs where HWO switches from 0 to 1. Lets say we had issued START TRANSFER with 8 TRBs having HWO as 1. Now we need to update 9th TRB, Then we need to call UPDATE TRANSFER with parameter as 9th TRB. Current code was issuing UPDATE transfer with 2nd TRB, which was

[RFC 6/6] usb/dwc3: Remove return from start_isoc if request_list is empty

2012-09-06 Thread Pratyush Anand
Now do not return from start_isoc if request_list is empty. You are going to return from kick_transfer anyway in this case. Signed-off-by: Pratyush Anand pratyush.an...@st.com --- drivers/usb/dwc3/gadget.c |7 --- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git

[RFC 1/6] usb/dwc3: fix resource_index

2012-09-06 Thread Pratyush Anand
We are clearing resource_index when we issue END TRANSFER command. Consider a situation, when we have executed END TRANSFER, core has generated xfernotready, but gadget is too slow and have not queued any request. So we set PENDING flag. Now application queues another request. Software does not

RE: [PATCH 1/3] arm: omap: hwmod: add a new addr space in otg for writing to control module

2012-09-06 Thread Hiremath, Vaibhav
On Thu, Sep 06, 2012 at 22:43:03, Balbi, Felipe wrote: Hi, On Thu, Sep 06, 2012 at 09:04:58PM +0530, Vaibhav Hiremath wrote: On 9/6/2012 8:25 PM, Kishon Vijay Abraham I wrote: The mailbox register for usb otg in omap is present in control module. On detection of any events VBUS

[PATCH] EHCI: Update qTD next pointer in QH overlay region during unlink

2012-09-06 Thread Pavankumar Kondeti
There is a possibility of QH overlay region having reference to a stale qTD pointer during unlink. Consider an endpoint having two pending qTD before unlink process begins. The endpoint's QH queue looks like this. qTD1 -- qTD2 -- Dummy To unlink qTD2, QH is removed from asynchronous list and

<    1   2