[PATCH 1/3] usb: chipidea: add system interface for ttctrl.ttha

2016-01-31 Thread Peter Chen
In chipidea IP RTL, there is a very limited design for siTD, the detail like below: There is no Max Packet Size at siTD, so it uses one constant for both Max Packet Size for packet and the packet size for the last transaction when considering schedule. If the ttctrl.ttha does not match against Hub

[PATCH 3/3] Revert "usb: chipidea: imx: enable CI_HDRC_SET_NON_ZERO_TTHA"

2016-01-31 Thread Peter Chen
This reverts commit e765bfb73ff7. In the most of cases, we only use one transaction per frame and the frame rate may be high, If the platforms want to support multiple transactions but less frame rate cases like [1] and [2], it can set "non-zero-ttctrl-ttha" at dts. [1] http://www.spinics.net/lis

[PATCH 2/3] doc: usb: ci-hdrc-usb2: add property non-zero-ttctrl-ttha

2016-01-31 Thread Peter Chen
If this property is not set, the max packet size is 1023 bytes, and if the total of packet size for pervious transactions are more than 256 bytes, it can't accept any transactions within this frame. The use case is single transaction, but higher frame rate. If this property is set, the max packet

Re: [PATCH v6 18/22] usb: dwc2: host: Schedule periodic right away if it's time

2016-01-31 Thread Doug Anderson
Kever, On Sun, Jan 31, 2016 at 7:32 PM, Kever Yang wrote: > Doug, > > > On 02/01/2016 06:09 AM, Doug Anderson wrote: >> >> Kever, >> >> On Sun, Jan 31, 2016 at 1:36 AM, Kever Yang >> wrote: >>> >>> Doug, >>> >>> >>> On 01/29/2016 10:20 AM, Douglas Anderson wrote: In dwc2_hcd_qh_deactiv

Re: [PATCH v6 18/22] usb: dwc2: host: Schedule periodic right away if it's time

2016-01-31 Thread Kever Yang
Doug, On 02/01/2016 06:09 AM, Doug Anderson wrote: Kever, On Sun, Jan 31, 2016 at 1:36 AM, Kever Yang wrote: Doug, On 01/29/2016 10:20 AM, Douglas Anderson wrote: In dwc2_hcd_qh_deactivate() we will put some things on the periodic_sched_ready list. These things won't be taken off the read

Re: USB: gadget: add USB Audio Gadget driver

2016-01-31 Thread Clemens Ladisch
Alan Stern wrote: > On Sun, 31 Jan 2016, Clemens Ladisch wrote: >> Alan Stern wrote: >>> On Fri, 29 Jan 2016, Dan Carpenter wrote: The patch c6994e6f067c: "USB: gadget: add USB Audio Gadget driver" from Jun 3, 2009, leads to the following static checker warning: drivers/usb/g

Re: [PATCH v6 10/22] usb: dwc2: host: Properly set the HFIR

2016-01-31 Thread Doug Anderson
Kever, On Sun, Jan 31, 2016 at 1:23 AM, Kever Yang wrote: > Doug, > > On 01/29/2016 10:20 AM, Douglas Anderson wrote: >> >> According to the most up to date version of the dwc2 databook, the FRINT >> field of the HFIR register should be programmed to: >> * 125 us * (PHY clock freq for HS) - 1 >>

Re: [PATCH v6 18/22] usb: dwc2: host: Schedule periodic right away if it's time

2016-01-31 Thread Doug Anderson
Kever, On Sun, Jan 31, 2016 at 1:36 AM, Kever Yang wrote: > Doug, > > > On 01/29/2016 10:20 AM, Douglas Anderson wrote: >> >> In dwc2_hcd_qh_deactivate() we will put some things on the >> periodic_sched_ready list. These things won't be taken off the ready >> list until the next SOF, which might

Re: USB: gadget: add USB Audio Gadget driver

2016-01-31 Thread Alan Stern
On Sun, 31 Jan 2016, Clemens Ladisch wrote: > Alan Stern wrote: > > On Fri, 29 Jan 2016, Dan Carpenter wrote: > >> The patch c6994e6f067c: "USB: gadget: add USB Audio Gadget driver" > >> from Jun 3, 2009, leads to the following static checker warning: > >> > >>drivers/usb/gadget/function/f_uac

Re: [PATCH 11/14] USB: serial: mos7840: move constants to right

2016-01-31 Thread Bjørn Mork
Mathieu OTHACEHE writes: > This patch fixes the following coccinelle warnings: > > drivers/usb/serial/mos7840.c:2042:4-10: Move constant to right. > drivers/usb/serial/mos7840.c:2062:16-22: Move constant to right. > > Signed-off-by: Mathieu OTHACEHE > --- > drivers/usb/serial/mos7840.c | 4 ++--

Re: [PATCH v2] USB: option: add support for SIM7100E

