Re: musb gadget HUB traffic sniffing/forwarding

2015-07-03 Thread Alan Stern
On Thu, 2 Jul 2015, Y. Zhang wrote: Hi all, I'm new to linux usb and would like some guidance on achieving some of the following goals. I have a beaglebone black (BBB - currently running kernel v3.12) with OTG in peripheral mode on usb bus#1 and a host port to connect devices on usb

Re: [Spice-devel] [RFC PATCH 1/1] Add a usbredir kernel module to remotely connect USB devices over IP.

2015-07-03 Thread Alan Stern
On Fri, 3 Jul 2015, Krzysztof Opasiak wrote: The point is that a device driver like usbip _cannot_ isolate the running kernel from the vagaries of the network transport if part of that transport occurs in userspace. If any part of the transport passes through userspace, you can end up

Re: Cannot use the logitech k520 (046d:c52b) to unlock my luks disk at boot time

2015-07-03 Thread Glasswall Information Point
Just to start of with information I do have: I have compiled the last 3.x and the first 4.x version of the kernel.org site longterm: *3.18.17 *Somewhere in between these 2 it broke* *stable: *4.0.7 *Im quite new with kernel development related stuff (including git)* *So I give you this

Re: [PATCH 1/1] usb: gadget: composite: only control read may need zero length packet

2015-07-03 Thread Alan Stern
On Fri, 3 Jul 2015, Peter Chen wrote: According to the USB 2.0 Spec CH5.5.3 and CH8.5.3.2, only control read (IN) needs zero length packet. Cc: Alan Stern st...@rowland.harvard.edu Signed-off-by: Peter Chen peter.c...@freescale.com --- drivers/usb/gadget/composite.c | 6 -- 1 file

Re: [PATCH v3] usb: xhci: Add support for URB_ZERO_PACKET to bulk/sg transfers

2015-07-03 Thread Mathias Nyman
On 02.07.2015 22:00, Reyad Attiyat wrote: This version of the patch changes last_trb varible name to last_trb_num and fixes code style. I have also added a td to the urb td array. This now gets prepared properl,y with prepare_transfer(), and is handled correctly when transferred and completed.

Re: About zero-length packet design for EHCI

2015-07-03 Thread Alan Stern
On Fri, 3 Jul 2015, Peter Chen wrote: Thanks, I think I understand it now. Maybe only the case A like below commit needs zero-length packet. usb: chipidea: udc: Disable auto ZLP generation on ep0 953c66469735aed8d2ada639a72b150f01dae605 Case A (as described in that commit) definitely

Re: [PATCH] xHCI: FSE handled cleanly by incrementing event dequeue pointer

2015-07-03 Thread Mathias Nyman
Hi On 03.07.2015 09:35, SAUROV KANTI SHYAM wrote: Hi Mathias The kernel version is 3.8.2, but patches of 3.17 are back ported into it. Ok, there are many xhci changes since 3.8 so this might be anything. Is it possible for you to try and reproduce this with a fresh kernel? 4.1 maybe? Event

Re: Configfs usb mass_storage device always reports 8 LUNs ?

2015-07-03 Thread Felipe Balbi
On Fri, Jul 03, 2015 at 01:33:32PM +0200, Michal Nazarewicz wrote: On 07/02/2015 09:14 PM, Felipe Balbi wrote: for the -rc cycle we need a minimal fix, though. Simplification, refactoring and whatever else, needs to be merged during merge window. On Thu, Jul 02 2015, Krzysztof Opasiak

Re: XHCI, brain-dead scanner, and microframe rounding

2015-07-03 Thread Gunter Königsmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Dear all, Did just downgrade sane again in order to see if it really was the combination of upgrading sane and the kernel. Seems like it only was the kernel. Thanks again, and kind regards, Gunter. On 04.07.2015 00:05, Gunter Königsmann wrote:

Re: [PATCH] USB: ftdi_sio: add GPIO support

2015-07-03 Thread Grant Likely
On Tue, Jun 2, 2015 at 2:18 PM, Linus Walleij linus.wall...@linaro.org wrote: On Sat, May 30, 2015 at 10:29 PM, Grant Likely grant.lik...@secretlab.ca wrote: On Mon, Jul 7, 2014 at 6:31 PM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: However is the MFD cell approach acceptable?

Re: XHCI, brain-dead scanner, and microframe rounding

2015-07-03 Thread Gunter Königsmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Dear all, I just retested with the following setup: - linux kernel 4.1.1-040101 (stock kernel, vanilla flavour) - The newest driver from Epson - USB 3.0 enabled - iscan-backends from git - and the following line in a .rule file in

Re: [Spice-devel] [RFC PATCH 1/1] Add a usbredir kernel module to remotely connect USB devices over IP.

2015-07-03 Thread Krzysztof Opasiak
On 07/02/2015 10:20 PM, Alan Stern wrote: On Thu, 2 Jul 2015, Jeremy White wrote: Oliver is talking about the danger of having part of the communication path for a block device run through userspace. Imagine a situation where the client uses a USB storage device provided by the server as a

Re: musb gadget HUB traffic sniffing/forwarding

2015-07-03 Thread Krzysztof Opasiak
On 07/03/2015 05:48 AM, Felipe Balbi wrote: Hi, On Thu, Jul 02, 2015 at 06:02:50PM -0700, Y. Zhang wrote: Hi all, I'm new to linux usb and would like some guidance on achieving some of the following goals. I have a beaglebone black (BBB - currently running kernel v3.12) with you need to

Re: Re: [PATCH] xHCI: FSE handled cleanly by incrementing event dequeue pointer

2015-07-03 Thread SAUROV KANTI SHYAM
Hi Mathias The kernel version is 3.8.2, but patches of 3.17 are back ported into it. Event ring dequeue is increased either in handle_tx_event(), cleanup: if (trb_comp_code == COMP_MISSED_INT || !ep-skip) { inc_deq(xhci, xhci-event_ring); Event ring dequeue should be

Re: [PATCH v2 4/5] usb: gadget: mass_storage: Use static array for luns

2015-07-03 Thread Michal Nazarewicz
On Fri, Jul 03 2015, Krzysztof Opasiak wrote: I'm looking on this code today an I see another option. We could simply remove nluns from opts and always iterate: for (i = 0; i ARRAY_SIZE(luns); ++i) if (luns[i]) { /* Do something useful */ } and add some simple

Re: [PATCH v2 4/5] usb: gadget: mass_storage: Use static array for luns

2015-07-03 Thread Krzysztof Opasiak
On 07/02/2015 09:40 PM, Krzysztof Opasiak wrote: On 07/02/2015 09:29 PM, Michal Nazarewicz wrote: On Thu, Jul 02 2015, Krzysztof Opasiak wrote: This patch replace dynamicly allocated luns array with static one. This simplifies the code of mass storage function and modules. It also fix

Re: Configfs usb mass_storage device always reports 8 LUNs ?

2015-07-03 Thread Michal Nazarewicz
On 07/02/2015 09:14 PM, Felipe Balbi wrote: for the -rc cycle we need a minimal fix, though. Simplification, refactoring and whatever else, needs to be merged during merge window. On Thu, Jul 02 2015, Krzysztof Opasiak wrote: Ok, sure. So the easiest way to fix problems in previously applied

[PATCH] usb: gadget: f_midi: fix error recovery path

2015-07-03 Thread Andrzej Pietrasiewicz
In case kstrdup() fails the resources to release are midi-in_port[] and midi. No cards have been registered, so no need to unregister any. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com --- drivers/usb/gadget/function/f_midi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)