Re: 4.1.2: AUKEY CB-H16 13+2port USB3 hub detection

2015-07-22 Thread Sarah Sharp
Adding Mathias Nyman (new USB 3.0 maintainer) and the USB mailing list. On Tue, Jul 21, 2015 at 11:21:18PM +0200, Martin MOKREJŠ wrote: Hi Sarah and Alan, I bought a new toy: 13port USB 3.0 HUB based on VIAlabs 812 chipset with two power-only charging ports: 1x1.5A and 1x2.4A (AUKEY CB-H16,

Re: [PATCH v7 08/23] usb: chipidea: set usb otg capabilities

2015-07-22 Thread Felipe Balbi
On Mon, Jul 13, 2015 at 09:03:14AM +0800, Peter Chen wrote: On Thu, Jul 09, 2015 at 09:22:09PM +0800, Li Jun wrote: On Thu, Jul 09, 2015 at 11:57:39AM +0300, Roger Quadros wrote: Hi, On 09/07/15 10:18, Li Jun wrote: Init and update otg capabilities by DT, set gadget's otg

Re: [GIT PULL] USB fixes for v4.2-rc4

2015-07-22 Thread Greg KH
On Wed, Jul 22, 2015 at 09:04:44AM -0500, Felipe Balbi wrote: Hi Greg, A second fixes pull request, seems like there won't be any more fixes coming through me; either that or I'll be proven wrong :-) cheers The following changes since commit 52721d9d3334c1cb1f76219a161084094ec634dc:

Re: [PATCH v7 00/23] usb gadget update for OTG 2.0

2015-07-22 Thread Felipe Balbi
On Thu, Jul 09, 2015 at 03:18:37PM +0800, Li Jun wrote: Change for v7: - Free otg descriptor when failure of bind in patch 21, 22, 23. add Roger's Reviewed-by for patch 10~20. - Choose the lesser otg-rev if otg-rev has been set before update by DT, remove 0x0300 in supported otg-rev list,

Re: [PATCH v7 4/4] USB: io_ti: Add heartbeat to keep idle Edgeport ports from disconnecting

2015-07-22 Thread Peter Berger
On Wed, 2015-07-15 at 11:42 +0200, Johan Hovold wrote: On Sun, Jun 28, 2015 at 01:28:21PM -0500, Peter E. Berger wrote: From: Peter E. Berger pber...@brimson.com When using newer Edgeport devices such as the EP/416, idle ports are automatically bounced (disconnected and then reconnected)

Re: [PATCH] Fix data loss in cdc-acm

2015-07-22 Thread Oliver Neukum
On Wed, 2015-07-22 at 10:30 -0400, Peter Hurley wrote: 3. Pre-allocate space _before_ the data arrives (with tty_buffer_request_room()); this is applicable to subsystems which know how much data can be in-flight at any one time. This guarantees that when rx data arrives buffer space is

Re: [PATCH v7 2/4] USB: io_ti: Move request_firmware() calls out of download_fw()

2015-07-22 Thread Peter Berger
On Wed, 2015-07-15 at 11:21 +0200, Johan Hovold wrote: Hi Johan: Thanks for another thoughtful and helpful review. I think I have addressed all the issues you noted and have a v8 patchset just about ready to submit. First I'll respond to each of the specific points here and in your other v7

Re: [PATCH v7 1/4] USB: io_ti: Increase insufficient timeout for firmware downloads

2015-07-22 Thread Peter Berger
On Wed, 2015-07-15 at 11:47 +0200, Johan Hovold wrote: On Sun, Jun 28, 2015 at 01:28:18PM -0500, Peter E. Berger wrote: From: Peter E. Berger pber...@brimson.com The io_ti driver fails to download firmware to Edgeport devices such as the EP/416. One of the problems is that the default 1

Re: [PATCH v7 3/4] USB: io_ti: Add firmware image sanity checks

2015-07-22 Thread Peter Berger
On Wed, 2015-07-15 at 11:36 +0200, Johan Hovold wrote: On Sun, Jun 28, 2015 at 01:28:20PM -0500, Peter E. Berger wrote: From: Peter E. Berger pber...@brimson.com Do what we can to verify that the driver's firmware image is valid (before attempting to download it to the Edgeport) by

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

2015-07-22 Thread Jeremy White
On 07/22/2015 09:34 AM, Greg KH wrote: On Wed, Jul 22, 2015 at 09:03:53AM -0500, Jeremy White wrote: On 07/09/2015 05:06 AM, Alex Elsayed wrote: Alan Stern wrote: On Mon, 6 Jul 2015, Jeremy White wrote: Anything else fundamental to usbip that should inform the design of a usbredir driver?

Re: [PATCH net-next] r8152: support the new RTL8153 chip

2015-07-22 Thread David Miller
From: Hayes Wang hayesw...@realtek.com Date: Wed, 22 Jul 2015 15:27:41 +0800 Support the new USB gigabit ethernet. Signed-off-by: Hayes Wang hayesw...@realtek.com Applied. -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to

Re: [PATCH v3 5/5] arm64: dts: mediatek: add xHCI usb phy for mt8173