2016-01-31 Thread Andrey Skvortsov
On Sun, Jan 31, 2016 at 09:13:19PM +0100, Johan Hovold wrote: > On Fri, Jan 29, 2016 at 12:07:30AM +0300, Andrey Skvortsov wrote: > > $ lsusb: > > Bus 001 Device 101: ID 1e0e:9001 Qualcomm / Option > > > > $ usb-devices: > > T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=101 Spd=480 MxCh= 0 > > D:

Re: [PATCH v2] USB: option: add support for SIM7100E

2016-01-31 Thread Johan Hovold
On Fri, Jan 29, 2016 at 12:07:30AM +0300, Andrey Skvortsov wrote: > $ lsusb: > Bus 001 Device 101: ID 1e0e:9001 Qualcomm / Option > > $ usb-devices: > T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=101 Spd=480 MxCh= 0 > D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 2 > P: Vendor=1e0e

Re: [PATCH 00/14] USB: serial: Fix coccinelle warnings

2016-01-31 Thread Johan Hovold
On Sat, Jan 30, 2016 at 06:44:33PM +0100, Mathieu OTHACEHE wrote: > This series of patches fixes all coccinelle warnings in > USB serial subsystem > > Mathieu OTHACEHE (14): > USB: serial: safe_serial: fix assignment of bool to 0/1 > USB: serial: safe_serial: fix assignment of bool to non 0/1

Re: [PATCH v1 1/1] cp210x: convert open coded pieces to DIV_ROUND_UP

2016-01-31 Thread Johan Hovold
On Tue, Jan 19, 2016 at 01:31:18PM +0200, Andy Shevchenko wrote: > There are places where DIV_ROUND_UP() functionaly is open coded. Replace it by > macro call. > > Signed-off-by: Andy Shevchenko Thanks for the patch. Konstantin has been working on a series that cleans up the accessor functions

Re: USB: gadget: add USB Audio Gadget driver

2016-01-31 Thread Clemens Ladisch
Alan Stern wrote: > On Fri, 29 Jan 2016, Dan Carpenter wrote: >> The patch c6994e6f067c: "USB: gadget: add USB Audio Gadget driver" >> from Jun 3, 2009, leads to the following static checker warning: >> >> drivers/usb/gadget/function/f_uac1.c:371 f_audio_complete() >> error: __memcpy() '&

Re: [PATCH v2] USB: serial: cp210x: Adding GPIO support for CP2105

2016-01-31 Thread Johan Hovold
On Thu, Jan 14, 2016 at 10:23:11AM +, Martyn Welch wrote: > On 14/01/16 00:27, Konstantin Shkolnyy wrote: > >> static struct usb_serial_driver cp210x_device = { > >> @@ -219,6 +229,7 @@ static struct usb_serial_driver cp210x_device = { > >>.tx_empty = cp210x_tx_empty, > >>

Re: [PATCH v4] USB: serial: cp210x: Adding GPIO support for CP2105

2016-01-31 Thread Johan Hovold
On Mon, Jan 18, 2016 at 02:14:37PM +, Martyn Welch wrote: > This patch adds support for the GPIO found on the CP2105. Unlike the GPIO > provided by some of the other devices supported by the cp210x driver, the > GPIO on the CP2015 is muxed on pins otherwise used for serial control > lines. The

[GIT PULL] USB driver fixes for 4.5-rc2

2016-01-31 Thread Greg KH
The following changes since commit 92e963f50fc74041b5e9e744c330dca48e04f08d: Linux 4.5-rc1 (2016-01-24 13:06:47 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-4.5-rc2 for you to fetch changes up to a89a798a010e8fef66d1a8

Re: [PATCH v6 18/22] usb: dwc2: host: Schedule periodic right away if it's time

2016-01-31 Thread Kever Yang
Doug, On 01/29/2016 10:20 AM, Douglas Anderson wrote: In dwc2_hcd_qh_deactivate() we will put some things on the periodic_sched_ready list. These things won't be taken off the ready list until the next SOF, which might be a little late. Let's put them on right away. Signed-off-by: Douglas And

Re: [PATCH v6 11/22] usb: dwc2: host: There's not really a TT for the root hub

2016-01-31 Thread Kever Yang
Doug, Reviewed-by: Kever Yang Thanks, - Kever On 01/29/2016 10:20 AM, Douglas Anderson wrote: I find that when I plug a full speed (NOT high speed) hub into a dwc2 port and then I plug a bunch of devices into that full speed hub that dwc2 goes bat guano crazy. Specifically, it just spews erro

Re: [PATCH v6 10/22] usb: dwc2: host: Properly set the HFIR

2016-01-31 Thread Kever Yang
Doug, On 01/29/2016 10:20 AM, Douglas Anderson wrote: According to the most up to date version of the dwc2 databook, the FRINT field of the HFIR register should be programmed to: * 125 us * (PHY clock freq for HS) - 1 * 1000 us * (PHY clock freq for FS/LS) - 1 I got 3 version of dwc_otg databoo