[PATCH] usb: chipidea: imx: avoid EPROBE_DEFER printed as error

2016-01-27 Thread Stefan Agner
Avoid printing an error if adding the device failes with return value EPROBE_DEFFER. This may happen e.g. due to missing GPIO for the vbus-supply regulator. Signed-off-by: Stefan Agner --- drivers/usb/chipidea/ci_hdrc_imx.c | 6 +++--- 1 file changed, 3 insertions(+), 3

Re: [PATCH] HID: quirks: Add no_init_reports for AKAI midi controller

2016-01-27 Thread Stafford Horne
On Wed, 27 Jan 2016, Jiri Kosina wrote: On Wed, 27 Jan 2016, Stafford Horne wrote: The midi controller times-out while initializing reports, this causes boot to take an extra 10 seconds. The device descriptor advertises that it has an internal HID device but seems to not actually do

Re: Bug in split transactions on Raspberry Pi

2016-01-27 Thread Doug Anderson
Hi, On Wed, Jan 27, 2016 at 2:03 PM, Alan Stern wrote: > On Wed, 27 Jan 2016, Doug Anderson wrote: > >> Alan, >> >> On Wed, Jan 27, 2016 at 1:34 PM, Alan Stern >> wrote: >> > On Wed, 27 Jan 2016, Doug Anderson wrote: >> > >> >> This patch

Re: [PATCH v5 07/21] usb: dwc2: hcd: fix split transfer schedule sequence

2016-01-27 Thread Kever Yang
Hi Doug, I test this patch with USB 2.0 analyzer, and it make the CSPLIT in the same order with the SSPLIT, so Reviewed-by: Kever Yang Tested-by: Kever Yang Thanks, - Kever On 01/23/2016 02:18 AM, Douglas Anderson wrote: We're supposed

[PATCH] documentation: add kernel-dot.emacs.txt

2016-01-27 Thread Geyslan G. Bem
This patch adds kernel-dot-emacs.txt (elisp) which deliver best indentation, comments and white space highlighting functionalities. This also changes the CodingStyle and 00-INDEX files by referencing the new kernel-dot-emacs. Signed-off-by: Geyslan G. Bem --- Notes: This

RE: [PATCH v3] usb: dwc3: gadget: set the OTG flag in dwc3 gadget driver.

2016-01-27 Thread Tang, Jianqiang
Hi Balbi, Any update/response about this patch? Please tell me if patch v3 is ok for you, if not, I can modify and upload again base on your comments. Thanks! -Original Message- From: Tang, Jianqiang Sent: Wednesday, January 20, 2016 2:46 PM To: Felipe Balbi ;

Re: [PATCH v5 04/21] usb: dwc2: host: Set host_perio_tx_fifo_size to 304 for rk3066

2016-01-27 Thread Kever Yang
Hi Doug, We are in HOST mode, we only need to receive data from USB camera with RX FIFO, and no need to use TX FIFO for USB webcam, right? :) Any way, I think we need to NAK this patch after look into the design of dwc2 controller. Because all the dwc2 controller inside the Rockchip chips don't

Re: [PATCH v5 04/21] usb: dwc2: host: Set host_perio_tx_fifo_size to 304 for rk3066

2016-01-27 Thread Kever Yang
Hi Doug, We are using the minimum FIFO size mode for TX now, which only equal to one max packet size. The addition FIFO size may help shorten the inter-packet data prepare latency when the bus/DRAM is busy. For the actual usage in TX, we have very little change to use the period TX FIFO with

Re: [PATCH v5 04/21] usb: dwc2: host: Set host_perio_tx_fifo_size to 304 for rk3066

2016-01-27 Thread Doug Anderson
Kever, On Wed, Jan 27, 2016 at 7:10 PM, Kever Yang wrote: > Hi Doug, > > We are using the minimum FIFO size mode for TX now, which only > equal to one max packet size. > > The addition FIFO size may help shorten the inter-packet data > prepare latency when the bus/DRAM

NEW ARRIVALS, CISCO,CPU's,Memory, LAPTOP AND AVAYA

2016-01-27 Thread Laison Computech Inc
Dear Sir/Madam, Clean tested working pulls CPUs and QTYs in stock. 115 X X5650 65 X E5410 75 X X5660 145 X E5530 100 X E5645 40 X X5680 75 X X5690 Brand new sealed IP phones and QTYs in stock. 55 x CP-7937G 77 x CP-7942G 54 x CP-7945G 75 x CP-7962G .. 45 x Avaya 9630

Re: [PATCH v5 08/21] usb: dwc2: host: Add scheduler tracing

2016-01-27 Thread Kever Yang
Hi Doug, Very good idea here, I used to add some local patch and with USB analyzer to debug this part of code, and we can use more tools with your patch now, I can try kernelshark next time. Do you consider to add tracing for qtd? Then we can track the whole lift cycle of urb in dwc2