2015-07-22 Thread Sergei Shtylyov
Hello. On 07/22/2015 05:05 PM, Chunfeng Yun wrote: add xHCI and phy drivers for MT8173-EVB Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 15 ++ arch/arm64/boot/dts/mediatek/mt8173.dtsi| 31

Re: Several races in usbnet module (kernel 4.1.x)

2015-07-22 Thread Eugene Shatokhin
21.07.2015 17:22, Oliver Neukum пишет: On Mon, 2015-07-20 at 21:13 +0300, Eugene Shatokhin wrote: And here, the code clears EVENT_RX_KILL bit in dev-flags, which may execute concurrently with the above operation: #0 clear_bit (bitops.h:113, inlined) #1 usbnet_bh (usbnet.c:1475) /*

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

2015-07-22 Thread Sean O. Stalley
On Wed, Jul 22, 2015 at 11:55:32AM -0500, Jeremy White wrote: I privately wrote to the Intel authors of that patch a week ago; I've publicly included them in this thread as well. As far as I can tell, they've been silent on this front since November; I fear that they may have moved on, or

Multiple drives on JMS56x-based sata-usb docking station.

2015-07-22 Thread Giulio Bernardi
Hi everybody, I just bought an Inateck FD2003 docking station which is based on a JMicron JMS56x Series controller (152d:1567). This docking station can host two sata drives. It works perfectly when one drive is inserted (in whathever slot), but if I try to use two drives together, only the

[PATCH v8 1/4] USB: io_ti: Increase insufficient timeout for firmware downloads

2015-07-22 Thread Peter E. Berger
From: Peter E. Berger pber...@brimson.com The io_ti driver fails to download firmware to Edgeport devices such as the EP/416 and EP/421 (devices with on-board E2PROM). One of the problems is that the default 1 second timeout in ti_vsend_sync() is insufficient for download operations. This patch

[PATCH v8 0/4] Fix idle port disconnects and firmware downloading

2015-07-22 Thread Peter E. Berger
From: Peter E. Berger pber...@brimson.com I found that when using the Edgeport EP/416, idle ports are regularly bounced (disconnected and then reconnected). I discussed this with the manufacturer (Digi International) and learned that EP/416 devices now ship from the factory running firmware that

[PATCH v8 2/4] USB: io_ti: Fix firmware version handling

2015-07-22 Thread Peter E. Berger
From: Peter E. Berger pber...@brimson.com The io_ti driver fails to download firmware to Edgeport devices such as the EP/416, even when the on-disk firmware image (/lib/firmware/edgeport/down3.bin) is more current than the version on the EP/416. The current download code is broken in a few ways.

[PATCH v8 4/4] USB: io_ti: Add heartbeat to keep idle EP/416 ports from disconnecting

2015-07-22 Thread Peter E. Berger
From: Peter E. Berger pber...@brimson.com When using Edgeport/416 models with newer firmware (sometime after firmware version 4.80.0), idle ports are automatically bounced (disconnected and then reconnected) approximately every 60 seconds. This breaks programs (e.g: minicom) where idle periods

[PATCH v8 3/4] USB: io_ti: Add firmware image sanity checks

2015-07-22 Thread Peter E. Berger
From: Peter E. Berger pber...@brimson.com Do what we can to verify that the driver's firmware image is valid (before attempting to download it to the Edgeport) by adding a new function, check_fw_sanity(), and a call to it in in download_fw(). Note: It looks like some Edgeports (models like the

[PATCH v2 1/1] usb: gadget: f_uac2: finalize wMaxPacketSize according to bandwidth

2015-07-22 Thread Peter Chen
According to USB Audio Device 2.0 Spec, Ch4.10.1.1: wMaxPacketSize is defined as follows: Maximum packet size this endpoint is capable of sending or receiving when this configuration is selected. This is determined by the audio bandwidth constraints of the endpoint. In current code, the

[PATCH net-next] r8152: support the new RTL8153 chip

2015-07-22 Thread Hayes Wang
Support the new USB gigabit ethernet. Signed-off-by: Hayes Wang hayesw...@realtek.com --- drivers/net/usb/r8152.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 7f6419e..57b72ec 100644 ---

Re: [PATCH v2 1/1] usb: gadget: f_uac2: finalize wMaxPacketSize according to bandwidth

2015-07-22 Thread Daniel Mack
On 07/22/2015 08:45 AM, Peter Chen wrote: According to USB Audio Device 2.0 Spec, Ch4.10.1.1: wMaxPacketSize is defined as follows: Maximum packet size this endpoint is capable of sending or receiving when this configuration is selected. This is determined by the audio bandwidth constraints

Re: [PATCH v2 1/1] usb: gadget: f_uac2: finalize wMaxPacketSize according to bandwidth

2015-07-22 Thread Peter Chen
On Wed, Jul 22, 2015 at 10:04:30AM +0200, Daniel Mack wrote: On 07/22/2015 08:45 AM, Peter Chen wrote: According to USB Audio Device 2.0 Spec, Ch4.10.1.1: wMaxPacketSize is defined as follows: Maximum packet size this endpoint is capable of sending or receiving when this configuration is

