Re: Low performance of g_mass_storage virtual usb device

2013-09-05 Thread Victor Leschuk
Hello, thanks for the answer. Maybe I sound stupid but how can I tell g_mass_storage which controller to use? If I unload dummy_hcd and then try to modprobe g_mass_storage I get an error "no such device". # lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID

Re: [PATCH] usb: gadget LLVMLinux: Removing the use of VLAIS from the gadget driver

2013-09-05 Thread Behan Webster
Replying to my patch email just in case it was missed before. Thanks, Behan On 08/01/13 21:35, beh...@converseincode.com wrote: From: Behan Webster The use of variable length arrays in structs (VLAIS) in the Linux Kernel code precludes the use of compilers which don't implement VLAIS (for in

[RFC PATCH] usb: gadget/uvc: add streaming and data event handling

2013-09-05 Thread Michael Grzeschik
This patch lets the kernel handle setup and data events of the uvc gadget. It is generating its response data by the prepared usb uvc control descriptores. For now only simple probe and commit events are generated and stored inside the uvc_device structure. Signed-off-by: Michael Grzeschik ---

Re: Bug 60810 - Kernel oops with controller XHCI while wait usb packet

2013-09-05 Thread Sarah Sharp
On Thu, Sep 05, 2013 at 11:15:14AM +0300, Mathias Nyman wrote: > On 09/04/2013 11:21 PM, Giovanni wrote: > >> How can I close the bug on bugzilla? > >> > >>Thank you > >>Giovanni > > > >Hi Mathias, > > > >I tried your patch with kernel 3.11 and works well also with this version. > > > >Thank you >

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

2013-09-05 Thread Oliver Neukum
On Tue, 2013-08-20 at 12:35 +0200, Bjørn Mork wrote: > bjorn@nemi:~$ mbimcli -d /dev/cdc-wdm0 --query-packet-service-state How does that work internally? > So I propose that we add something like this to cdc-wdm instead of > extending the If you think the speed will also be handled at a non-ge

Re: Bug 60810 - Kernel oops with controller XHCI while wait usb packet

2013-09-05 Thread Greg KH
On Thu, Sep 05, 2013 at 10:52:10AM -0700, Sarah Sharp wrote: > On Thu, Sep 05, 2013 at 11:15:14AM +0300, Mathias Nyman wrote: > > On 09/04/2013 11:21 PM, Giovanni wrote: > > >> How can I close the bug on bugzilla? > > >> > > >>Thank you > > >>Giovanni > > > > > >Hi Mathias, > > > > > >I tried your

Re: [PATCH RESEND net-next] net: usbnet: update addr_assign_type if appropriate

2013-09-05 Thread David Miller
From: Bjørn Mork Date: Wed, 4 Sep 2013 09:42:32 +0200 > This module generates a common default address on init, > using eth_random_addr. Set addr_assign_type to let > userspace know the address is random unless it was > overridden by the minidriver. > > Signed-off-by: Bjørn Mork > Acked-by: Ol

[PATCH v2] usb-serial: Moxa UPORT 12XX/14XX/16XX driver

2013-09-05 Thread Andrew Lunn
Add a driver which supports the following Moxa USB to serial converters: * 2 ports : UPort 1250, UPort 1250I * 4 ports : UPort 1410, UPort 1450, UPort 1450I * 8 ports : UPort 1610-8, UPort 1650-8 * 16 ports : UPort 1610-16, UPort 1650-16 The UPORT devices don't directy fit t

Re: Low performance of g_mass_storage virtual usb device

2013-09-05 Thread Alan Stern
On Thu, 5 Sep 2013, Victor Leschuk wrote: > Hello all, > > I have recently faced a performance problem with usb gadget emulated > USB flash drive. It is working fine except for very low performance. > > I use a 4Gb file, created by dd and created a ext2 or vfat (tried > both) partition on it. Th

Re: [PATCH] HID: New hid-cp2112 driver.

2013-09-05 Thread Oliver Neukum
On Wed, 2013-08-21 at 15:11 -0500, David Barksdale wrote: > From: David Barksdale > +static int cp2112_wait(struct cp2112_device *dev, atomic_t *avail) > +{ > + int ret = 0; > + > + ret = wait_event_interruptible_timeout(dev->wait, > + atomic_read(avail), msecs_to_jiffies(50))

[Pull request] Fix moxa firmware filenames

2013-09-05 Thread Andrew Lunn
Hi David, Ben. I messed up with the Moxa firmware. I have the filenames wrong, due to one too many decimal to hex conversions of the USB product ID. I could work around this in the driver, but it would be a lot better to rename the files. Here is a pull request to fix the issue. Thanks An

Re: Bug 60810 - Kernel oops with controller XHCI while wait usb packet

2013-09-05 Thread Mathias Nyman
On 09/04/2013 11:21 PM, Giovanni wrote: > Full Headers Printable View > > This was very helpful. > > Looks like when an address command times out, the xHCI > > command ring is first aborted and then stopped. An event with stop bit set > > on a empty > > command ring w

Low performance of g_mass_storage virtual usb device

2013-09-05 Thread Victor Leschuk
Hello all, I have recently faced a performance problem with usb gadget emulated USB flash drive. It is working fine except for very low performance. I use a 4Gb file, created by dd and created a ext2 or vfat (tried both) partition on it. Than I mount it using the following command sequence:

[PATCH] xhci: Fix oops happending after address device timeout

2013-09-05 Thread Mathias Nyman
When a command times out, the command ring is first aborted, and then stopped. If the command ring is empty when it is stopped the stop event will point to next command which is not yet set. xHIC tries to handle this next event often causing an oops Don't handle command completion events on stoppe

Re: [PATCH 4/5] uas: add dead request list

2013-09-05 Thread Oliver Neukum
On Mon, 2013-09-02 at 13:25 +0200, Gerd Hoffmann wrote: > +static void uas_zap_dead(struct uas_dev_info *devinfo) > +{ > + struct uas_cmd_info *cmdinfo; > + struct uas_cmd_info *temp; > + struct list_head list; > + unsigned long flags; > + > + spin_lock_irq(&uas_lists_