[PATCH] dwc3: gadget: fix for no-resource condition in dwc3 device controller

2016-01-27 Thread Ravi Babu
The "no-resource" error occurs when the driver issues DEPSTRTXFER command to start data transfer on specific endpoint, and dwc3 core throws error "no resource" available to process the request. This condition is occurs in composite gadget scenario where there are multiple interfaces selected by

[PATCH V8 1/1] usb:serial: Add Fintek F81532/534 driver

2016-01-27 Thread Peter Hung
This driver is for Fintek F81532/F81534 USB to Serial Ports IC. F81532 spec: https://drive.google.com/file/d/0B8vRwwYO7aMFOTRRMmhWQVNvajQ/view?usp=sharing F81534 spec: https://drive.google.com/file/d/0B8vRwwYO7aMFV29pQWJqbVBNc00/view?usp=sharing F81438 transceiver spec:

RE: [PATCH v6 00/10] add HNP polling support for usb otg fsm

2016-01-27 Thread Jun Li
Hi Felipe, > -Original Message- > From: Jun Li > Sent: Tuesday, January 26, 2016 3:19 PM > To: Peter Chen ; hzpeterc...@gmail.com; ba...@ti.com; > gre...@linuxfoundation.org > Cc: linux-usb@vger.kernel.org; Jun Li > Subject: [PATCH v6 00/10] add HNP

[PATCH v7 0/5] usb: usbtmc: Add support for missing functions in USBTMC-USB488 spec

2016-01-27 Thread Dave Penkler
Implement support for the USB488 defined READ_STATUS_BYTE ioctl (1/5) and SRQ notifications with fasync (2/5) and poll/select (3/5) in order to be able to synchronize with variable duration instrument operations. Add convenience ioctl to return all device capabilities (4/5) Add ioctls for other

[PATCH v7 4/5] Add ioctl to retrieve USBTMC-USB488 capabilities

2016-01-27 Thread Dave Penkler
This is a convenience function to obtain an instrument's capabilities from its file descriptor without having to access sysfs from the user program. Signed-off-by: Dave Penkler --- drivers/usb/class/usbtmc.c | 12 include/uapi/linux/usb/tmc.h | 21

[PATCH v7 1/5] Implement an ioctl to support the USMTMC-USB488 READ_STATUS_BYTE operation.

2016-01-27 Thread Dave Penkler
Background: When performing a read on an instrument that is executing a function that runs longer than the USB timeout the instrument may hang and require a device reset to recover. The READ_STATUS_BYTE operation always returns even when the instrument is busy permitting to poll for the

Re: [PATCH v5 0/21] usb: dwc2: host: Fix and speed up all the stuff, especially with splits

2016-01-27 Thread Stefan Wahren
Hi Doug, > Douglas Anderson (21): > usb: dwc2: rockchip: Make the max_transfer_size automatic > usb: dwc2: host: Get aligned DMA in a more supported way > usb: dwc2: host: Set host_rx_fifo_size to 528 for rk3066 > usb: dwc2: host: Set host_perio_tx_fifo_size to 304 for rk3066 > usb:

[PATCH v7 3/5] Add support for receiving USBTMC USB488 SRQ notifications via poll/select

2016-01-27 Thread Dave Penkler
Background: In many situations operations on multiple instruments need to be synchronized. poll/select provide a convenient way of waiting on a number of different instruments and other peripherals simultaneously. Signed-off-by: Dave Penkler --- drivers/usb/class/usbtmc.c |

Re: [PATCH v5 0/21] usb: dwc2: host: Fix and speed up all the stuff, especially with splits

2016-01-27 Thread Doug Anderson
Stefan, On Wed, Jan 27, 2016 at 9:33 AM, Stefan Wahren wrote: > Hi Doug, > >> Douglas Anderson (21): >> usb: dwc2: rockchip: Make the max_transfer_size automatic >> usb: dwc2: host: Get aligned DMA in a more supported way >> usb: dwc2: host: Set host_rx_fifo_size to

Re: FAILED: patch "[PATCH] USB: fix invalid memory access in hub_activate()" failed to apply to 3.10-stable tree

2016-01-27 Thread Alan Stern
On Mon, 25 Jan 2016 gre...@linuxfoundation.org wrote: > The patch below does not apply to the 3.10-stable tree. > If someone wants it applied there, or to any other stable or longterm > tree, then please email the backport, including the original git commit > id to . > >

[PATCH v7 5/5] Add ioctls to enable and disable local controls on an instrument