Re: [PATCH] Fix data loss in cdc-acm

2015-07-22 Thread Oliver Neukum
On Tue, 2015-07-21 at 12:45 -0400, Peter Hurley wrote: Let me know if you need help instrumenting the tty buffers/throttling to help figure out what the actual problem is. Regarding the patch itself, I have no opinion on the suitability of simply not resubmitting urbs. However, that is

Re: [PATCH v2 1/1] usb: gadget: f_uac2: finalize wMaxPacketSize according to bandwidth

2015-07-22 Thread Daniel Mack
On 07/22/2015 10:23 AM, Peter Chen wrote: On Wed, Jul 22, 2015 at 10:04:30AM +0200, Daniel Mack wrote: On 07/22/2015 08:45 AM, Peter Chen wrote: According to USB Audio Device 2.0 Spec, Ch4.10.1.1: wMaxPacketSize is defined as follows: Maximum packet size this endpoint is capable of sending or

Re: [PATCH] usb: dwc3: Reset the transfer resource index on SET_INTERFACE

2015-07-22 Thread Huang Rui
On Tue, Jul 21, 2015 at 09:29:17AM -0500, Felipe Balbi wrote: From: John Youn john.y...@synopsys.com This fixes an issue introduced in commit b23c843992b6 (usb: dwc3: gadget: fix DEPSTARTCFG for non-EP0 EPs) that made sure we would only use DEPSTARTCFG once per SetConfig. The trick is

[PATCH v4] usb: gadget: f_mass_storage: stop thread in bind failure case

2015-07-22 Thread Sanjay Singh Rawat
After the worker thread is launched, bind function is doing further configuration. In case of failure stop the thread. Signed-off-by: Sanjay Singh Rawat snjs...@gmail.com --- history: v3: - handled Michal's comment; used existing function to change state and exit thread. - tested for

Re: [PATCH v2 1/1] usb: gadget: f_uac2: finalize wMaxPacketSize according to bandwidth

2015-07-22 Thread Peter Chen
On Wed, Jul 22, 2015 at 10:04:30AM +0200, Daniel Mack wrote: On 07/22/2015 08:45 AM, Peter Chen wrote: According to USB Audio Device 2.0 Spec, Ch4.10.1.1: wMaxPacketSize is defined as follows: Maximum packet size this endpoint is capable of sending or receiving when this configuration is

RE: [PATCH] usb: dwc3: Reset the transfer resource index on SET_INTERFACE

2015-07-22 Thread Subbaraya Sundeep Bhatta
Hi Felipe, -Original Message- From: Felipe Balbi [mailto:ba...@ti.com] Sent: Tuesday, July 21, 2015 7:59 PM To: Linux USB Mailing List Cc: David Cohen; Subbaraya Sundeep Bhatta; Andy Gross; Kukjin Kim; Heikki Krogerus; Huang Rui; John Youn; sta...@vger.kernel.org; John Youn; Felipe

Re: [PATCH V2 1/4] usb: gadget: udc: bdc: Fix a driver crash on disconnect

2015-07-22 Thread Felipe Balbi
Hi, On Wed, Jul 22, 2015 at 04:58:07PM -0400, Al Cooper wrote: V2 - Fix a compiler bug that happend when the config options CONFIG_USB_GADGET_DEBUG and CONFIG_USB_GADGET_VERBOSE were enabled. this sort of version changes should be placed after the tearline so that when I git am this patch,

Re: [PATCH V2 1/4] usb: gadget: udc: bdc: Fix a driver crash on disconnect

2015-07-22 Thread Felipe Balbi
Hi, On Wed, Jul 22, 2015 at 06:27:29PM -0400, Alan Cooper wrote: On Wed, Jul 22, 2015 at 5:29 PM, Felipe Balbi ba...@ti.com wrote: On Wed, Jul 22, 2015 at 04:26:57PM -0500, Felipe Balbi wrote: On Wed, Jul 22, 2015 at 04:58:07PM -0400, Al Cooper wrote: V2 - Fix a compiler bug that happend

Re: [PATCH] usb: ulpi: call put_device if device_register fails

2015-07-22 Thread Felipe Balbi
On Wed, Jul 22, 2015 at 02:39:34PM -0700, Greg Kroah-Hartman wrote: On Tue, Jun 23, 2015 at 01:57:38PM +0300, Heikki Krogerus wrote: On Fri, Jun 19, 2015 at 01:12:36AM +0800, ChengYi He wrote: put_device is required to release the last reference to the device. Signed-off-by: ChengYi

Re: [PATCH v7 00/23] usb gadget update for OTG 2.0

2015-07-22 Thread Macpaul Lin
Hi Jun, 2015-07-23 7:57 GMT+08:00 Li Jun b47...@freescale.com: On Wed, Jul 22, 2015 at 10:13:08AM -0500, Felipe Balbi wrote: On Thu, Jul 09, 2015 at 03:18:37PM +0800, Li Jun wrote: Change for v7: - Free otg descriptor when failure of bind in patch 21, 22, 23. add Roger's Reviewed-by for

