Re: USB port power off discussion

2012-10-14 Thread Rafael J. Wysocki
Sorry for the delay, I have been distracted by a number of things. On Monday 24 of September 2012 15:10:36 Sarah Sharp wrote: > On Tue, Sep 25, 2012 at 12:09:06AM +0200, Rafael J. Wysocki wrote: > > On Monday, September 24, 2012, Alan Stern wrote: > > > On Mon, 24 Sep 2012, Rafael J. Wysocki wrote

Re: [PATCH v1 00/11] usbnet: usb_control_msg cleanup

2012-10-14 Thread Oliver Neukum
On Thursday 11 October 2012 20:39:18 Ming Lei wrote: > Hi, > > This patch set introduces 3 helpers for handling usb read, write > and write_async command, and replaces the low level's implemention > with the generic ones. > > This patchset is a cleanup and about 300 lines code can be saved. > >

RE: [PATCH 4/4 v2] USB: ohci-exynos: Add phy driver support

2012-10-14 Thread Jingoo Han
On Wednesday, October 10, 2012 7:43 PM Vivek Gautam wrote > > Adding the transceiver to ohci driver. Keeping the platform data > for continuing the smooth operation for boards which still uses it > > Signed-off-by: Vivek Gautam It looks good. I have tested this patch with Exynos5250. Acked-by

Re: [PATCH 3/4 v2] USB: ehci-s5p: Add phy driver support

2012-10-14 Thread Jingoo Han
On Wednesday, October 10, 2012 7:43 PM Vivek Gautam wrote > > Adding the transceiver to ehci driver. Keeping the platform data > for continuing the smooth operation for boards which still uses it > > Signed-off-by: Vivek Gautam It looks good. I have tested this patch with Exynos5250. Acked-b

[RFC PATCH 3/3] USB: forbid memory allocation with I/O during bus reset if storage interface exits

2012-10-14 Thread Ming Lei
If one storage interface exists in the device, memory allocation with GFP_KERNEL during usb_device_reset() might trigger I/O transfer on the storage interface itself and cause deadlock because the 'us->dev_mutex' is held in .pre_reset() and the storage interface can't do I/O transfer when the reset

[RFC PATCH 2/3] PM / Runtime: force memory allocation with no I/O during runtime_resume callbcack

2012-10-14 Thread Ming Lei
This patch applies the introduces tsk_memalloc_forbid_io() and tsk_memalloc_allow_io() to force memory allocation with no I/O during runtime_resume callback. Cc: Alan Stern Cc: Oliver Neukum Cc: Rafael J. Wysocki Signed-off-by: Ming Lei --- drivers/base/power/runtime.c | 13 + 1

[RFC PATCH 1/3] mm: teach mm by current context info to not do I/O during memory allocation

2012-10-14 Thread Ming Lei
This patch introduces PF_MEMALLOC_NOIO on process flag('flags' field of 'struct task_struct'), so that the flag can be set by one task to avoid doing I/O inside memory allocation in the task's context. The patch trys to solve one deadlock problem caused by block device, and the problem can be occu

[RFC PATCH 0/3] mm/PM/USB: force memory allocation with no io in need

2012-10-14 Thread Ming Lei
Hi, This patch set introduces one process flag and trys to fix one deadlock problem on block device during runtime resume or usb bus reset. The 1st one is the change on include/sched.h and mm/page_alloc.c. The other 2 patches are applied again PM and USB subsystem to demo how to use the introduc

Re: usb audio device can't work when it is attached to host via usb 2.0 hub

2012-10-14 Thread Elric Fu
2012/10/12 Alan Stern : > On Fri, 12 Oct 2012, Elric Fu wrote: > >> > What is error -145 on your platform? Is it -ETIMEDOUT? >> >> Yes. -145 means -ETIMEOUT. >> >> > >> >> usb core send a get configuration descriptor request, but the control >> >> transfer >> >> will be timeout again. >> >> >> >>

Re: some question about xhci ep0 setting

2012-10-14 Thread loody
hi sarah > On Sat, Oct 06, 2012 at 12:53:43PM +0800, loody wrote: >> hi sarah: >> >> 2012/10/6 Sarah Sharp : >> > I see. Is there a particular reason why the current Linux xHCI driver >> > doesn't meet your needs? Like maybe your host isn't PCI based? I'm >> > confused as to why you would need t

Re: [PATCH v3] usbdevfs: Fix broken scatter-gather transfer

2012-10-14 Thread Hans de Goede
Hi, On 10/13/2012 12:20 PM, Henrik Rydberg wrote: The handling of large output bulk transfers is broken; the same user page is read over and over again. Fixed with this patch. Cc: sta...@kernel.org Acked-by: Peter Stuge Acked-by: Hans de Goede Acked-by: Alan Stern Signed-off-by: Henrik Rydbe

Re: REGRESSION: usbdevfs: Use-scatter-gather-lists-for-large-bulk-transfers

2012-10-14 Thread Hans de Goede
Hi, On 10/12/2012 05:08 PM, Henrik Rydberg wrote: Hi Alan, Instead of introducing a new local variable, why not simply update uurb->buffer? That's what we do elsewhere in the code. It seemed fragile, due to these scary lines: if (is_in && uurb->buffer_length > 0) a

Re: [PATCH 2/5] USB: ftdi_sio: fix tiocmget and tiocmset return values

2012-10-14 Thread Johan Hovold
On Sat, Oct 13, 2012 at 05:35:20PM +0200, Johan Hovold wrote: > Make sure we do not return USB-internal error codes to userspace. > > Signed-off-by: Johan Hovold > --- > drivers/usb/serial/ftdi_sio.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/usb/serial

Re: [RFC] USB: cdc-wdm: Extend and improve subdriver interface

2012-10-14 Thread Bjørn Mork
Oliver Neukum writes: > On Tuesday 04 September 2012 17:32:17 Bjørn Mork wrote: >> Oliver Neukum writes: >> > On Tuesday 04 September 2012 15:45:36 Bjørn Mork wrote: > >> >> USB_CDC_NOTIFY_NETWORK_CONNECTION and USB_CDC_NOTIFY_SPEED_CHANGE. >> >> cdc-wdm will just debug print USB_CDC_NOTIFY_NETWO

Re: [stable] xHCI: handle command after aborting the command ring

2012-10-14 Thread Ben Hutchings
On Sat, 2012-10-13 at 12:00 -0700, Jonathan Nieder wrote: > Hi Ben, > > Ben Hutchings wrote: > > > I'm trying to apply: > > > > commit b63f4053cc8aa22a98e3f9a97845afe6c15d0a0d > [...] > > to 3.2.y. A simple cherry-pick doesn't compile because the inc_deq() > > function requires a 3rd argument ('