2016-01-27 Thread Dave Penkler
These ioctls provide support for the USBTMC-USB488 control requests for REN_CONTROL, GO_TO_LOCAL and LOCAL_LOCKOUT Signed-off-by: Dave Penkler --- drivers/usb/class/usbtmc.c | 70 include/uapi/linux/usb/tmc.h | 6 2 files

Re: Bug in split transactions on Raspberry Pi

2016-01-27 Thread Alan Stern
On Tue, 26 Jan 2016, Doug Anderson wrote: > > This probably indicates that the list of patches was incomplete (i.e., > > some other patches were applied before these). Also, the patches > > aren't listed in order of the patchwork IDs -- which order is correct? > > The order like 01, 02, 03, etc

Re: Bug in split transactions on Raspberry Pi

2016-01-27 Thread Doug Anderson
Alan, On Wed, Jan 27, 2016 at 11:03 AM, Alan Stern wrote: > On Tue, 26 Jan 2016, Doug Anderson wrote: > >> > This probably indicates that the list of patches was incomplete (i.e., >> > some other patches were applied before these). Also, the patches >> > aren't listed

Re: usb: dwc2: Disconnecting hub from rpi leads to errors

2016-01-27 Thread Doug Anderson
Stefan, On Sat, Jan 23, 2016 at 9:08 AM, Stefan Wahren wrote: > Hi, > >> Stefan Wahren hat am 17. Januar 2016 um 04:36 >> geschrieben: >> >> >> Hi, >> >> i have a Cherry G83 USB Keyboard connected to external 4 Port USB hub and >> this >> is

Re: [PATCH v5 03/21] usb: dwc2: host: Set host_rx_fifo_size to 528 for rk3066

2016-01-27 Thread Doug Anderson
Kever, On Wed, Jan 27, 2016 at 2:13 AM, Kever Yang wrote: > Hi Doug, > > On 01/23/2016 02:18 AM, Douglas Anderson wrote: >> >> As documented in dwc2_calculate_dynamic_fifo(), host_rx_fifo_size should >> really be: >> 2 * ((Largest Packet size / 4) + 1 + 1) + n >>

Re: usb: dwc2: Disconnecting hub from rpi leads to errors

2016-01-27 Thread Alan Stern
On Wed, 27 Jan 2016, Doug Anderson wrote: > Stefan, > > On Sat, Jan 23, 2016 at 9:08 AM, Stefan Wahren wrote: > > Hi, > > > >> Stefan Wahren hat am 17. Januar 2016 um 04:36 > >> geschrieben: > >> > >> > >> Hi, > >> > >> i have a Cherry G83 USB

Re: usb: dwc2: Disconnecting hub from rpi leads to errors

2016-01-27 Thread Stefan Wahren
Hi, > Doug Anderson hat am 27. Januar 2016 um 20:34 > geschrieben: > > > Stefan, > > On Sat, Jan 23, 2016 at 9:08 AM, Stefan Wahren wrote: > > Hi, > > > >> Stefan Wahren hat am 17. Januar 2016 um 04:36 > >> geschrieben: >

Re: Bug in split transactions on Raspberry Pi

2016-01-27 Thread Doug Anderson
Hi, On Wed, Jan 27, 2016 at 12:59 PM, Alan Stern wrote: > On Wed, 27 Jan 2016, Doug Anderson wrote: > >> > In the end I just used the contents of the dwc2 directory from Linus's >> > current tree -- I don't think it has changed since 4.5-rc1. Your >> > patches applied

Re: [PATCH v5 0/21] usb: dwc2: host: Fix and speed up all the stuff, especially with splits

2016-01-27 Thread Doug Anderson
Stefan, On Wed, Jan 27, 2016 at 12:36 PM, Stefan Wahren wrote: > i can only give you feedback from a user perspective. My keyboard and C-Media > USB Audio still works as expected. OK, thanks! So you had no problems before my patches and you still have no problems after

Re: Bug in split transactions on Raspberry Pi

2016-01-27 Thread Doug Anderson
Alan, On Wed, Jan 27, 2016 at 11:21 AM, Doug Anderson wrote: > Alan, > > On Wed, Jan 27, 2016 at 11:03 AM, Alan Stern > wrote: >> On Tue, 26 Jan 2016, Doug Anderson wrote: >> >>> > This probably indicates that the list of patches was incomplete

Re: [PATCH v5 16/21] usb: dwc2: host: Manage frame nums better in scheduler

2016-01-27 Thread Doug Anderson
Hi, On Fri, Jan 22, 2016 at 10:18 AM, Douglas Anderson wrote: > The dwc2 scheduler (contained in hcd_queue.c) was a bit confusing in the > way it initted / kept track of which frames a QH was going to be active > in. Let's clean things up a little bit in preparation for a

Re: Bug in split transactions on Raspberry Pi

