Re: [PATCH v2] USB: serial: cp210x: Add tx_empty()

2015-11-25 Thread Johan Hovold
On Thu, Nov 26, 2015 at 08:35:12AM +0100, Johan Hovold wrote: > On Wed, Nov 25, 2015 at 10:26:12PM +0200, Andy Shevchenko wrote: > > On Wed, Nov 25, 2015 at 12:28 AM, Konstantin Shkolnyy > > wrote: > > > Added tx_empty callback needed for generic wait-until-sent support. > > > Without this functio

Re: [PATCH v2] USB: serial: cp210x: Add tx_empty()

2015-11-25 Thread Johan Hovold
On Wed, Nov 25, 2015 at 10:26:12PM +0200, Andy Shevchenko wrote: > On Wed, Nov 25, 2015 at 12:28 AM, Konstantin Shkolnyy > wrote: > > Added tx_empty callback needed for generic wait-until-sent support. > > Without this function, when the port is closed usbserial can't know that > > there are still

Re: [linux-sunxi] Re: [PATCH v3 1/2] phy-sun4i-usb: Use of_match_node to get model specific config data

2015-11-25 Thread LABBE Corentin
On Thu, Nov 26, 2015 at 12:22:59PM +0800, Chen-Yu Tsai wrote: > On Thu, Nov 26, 2015 at 12:50 AM, Hans de Goede wrote: > > + > > static const unsigned int sun4i_usb_phy0_cable[] = { > > EXTCON_USB, > > EXTCON_USB_HOST, > > @@ -511,10 +578,16 @@ static int sun4i_usb_phy_probe(struc

Re: [PATCH v3 1/2] phy-sun4i-usb: Use of_match_node to get model specific config data

2015-11-25 Thread Chen-Yu Tsai
On Thu, Nov 26, 2015 at 12:50 AM, Hans de Goede wrote: > Use of_match_node instead of calling of_device_is_compatible a ton of > times to get model specific config data. > > Signed-off-by: Hans de Goede > --- > Changes in v3: > -New patch in v3 of this patch-set > --- > drivers/phy/phy-sun4i-usb

Re: USB_OTG unmet direct dependencies

2015-11-25 Thread Peter Chen
On Wed, Nov 25, 2015 at 03:04:18PM +0100, Mason wrote: > Hello, > > I was about to post this, and I noticed it has been discussed recently. > > http://thread.gmane.org/gmane.linux.kernel/2087677/ > [PATCH] USB: USB_OTG does not depend on PM > > My SoC provides a Chipidea dual-port OTG USB 2.0 co

Re: [PATCH v3 6/8] usb: dwc2: host: Assume all devices are on one single_tt hub

2015-11-25 Thread Doug Anderson
Hi, On Mon, Nov 23, 2015 at 4:28 PM, Doug Anderson wrote: > John, > > On Thu, Nov 19, 2015 at 8:33 PM, John Youn wrote: >> Patches 1-3: >> Acked-by: John Youn >> >> Patch 2: >> Tested-by: John Youn >> >> Tested on core version 3.20 using internal TE for un-aligned >> buffers. >> >> I haven't h

Re: Infrastructure for zerocopy I/O

2015-11-25 Thread Steinar H. Gunderson
On Wed, Nov 25, 2015 at 10:29:53AM -0500, Alan Stern wrote: > I want to see a modified version of your patch. Several things need to > be changed or fixed, but the major change needs to be the way memory is > allocated. It should be done as part of the mmap system call, not as a > separate ioc

Re: [PATCH v3 2/2] phy-sun4i-usb: Add support for the host usb-phys found on the H3 SoC

2015-11-25 Thread Rob Herring
On Wed, Nov 25, 2015 at 05:50:02PM +0100, Hans de Goede wrote: > From: Reinder de Haan > > Note this commit only adds support for phys 1-3, phy 0, the otg phy, is > not yet (fully) supported after this commit. Shouldn't the OTG phy have a different compatible string? > > Signed-off-by: Reinder

[PATCH 2/2] Minor improvement for smsc95xx netusb driver performance.

2015-11-25 Thread Ameen
Reduce number of memcpy's by 1-2 improve transmit performance by 2-4%. or reduce CPU usage on a comparable value. Signed-off-by: Ameen Ali --- drivers/net/usb/smsc95xx.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/net/usb/smsc95xx.c

Re: [PATCH 3/3] Minor improvement for smsc95xx netusb driver performance.

2015-11-25 Thread Sergei Shtylyov
Hello. On 11/25/2015 10:15 PM, Ameen wrote: Reduce number of memcpy's by 1-2 improve transmit performance by 2-4%. or reduce cpu usage on a comparable value. CPU. Signed-off-by: Ameen Ali --- drivers/net/usb/smsc95xx.c | 30 -- 1 file changed, 16 insertion

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

2015-11-25 Thread Andy Shevchenko
On Wed, Nov 25, 2015 at 11:12 AM, Dave Penkler wrote: > On Sun, Nov 22, 2015 at 12:36:53PM +0200, Andy Shevchenko wrote: > OK so now I have the same as in v4 again: > > if (rv < 0) { > dev_err(dev, "simple usb_control_msg failed %d\n", rv); > goto exit; >

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

2015-11-25 Thread Andy Shevchenko
On Wed, Nov 25, 2015 at 11:18 AM, Dave Penkler wrote: > On Sun, Nov 22, 2015 at 12:32:41PM +0200, Andy Shevchenko wrote: >> On Sun, Nov 22, 2015 at 11:19 AM, Dave Penkler wrote: >> > On Wed, Nov 18, 2015 at 11:55:27AM +0200, Andy Shevchenko wrote: >> >> On Wed, Nov 18, 2015 at 10:37 AM, Dave Penk

Re: [PATCH v2] USB: serial: cp210x: Add tx_empty()

2015-11-25 Thread Andy Shevchenko
On Wed, Nov 25, 2015 at 12:28 AM, Konstantin Shkolnyy wrote: > Added tx_empty callback needed for generic wait-until-sent support. > Without this function, when the port is closed usbserial can't know that > there are still data in the chip's transmit FIFO. The chip gets disabled > and untransmitt

Re: [PATCH] USB: MUSB: fail with error when no DMA controller set

2015-11-25 Thread Tony Lindgren
* Aaro Koskinen [151123 11:51]: > Fail with error when no DMA controller is set. > > Signed-off-by: Aaro Koskinen > --- > drivers/usb/musb/musb_core.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c > index 18cfc0a..f8d3b40 1

[PATCH 3/3] Minor improvement for smsc95xx netusb driver performance.

2015-11-25 Thread Ameen
Reduce number of memcpy's by 1-2 improve transmit performance by 2-4%. or reduce cpu usage on a comparable value. Signed-off-by: Ameen Ali --- drivers/net/usb/smsc95xx.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/drivers/net/usb/smsc95xx.

[PATCH 3/3] Minor improvement for smsc95xx netusb driver performance.

2015-11-25 Thread Ameen
Reduce number of memcpy's by 1-2 improve transmit performance by 2-4%. or reduce cpu usage on a comparable value. Signed-off-by: Ameen Ali --- drivers/net/usb/smsc95xx.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/drivers/net/usb/smsc95xx.

Re: [PATCH v5 7/7] usb: gadget: f_midi: pre-allocate IN requests

2015-11-25 Thread Felipe Ferreri Tonello
Hi Clemens On 13/11/15 08:55, Clemens Ladisch wrote: > Felipe F. Tonello wrote: >> This patch introduces pre-allocation of IN endpoint USB requests. This >> improves on latency (requires no usb request allocation on transmit) and >> avoid >> several potential probles on allocating too many usb re

Re: [PATCH v5 7/7] usb: gadget: f_midi: pre-allocate IN requests

2015-11-25 Thread Felipe Ferreri Tonello
Hi Robert, On 13/11/15 12:38, Robert Baldyga wrote: > Hi Felipe, > > On 11/10/2015 06:52 PM, Felipe F. Tonello wrote: >> This patch introduces pre-allocation of IN endpoint USB requests. This >> improves on latency (requires no usb request allocation on transmit) and >> avoid >> several potentia

[PATCH v3 2/2] phy-sun4i-usb: Add support for the host usb-phys found on the H3 SoC

2015-11-25 Thread Hans de Goede
From: Reinder de Haan Note this commit only adds support for phys 1-3, phy 0, the otg phy, is not yet (fully) supported after this commit. Signed-off-by: Reinder de Haan Signed-off-by: Hans de Goede --- Changes in v2: -Change break; after dev_err() to return, as intended, fixing a compiler wa

[PATCH v3 1/2] phy-sun4i-usb: Use of_match_node to get model specific config data

2015-11-25 Thread Hans de Goede
Use of_match_node instead of calling of_device_is_compatible a ton of times to get model specific config data. Signed-off-by: Hans de Goede --- Changes in v3: -New patch in v3 of this patch-set --- drivers/phy/phy-sun4i-usb.c | 130 +--- 1 file changed, 85

Re: [PATCH] net: usb: ch9200: use kmemdup instead of kmalloc + memcpy

2015-11-25 Thread Bjørn Mork
Anup Limbu writes: > replace kmalloc + memset with kmemdup > > Signed-off-by: Anup Limbu > --- > drivers/net/usb/ch9200.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/net/usb/ch9200.c b/drivers/net/usb/ch9200.c > index 5e151e6..8a40202 100644 > --- a/driver

Re: Celot modem driver

2015-11-25 Thread Dan Williams
On Wed, 2015-11-25 at 13:13 +0100, M. Hrdlička wrote: > Hello, > log script told me, that I may to tell you about add this device to > propper linux driver. > > Device is combo USB modem Celot CTD-200, manufacturing date in > September 2010, it´s combinated GSM (GPRS/UMTS/HSPA) and CDMA modem. > I

Re: [4.3] kworker busy in pm_runtime_work

2015-11-25 Thread Alan Stern
On Wed, 25 Nov 2015, Daniel J Blueman wrote: > On 23 November 2015 at 23:52, Alan Stern wrote: > > On Sun, 22 Nov 2015, Daniel J Blueman wrote: > > > >> On 16 November 2015 at 23:22, Alan Stern wrote: > >> > On Mon, 16 Nov 2015, Daniel J Blueman wrote: > >> > > >> >> Tuning USB suspend [1] in 4.

[PATCH v1] usb: devio: Add ioctl to disallow detaching kernel USB drivers.

2015-11-25 Thread Emilio López
From: Reilly Grant The new USBDEVFS_DROP_PRIVILEGES ioctl allows a process to voluntarily relinquish the ability to issue other ioctls that may interfere with other processes and drivers that have claimed an interface on the device. Signed-off-by: Reilly Grant Reviewed-by: Jorge Lucangeli Obes

[PATCH v1 0/1] ioctl to disallow detaching kernel USB drivers

2015-11-25 Thread Emilio López
Hi everyone, This patch introduces a new ioctl, USBDEVFS_DROP_PRIVILEGES, to voluntarily forgo the ability to issue ioctls which may interfere with other users of the USB device. This feature allows a privileged process (in the case of Chrome OS, permission_broker) to open a USB device node and t

Re: Infrastructure for zerocopy I/O

2015-11-25 Thread Steinar H. Gunderson
On Wed, Nov 25, 2015 at 10:29:53AM -0500, Alan Stern wrote: > I want to see a modified version of your patch. Several things need to > be changed or fixed, but the major change needs to be the way memory is > allocated. It should be done as part of the mmap system call, not as a > separate ioc

Re: Infrastructure for zerocopy I/O

2015-11-25 Thread Alan Stern
On Wed, 25 Nov 2015, Markus Rechberger wrote: > Seems like it's getting stuck again, since we're entering devices with > a higher bandwidth need now it seems to be necessary to really fix it > in the kernel. > > I propose add it as it is, it's proven that it works and there are 2 > testcases out

Re: 4.3.0: AUKEY CB-H16 13+2port USB3 VIA812 hub does not recognize Prolific-based USB3-SATA dongle

2015-11-25 Thread Mathias Nyman
On 25.11.2015 00:09, Martin MOKREJŠ wrote: Hi, I have relatively new 13port USB 3.0 HUB based on VIAlabs 812 chipset with two power-only charging ports: 1x1.5A and 1x2.4A (AUKEY CB-H16, from Amazon). Sometimes, the hub (actually four 4-port hubs stitched together) chokes and all it's LEDs s

USB_OTG unmet direct dependencies

2015-11-25 Thread Mason
Hello, I was about to post this, and I noticed it has been discussed recently. http://thread.gmane.org/gmane.linux.kernel/2087677/ [PATCH] USB: USB_OTG does not depend on PM My SoC provides a Chipidea dual-port OTG USB 2.0 controller. My .config contains: CONFIG_USB_SUPPORT=y CONFIG_USB_COMMON

Re: [PATCH v5 4/7] usb: gadget: f_midi: fix leak on failed to enqueue out requests

2015-11-25 Thread Felipe Ferreri Tonello
Hi Robert, On 16/11/15 11:43, Robert Baldyga wrote: > On 11/16/2015 12:08 PM, Felipe Ferreri Tonello wrote: >> Hi Robert, >> >> On 13/11/15 08:31, Robert Baldyga wrote: >>> Hi Felipe, >>> >>> On 11/10/2015 06:52 PM, Felipe F. Tonello wrote: This patch fixes a memory leak that occurs when an e

Re: [PATCH 2/3] kbuild: Allow to specify composite modules with modname-m

2015-11-25 Thread Michal Marek
Dne 28.10.2015 v 14:25 Michal Marek napsal(a): > From: Michal Marek > > This allows to write > > drm-$(CONFIG_AGP) += drm_agpsupport.o > > without having to handle CONFIG_AGP=y vs. CONFIG_AGP=m. Only support > this syntax for modules, since built-in code depending on something > modular canno

Re: Infrastructure for zerocopy I/O

2015-11-25 Thread Markus Rechberger
Seems like it's getting stuck again, since we're entering devices with a higher bandwidth need now it seems to be necessary to really fix it in the kernel. I propose add it as it is, it's proven that it works and there are 2 testcases out there right now and it decreases the CPU load on intel Atom

Celot modem driver

2015-11-25 Thread M . Hrdlička
Hello, log script told me, that I may to tell you about add this device to propper linux driver. Device is combo USB modem Celot CTD-200, manufacturing date in September 2010, it´s combinated GSM (GPRS/UMTS/HSPA) and CDMA modem. I run this device with usbserial driver, adding this line in /etc/

[PATCH] net: usb: ch9200: use kmemdup instead of kmalloc + memcpy

2015-11-25 Thread Anup Limbu
replace kmalloc + memset with kmemdup Signed-off-by: Anup Limbu --- drivers/net/usb/ch9200.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/usb/ch9200.c b/drivers/net/usb/ch9200.c index 5e151e6..8a40202 100644 --- a/drivers/net/usb/ch9200.c +++ b/drivers/net/us

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

2015-11-25 Thread Dave Penkler
On Sun, Nov 22, 2015 at 12:32:41PM +0200, Andy Shevchenko wrote: > On Sun, Nov 22, 2015 at 11:19 AM, Dave Penkler wrote: > > On Wed, Nov 18, 2015 at 11:55:27AM +0200, Andy Shevchenko wrote: > >> On Wed, Nov 18, 2015 at 10:37 AM, Dave Penkler wrote: > > >> > + switch (status) { > >> > +

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

2015-11-25 Thread Dave Penkler
On Sun, Nov 22, 2015 at 12:36:53PM +0200, Andy Shevchenko wrote: > On Sun, Nov 22, 2015 at 10:51 AM, Dave Penkler wrote: > > On Wed, Nov 18, 2015 at 11:41:30AM +0200, Andy Shevchenko wrote: > >> On Wed, Nov 18, 2015 at 10:38 AM, Dave Penkler wrote: > > > >> > + if (rv < 0) { > >> > +