Re: [PATCH v3 0/5] Mediatek xHCI support

2015-07-22 Thread chunfeng yun
Sorry, add a title On Wed, 2015-07-22 at 22:05 +0800, Chunfeng Yun wrote: From ac1e8724bfa47494223bad0af450c1a63cd2fe0c Mon Sep 17 00:00:00 2001 From: Chunfeng Yun chunfeng@mediatek.com Date: Wed, 22 Jul 2015 21:15:15 +0800 Subject: [PATCH 0/5] *** SUBJECT HERE *** The patch supports

Re: Multiple drives on JMS56x-based sata-usb docking station.

2015-07-22 Thread Alan Stern
On Wed, 22 Jul 2015, Giulio Bernardi wrote: Hi everybody, I just bought an Inateck FD2003 docking station which is based on a JMicron JMS56x Series controller (152d:1567). This docking station can host two sata drives. It works perfectly when one drive is inserted (in whathever

Re: [PATCH v2 1/1] usb: gadget: f_uac2: finalize wMaxPacketSize according to bandwidth

2015-07-22 Thread Peter Chen
On Wed, Jul 22, 2015 at 12:11:55PM +0200, Daniel Mack wrote: On 07/22/2015 10:23 AM, Peter Chen wrote: On Wed, Jul 22, 2015 at 10:04:30AM +0200, Daniel Mack wrote: On 07/22/2015 08:45 AM, Peter Chen wrote: According to USB Audio Device 2.0 Spec, Ch4.10.1.1: wMaxPacketSize is defined as

Re: [PATCH] usb: ulpi: call put_device if device_register fails

2015-07-22 Thread Greg Kroah-Hartman
On Wed, Jul 22, 2015 at 09:04:40PM -0500, Felipe Balbi wrote: On Wed, Jul 22, 2015 at 02:39:34PM -0700, Greg Kroah-Hartman wrote: On Tue, Jun 23, 2015 at 01:57:38PM +0300, Heikki Krogerus wrote: On Fri, Jun 19, 2015 at 01:12:36AM +0800, ChengYi He wrote: put_device is required to release

Re: [Patch V4 1/3] usb: Add Xen pvUSB protocol description

2015-07-22 Thread Juergen Gross
On 07/23/2015 01:46 AM, Greg KH wrote: On Tue, Jun 23, 2015 at 08:53:23AM +0200, Juergen Gross wrote: Add the definition of pvUSB protocol used between the pvUSB frontend in a Xen domU and the pvUSB backend in a Xen driver domain (usually Dom0). This header was originally provided by Fujitsu

Re: [Patch V4 1/3] usb: Add Xen pvUSB protocol description

2015-07-22 Thread Greg KH
On Thu, Jul 23, 2015 at 06:04:39AM +0200, Juergen Gross wrote: On 07/23/2015 01:46 AM, Greg KH wrote: On Tue, Jun 23, 2015 at 08:53:23AM +0200, Juergen Gross wrote: Add the definition of pvUSB protocol used between the pvUSB frontend in a Xen domU and the pvUSB backend in a Xen driver domain

Re: [PATCH v3 42/46] usb: gadget: move ep_matches() from epautoconf to udc-core

2015-07-22 Thread Petr Cvek
Hello, Is this: case USB_ENDPOINT_XFER_INT: /* Bulk endpoints handle interrupt transfers, * except the toggle-quirky iso-synch kind */ if (!ep-caps.type_int !ep-caps.type_bulk) return 0; ... or

Re: [PATCH] usb: ulpi: call put_device if device_register fails

2015-07-22 Thread Felipe Balbi
Hi, On Wed, Jul 22, 2015 at 08:14:46PM -0700, Greg Kroah-Hartman wrote: On Wed, Jul 22, 2015 at 09:04:40PM -0500, Felipe Balbi wrote: On Wed, Jul 22, 2015 at 02:39:34PM -0700, Greg Kroah-Hartman wrote: On Tue, Jun 23, 2015 at 01:57:38PM +0300, Heikki Krogerus wrote: On Fri, Jun 19, 2015

[PATCH v8 09/23] usb: chipidea: update ci_otg_is_fsm_mode conditions

2015-07-22 Thread Li Jun
After introduce usb otg properties, update ci_otg_is_fsm_mode conditions to be depending on both usb hardware properties and usb driver config, also resolve a compile issue in debug.c after the API change. Signed-off-by: Li Jun jun...@freescale.com Acked-by: Peter Chen peter.c...@freescale.com

[PATCH v8 12/23] usb: gadget: ether: allocate and init otg descriptor by otg capabilities

2015-07-22 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations, free it while ether unbind. If otg capability is not defined, keep its otg descriptor unchanged. Signed-off-by: Li Jun jun...@freescale.com Reviewed-by: Roger Quadros rog...@ti.com

[PATCH v8 04/23] usb: add usb_otg_caps to usb_gadget structure.

2015-07-22 Thread Li Jun
From: Macpaul Lin macp...@gmail.com Add usb_otg_caps pointer to usb_gadget structure to indicate its otg capabilities. Signed-off-by: Macpaul Lin macp...@gmail.com Signed-off-by: Li Jun jun...@freescale.com Reviewed-by: Roger Quadros rog...@ti.com --- include/linux/usb/gadget.h | 2 ++ 1 file

[PATCH v8 07/23] usb: common: add API to update usb otg capabilities by device tree

2015-07-22 Thread Li Jun
Check property of usb hardware to update otg version and disable SRP, HNP and ADP if its disable flag is present. Signed-off-by: Li Jun jun...@freescale.com Reviewed-by: Roger Quadros rog...@ti.com --- drivers/usb/common/common.c | 56 +

[PATCH v8 08/23] usb: chipidea: set usb otg capabilities

2015-07-22 Thread Li Jun
Init and update otg capabilities by DT, set gadget's otg capabilities accordingly. Signed-off-by: Li Jun jun...@freescale.com Reviewed-by: Roger Quadros rog...@ti.com Acked-by: Peter Chen peter.c...@freescale.com --- drivers/usb/chipidea/core.c | 15 +++ drivers/usb/chipidea/udc.c

[PATCH v8 10/23] usb: gadget: add usb otg descriptor allocate and init interface

2015-07-22 Thread Li Jun
Allocate usb otg descriptor and initialize it according to gadget's otg capabilities, if usb_otg_caps is not set, keep settings as current gadget drivers. With this 2 new interfaces, gadget can use usb_otg_descriptor for OTG 1.x, and usb_otg20_descriptor for OTG 2.0 or above, and otg features can

[PATCH v8 05/23] usb: gadget: composite: add USB_DT_OTG request handling

2015-07-22 Thread Li Jun
From: Macpaul Lin macp...@gmail.com Copy usb_otg_descriptor from config's descriptor if host requests USB_DT_OTG. Signed-off-by: Macpaul Lin macp...@gmail.com Signed-off-by: Li Jun jun...@freescale.com Reviewed-by: Roger Quadros rog...@ti.com --- drivers/usb/gadget/composite.c | 27

[PATCH v8 03/23] usb: otg: add usb_otg_caps structure for otg capabilities

2015-07-22 Thread Li Jun
This patch adds a structure usb_otg_caps to cover all otg related capabilities of the device, including otg revision, and if hnp/srp/adp is supported. Signed-off-by: Li Jun jun...@freescale.com Reviewed-by: Roger Quadros rog...@ti.com --- include/linux/usb/otg.h | 15 +++ 1 file

[PATCH v8 01/23] usb: add usb_otg20_descriptor for OTG 2.0 and above

2015-07-22 Thread Li Jun
From: Macpaul Lin macp...@gmail.com OTG 2.0 introduces bcdOTG in otg descriptor to identify the OTG and EH supplement release number with which the OTG device is compliant, this patch adds structure usb_otg20_descriptor for OTG 2.0 and above. Signed-off-by: Macpaul Lin macp...@gmail.com

[PATCH v8 06/23] doc: dt-binding: usb: add otg related properties

2015-07-22 Thread Li Jun
Add otg version, srp, hnp and adp support for usb OTG port, then those OTG features don't have to be decided by usb gadget drivers. Signed-off-by: Li Jun jun...@freescale.com Reviewed-by: Roger Quadros rog...@ti.com --- Documentation/devicetree/bindings/usb/generic.txt | 15 +++ 1

[PATCH v8 02/23] usb: add USB_OTG_ADP definition

2015-07-22 Thread Li Jun
From: Macpaul Lin macp...@gmail.com Add USB_OTG_ADP definition for usb_otg_descriptor.bmAttributes. Signed-off-by: Macpaul Lin macp...@gmail.com Signed-off-by: Li Jun jun...@freescale.com Acked-by: Peter Chen peter.c...@freescale.com --- include/uapi/linux/usb/ch9.h | 1 + 1 file changed, 1

[PATCH v8 11/23] usb: gadget: configfs: allocate and init otg descriptor by otg capabilities

2015-07-22 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations, free it while composite unbind. If otg capability is not defined, keep its otg descriptor unchanged. Signed-off-by: Li Jun jun...@freescale.com Reviewed-by: Roger Quadros

[PATCH v8 13/23] usb: gadget: acm_ms: allocate and init otg descriptor by otg capabilities

2015-07-22 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations. If otg capability is not defined, keep its original otg descriptor unchanged. Signed-off-by: Li Jun jun...@freescale.com Reviewed-by: Roger Quadros rog...@ti.com ---

[PATCH v8 00/23] usb gadget update for OTG 2.0

2015-07-22 Thread Li Jun
Change for v8: - Add Peter's ACk for chipidea driver; and Roger's Reviewed-by for patch 07, 21~23. - Add ci-is_otg condition before enable ci-gadget.is_otg for chipidea driver in patch 8. Change for v7: - Free otg descriptor when failure of bind in patch 21, 22, 23. add Roger's Reviewed-by

[PATCH v8 23/23] usb: gadget: zero: allocate and init otg descriptor by otg capabilities

2015-07-22 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations. If otg capability is not defined, keep its original otg descriptor unchanged. Signed-off-by: Li Jun jun...@freescale.com Reviewed-by: Roger Quadros rog...@ti.com ---

[PATCH v8 17/23] usb: gadget: hid: allocate and init otg descriptor by otg capabilities

2015-07-22 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations. If otg capability is not defined, keep its original otg descriptor unchanged. Signed-off-by: Li Jun jun...@freescale.com Reviewed-by: Roger Quadros rog...@ti.com ---

[PATCH v8 15/23] usb: gadget: cdc2: allocate and init otg descriptor by otg capabilities

2015-07-22 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations. If otg capability is not defined, keep its original otg descriptor unchanged. Signed-off-by: Li Jun jun...@freescale.com Reviewed-by: Roger Quadros rog...@ti.com ---

[PATCH v8 16/23] usb: gadget: g_ffs: allocate and init otg descriptor by otg capabilities

2015-07-22 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations. If otg capability is not defined, keep its original otg descriptor unchanged. Signed-off-by: Li Jun jun...@freescale.com Reviewed-by: Roger Quadros rog...@ti.com ---

[PATCH v8 21/23] usb: gadget: printer: allocate and init otg descriptor by otg capabilities

2015-07-22 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations. If otg capability is not defined, keep its original otg descriptor unchanged. Signed-off-by: Li Jun jun...@freescale.com Reviewed-by: Roger Quadros rog...@ti.com ---

[PATCH v8 14/23] usb: gadget: audio: allocate and init otg descriptor by otg capabilities

2015-07-22 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations. If otg capability is not defined, keep its original otg descriptor unchanged. Signed-off-by: Li Jun jun...@freescale.com Reviewed-by: Roger Quadros rog...@ti.com ---

[PATCH v8 19/23] usb: gadget: multi: allocate and init otg descriptor by otg capabilities

2015-07-22 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations. If otg capability is not defined, keep its original otg descriptor unchanged. Signed-off-by: Li Jun jun...@freescale.com Reviewed-by: Roger Quadros rog...@ti.com ---

[PATCH v8 22/23] usb: gadget: serial: allocate and init otg descriptor by otg capabilities

2015-07-22 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations. If otg capability is not defined, keep its original otg descriptor unchanged. Signed-off-by: Li Jun jun...@freescale.com Reviewed-by: Roger Quadros rog...@ti.com ---

[PATCH v8 18/23] usb: gadget: mass_storage: allocate and init otg descriptor by otg capabilities

2015-07-22 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations. If otg capability is not defined, keep its original otg descriptor unchanged. Signed-off-by: Li Jun jun...@freescale.com Reviewed-by: Roger Quadros rog...@ti.com ---

[PATCH v8 20/23] usb: gadget: ncm: allocate and init otg descriptor by otg capabilities

2015-07-22 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations. If otg capability is not defined, keep its original otg descriptor unchanged. Signed-off-by: Li Jun jun...@freescale.com Reviewed-by: Roger Quadros rog...@ti.com ---

Re: [PATCH V2 1/4] usb: gadget: udc: bdc: Fix a driver crash on disconnect

2015-07-22 Thread Felipe Balbi
On Wed, Jul 22, 2015 at 04:58:07PM -0400, Al Cooper wrote: V2 - Fix a compiler bug that happend when the config options CONFIG_USB_GADGET_DEBUG and CONFIG_USB_GADGET_VERBOSE were enabled. ep_dequeue() in bdc_ep.c was capturing the hw dequeue pointer incorrectly by reading the wrong register

Re: [PATCH] Fix data loss in cdc-acm

2015-07-22 Thread Peter Hurley
Hi Sven, On 07/21/2015 08:47 PM, Sven Brauch wrote: On 22/07/15 01:34, Peter Hurley wrote: I'd like to see that data, if you can, which will help me understand at least the timing. Sure, please see below for the code which produced the output and the actual output. Let me know if you need

Re: [PATCH] usb: ulpi: call put_device if device_register fails

2015-07-22 Thread Greg Kroah-Hartman
On Tue, Jun 23, 2015 at 01:57:38PM +0300, Heikki Krogerus wrote: On Fri, Jun 19, 2015 at 01:12:36AM +0800, ChengYi He wrote: put_device is required to release the last reference to the device. Signed-off-by: ChengYi He chengyihetai...@gmail.com --- drivers/usb/common/ulpi.c | 4 +++-

Re: [PATCH v3]USB:OHCI: BugFix:Proper handling of ed_rm_list to handle race condition between usb_kill_urb() and finish_unlinks()

2015-07-22 Thread Greg KH
On Sat, Jul 11, 2015 at 12:04:26PM +, AMAN DEEP wrote: There is a race condition between finish_unlinks-finish_urb() function and usb_kill_urb() in ohci controller case. The finish_urb calls spin_unlock(ohci-lock) before usb_hcd_giveback_urb() function call, then if during this

Re: [PATCH V2 1/4] usb: gadget: udc: bdc: Fix a driver crash on disconnect

2015-07-22 Thread Alan Cooper
On Wed, Jul 22, 2015 at 5:29 PM, Felipe Balbi ba...@ti.com wrote: On Wed, Jul 22, 2015 at 04:26:57PM -0500, Felipe Balbi wrote: On Wed, Jul 22, 2015 at 04:58:07PM -0400, Al Cooper wrote: V2 - Fix a compiler bug that happend when the config options CONFIG_USB_GADGET_DEBUG and

[PATCH V2 1/4] usb: gadget: udc: bdc: Fix a driver crash on disconnect

2015-07-22 Thread Al Cooper
V2 - Fix a compiler bug that happend when the config options CONFIG_USB_GADGET_DEBUG and CONFIG_USB_GADGET_VERBOSE were enabled. ep_dequeue() in bdc_ep.c was capturing the hw dequeue pointer incorrectly by reading the wrong register for the upper 32 bits. The header file defining the registers

Re: [PATCH V2 1/4] usb: gadget: udc: bdc: Fix a driver crash on disconnect

2015-07-22 Thread Felipe Balbi
On Wed, Jul 22, 2015 at 04:26:57PM -0500, Felipe Balbi wrote: On Wed, Jul 22, 2015 at 04:58:07PM -0400, Al Cooper wrote: V2 - Fix a compiler bug that happend when the config options CONFIG_USB_GADGET_DEBUG and CONFIG_USB_GADGET_VERBOSE were enabled. ep_dequeue() in bdc_ep.c was

Re: [PATCH] Fix data loss in cdc-acm

2015-07-22 Thread Sven Brauch
Hi, On 23/07/15 00:12, Peter Hurley wrote: The premature unthrottle actually leads to the data loss but the throttling with a mere 2K left is _way too late_. Ok, yes, I think so too. 10ms is a _really_ long time for a cpu not to attend to a kworker. Which raises 2 questions: 1. What are the

Re: [PATCH v5 4/6] usb: interface authorization: Introduces the USB interface authorization.

2015-07-22 Thread Greg KH
On Thu, Jun 18, 2015 at 07:23:24PM +0200, Stefan Koch wrote: The kernel supports the device authorization because of wireless USB. These is usable for wired USB devices, too. These new interface authorization allows to enable or disable individual interfaces instead a whole device. If a

Re: [PATCH v5 3/6] usb: interface authorization: Control interface probing and claiming

2015-07-22 Thread Greg KH
On Thu, Jun 18, 2015 at 07:23:23PM +0200, Stefan Koch wrote: Driver probings and interface claims get rejected if an interface is not authorized. Signed-off-by: Stefan Koch sk...@suse.de --- drivers/usb/core/driver.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

Re: [Patch V4 1/3] usb: Add Xen pvUSB protocol description

2015-07-22 Thread Greg KH
On Tue, Jun 23, 2015 at 08:53:23AM +0200, Juergen Gross wrote: Add the definition of pvUSB protocol used between the pvUSB frontend in a Xen domU and the pvUSB backend in a Xen driver domain (usually Dom0). This header was originally provided by Fujitsu for Xen based on Linux 2.6.18.

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

2015-07-22 Thread Jeremy White
On 07/22/2015 12:59 PM, Sean O. Stalley wrote: On Wed, Jul 22, 2015 at 11:55:32AM -0500, Jeremy White wrote: I privately wrote to the Intel authors of that patch a week ago; I've publicly included them in this thread as well. As far as I can tell, they've been silent on this front since

Re: [PATCH v5 1/6] usb: interface authorization: Declare authorized attribute

2015-07-22 Thread Greg KH
On Thu, Jun 18, 2015 at 07:23:21PM +0200, Stefan Koch wrote: The attribute authorized shows the authorization state for an interface. Signed-off-by: Stefan Koch sk...@suse.de --- include/linux/usb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/usb.h

Re: [PATCH v5 2/6] usb: interface authorization: Introduces the default interface authorization

2015-07-22 Thread Greg KH
On Thu, Jun 18, 2015 at 07:23:22PM +0200, Stefan Koch wrote: Interfaces are allowed per default. This can disabled or enabled (again) by writing 0 or 1 to /sys/bus/usb/devices/usbX/interface_authorized_default Signed-off-by: Stefan Koch sk...@suse.de --- drivers/usb/core/hcd.c | 52

Re: [PATCH v5 5/6] usb: interface authorization: SysFS part of USB interface authorization.

2015-07-22 Thread Greg KH
On Thu, Jun 18, 2015 at 07:23:25PM +0200, Stefan Koch wrote: This introduces an attribute for each interface to authorize (1) or deauthorize (0) it: /sys/bus/usb/devices/INTERFACE/authorized Signed-off-by: Stefan Koch sk...@suse.de --- drivers/usb/core/sysfs.c | 41

Re: [PATCH v7 00/23] usb gadget update for OTG 2.0

2015-07-22 Thread Li Jun
On Wed, Jul 22, 2015 at 10:13:08AM -0500, Felipe Balbi wrote: On Thu, Jul 09, 2015 at 03:18:37PM +0800, Li Jun wrote: Change for v7: - Free otg descriptor when failure of bind in patch 21, 22, 23. add Roger's Reviewed-by for patch 10~20. - Choose the lesser otg-rev if otg-rev has been

[PATCH v3 4/5] xhci: mediatek: support MTK xHCI host controller

2015-07-22 Thread Chunfeng Yun
MTK xhci host controller defines some extra SW scheduling parameters for HW to minimize the scheduling effort for synchronous and interrupt endpoints. The parameters are put into reseved DWs of slot context and endpoint context Signed-off-by: Chunfeng Yun chunfeng@mediatek.com ---

[no subject]

2015-07-22 Thread Chunfeng Yun
From ac1e8724bfa47494223bad0af450c1a63cd2fe0c Mon Sep 17 00:00:00 2001 From: Chunfeng Yun chunfeng@mediatek.com Date: Wed, 22 Jul 2015 21:15:15 +0800 Subject: [PATCH 0/5] *** SUBJECT HERE *** The patch supports MediaTek's xHCI controller. There are some differences from xHCI spec: 1. The

[PATCH v3 5/5] arm64: dts: mediatek: add xHCI usb phy for mt8173

2015-07-22 Thread Chunfeng Yun
add xHCI and phy drivers for MT8173-EVB Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 15 ++ arch/arm64/boot/dts/mediatek/mt8173.dtsi| 31 + 2 files changed, 46 insertions(+) diff --git

[PATCH v3 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-07-22 Thread Chunfeng Yun
add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- .../devicetree/bindings/usb/mt8173-xhci.txt| 50 ++ 1 file changed, 50 insertions(+) create mode 100644

Re: [PATCH v3 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-07-22 Thread Mark Rutland
On Wed, Jul 22, 2015 at 03:05:42PM +0100, Chunfeng Yun wrote: add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- .../devicetree/bindings/usb/mt8173-xhci.txt| 50 ++

Re: [PATCH] Fix data loss in cdc-acm

2015-07-22 Thread Peter Hurley
On 07/22/2015 04:40 AM, Oliver Neukum wrote: On Tue, 2015-07-21 at 12:45 -0400, Peter Hurley wrote: Let me know if you need help instrumenting the tty buffers/throttling to help figure out what the actual problem is. Regarding the patch itself, I have no opinion on the suitability of simply

[GIT PULL] USB fixes for v4.2-rc4

2015-07-22 Thread Felipe Balbi
Hi Greg, A second fixes pull request, seems like there won't be any more fixes coming through me; either that or I'll be proven wrong :-) cheers The following changes since commit 52721d9d3334c1cb1f76219a161084094ec634dc: Linux 4.2-rc3 (2015-07-19 14:45:02 -0700) are available in the git

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

2015-07-22 Thread Jeremy White
On 07/09/2015 05:06 AM, Alex Elsayed wrote: Alan Stern wrote: On Mon, 6 Jul 2015, Jeremy White wrote: Anything else fundamental to usbip that should inform the design of a usbredir driver? usbip appears to be based off a 2004 vintage of dummy_hcd. I'll look thoughtfully at the current

[PATCH v3 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-07-22 Thread Chunfeng Yun
support usb3.0 phy of mt65xx SoCs Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- drivers/phy/Kconfig | 9 + drivers/phy/Makefile | 1 + drivers/phy/phy-mt65xx-usb3.c | 426 ++ 3 files changed, 436 insertions(+) create

[PATCH v3 1/5] dt-bindings: Add usb3.0 phy binding for MT65xx SoCs

2015-07-22 Thread Chunfeng Yun
add a DT binding documentation of usb3.0 phy for MT65xx SoCs from Mediatek. Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- .../devicetree/bindings/phy/phy-mt65xx-u3.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644

Re: xhci_hcd 0000:00:14.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 1

2015-07-22 Thread Arkadiusz Miskiewicz
[sorry, resend from different email - vger postmaster team has stupid filters in place] On Tuesday 21 of July 2015, Mathias Nyman wrote: On 20.07.2015 23:13, Arkadiusz Miskiewicz wrote: On Saturday 18 of July 2015, Arkadiusz Miskiewicz wrote: Hi. I'm on 4.2.0-rc2-00077-gf760b87 kernel

Re: [PATCH v3 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-07-22 Thread Felipe Balbi
Hi, On Wed, Jul 22, 2015 at 10:05:43PM +0800, Chunfeng Yun wrote: support usb3.0 phy of mt65xx SoCs Signed-off-by: Chunfeng Yun chunfeng@mediatek.com you missed Kishon here. --- drivers/phy/Kconfig | 9 + drivers/phy/Makefile | 1 +

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

2015-07-22 Thread Greg KH
On Wed, Jul 22, 2015 at 09:03:53AM -0500, Jeremy White wrote: On 07/09/2015 05:06 AM, Alex Elsayed wrote: Alan Stern wrote: On Mon, 6 Jul 2015, Jeremy White wrote: Anything else fundamental to usbip that should inform the design of a usbredir driver? usbip appears to be based off a 2004