2016-01-27 Thread Alan Stern
On Wed, 27 Jan 2016, Doug Anderson wrote: > > In the end I just used the contents of the dwc2 directory from Linus's > > current tree -- I don't think it has changed since 4.5-rc1. Your > > patches applied on top of that with no issues. > > > > They seem to work. Is there anything in particular

Re: [PATCH] HID: quirks: Add no_init_reports for AKAI midi controller

2016-01-27 Thread Jiri Kosina
On Wed, 27 Jan 2016, Stafford Horne wrote: > The midi controller times-out while initializing reports, this > causes boot to take an extra 10 seconds. The device descriptor > advertises that it has an internal HID device but seems to not > actually do anything useful. > > Signed-off-by: Stafford

Re: Bug in split transactions on Raspberry Pi

2016-01-27 Thread Alan Stern
On Wed, 27 Jan 2016, Doug Anderson wrote: > This patch should fix ya. > > FIXUP: FROMLIST: usb: dwc2: host: Manage frame nums better in scheduler > https://chromium-review.googlesource.com/324185 Hmmm. That fixed the problem of the polls occuring too frequently, but now I see again intervals

Re: Bug in split transactions on Raspberry Pi

2016-01-27 Thread Doug Anderson
Alan, On Wed, Jan 27, 2016 at 1:34 PM, Alan Stern wrote: > On Wed, 27 Jan 2016, Doug Anderson wrote: > >> This patch should fix ya. >> >> FIXUP: FROMLIST: usb: dwc2: host: Manage frame nums better in scheduler >> https://chromium-review.googlesource.com/324185 > >

Re: [PATCH v5 0/21] usb: dwc2: host: Fix and speed up all the stuff, especially with splits

2016-01-27 Thread Stefan Wahren
Hi Doug, > Doug Anderson hat am 27. Januar 2016 um 19:24 > geschrieben: > > > Stefan, > > On Wed, Jan 27, 2016 at 9:33 AM, Stefan Wahren wrote: > > Hi Doug, > > > >> Douglas Anderson (21): > >> usb: dwc2: rockchip: Make the max_transfer_size

Re: Bug in split transactions on Raspberry Pi

2016-01-27 Thread Alan Stern
On Wed, 27 Jan 2016, Doug Anderson wrote: > Alan, > > On Wed, Jan 27, 2016 at 1:34 PM, Alan Stern wrote: > > On Wed, 27 Jan 2016, Doug Anderson wrote: > > > >> This patch should fix ya. > >> > >> FIXUP: FROMLIST: usb: dwc2: host: Manage frame nums better in scheduler

Re: [PATCH v5 05/21] usb: dwc2: host: Avoid use of chan->qh after qh freed

2016-01-27 Thread Kever Yang
Hi Doug, The NULL pointer bug is one of the most frequent issue we met during hot plug stress test, thanks for this bug fix. Reviewed-by: Kever Yang Thanks, - Kever On 01/23/2016 02:18 AM, Douglas Anderson wrote: When poking around with USB devices with slub_debug

Re: EHCI vs OHCI ports

2016-01-27 Thread Oliver Neukum
On Wed, 2016-01-27 at 11:33 +0530, Muni Sekhar wrote: > [ Please keep me in CC as I'm not subscribed to the list] > > Hello, > > My test system is having two USB1.1 (OHCI) controllers and one USB2 > (EHCI) controller. > > I am assuming When a High-Speed device is connected to the port, the >

Re: [PATCH v5 03/21] usb: dwc2: host: Set host_rx_fifo_size to 528 for rk3066

2016-01-27 Thread Kever Yang
Hi Doug, On 01/23/2016 02:18 AM, Douglas Anderson wrote: As documented in dwc2_calculate_dynamic_fifo(), host_rx_fifo_size should really be: 2 * ((Largest Packet size / 4) + 1 + 1) + n with n = number of host channel. We have 9 host channels, so 2 * ((1024/4) + 2) + 9 = 516 + 9 = 525

Re: [PATCH v5 06/21] usb: dwc2: host: Always add to the tail of queues

2016-01-27 Thread Kever Yang
Hi Doug, This is obviously a bug in dwc2 driver which not meet the usb 2.0 spec, and this patch can fix it. Reviewed-by: Kever Yang Thanks, - Kever On 01/23/2016 02:18 AM, Douglas Anderson wrote: The queues the the dwc2 host controller used are truly queues. That

[PATCH] HID: quirks: Add no_init_reports for AKAI midi controller

2016-01-27 Thread Stafford Horne
The midi controller times-out while initializing reports, this causes boot to take an extra 10 seconds. The device descriptor advertises that it has an internal HID device but seems to not actually do anything useful. Signed-off-by: Stafford Horne --- drivers/hid/hid-ids.h