RE: [PATCH 3/9] usb/gadget: change sysfs parent device for USB Ethernet

2013-04-18 Thread Andrzej Pietrasiewicz
On Wednesday, April 17, 2013 6:46 PM Alan Stern wrote: On Wed, 17 Apr 2013, Andrzej Pietrasiewicz wrote: The procedure of setting a gadget up with configfs is like this: 1) create the gadget directory 2) create functions directories corresponding to functions to be used by the gadget

Re: Summary, was Re: [PATCH v4] xhci - correct comp_mode_recovery_timer on return from hibernate

2013-04-18 Thread huang ying
On Thu, Apr 18, 2013 at 8:18 AM, Sarah Sharp sarah.a.sh...@linux.intel.com wrote: All right, I've finally come back to this long thread. To sum up: xHCI hosts that have the effected TI redriver may lose device connect events when in D3hot or D3cold, if the port goes into Compliance Mode.

Re: Driver for PL-2303 HX not working

2013-04-18 Thread Johan Hovold
On Wed, Apr 17, 2013 at 07:43:11PM +0200, Karsten Malcher wrote: Am 17.04.2013 15:13, schrieb Johan Hovold: Can you minimise your test setup using a custom program which only opens the device, initialises it, writes the four characters (e.g. test) and reads them back (over you hardwired

Re: Driver for PL-2303 HX not working

2013-04-18 Thread Karsten Malcher
Am 17.04.2013 15:13, schrieb Johan Hovold: Can you try to reproduce this on a later kernel (e.g. 3.8) which uses dynamic debugging? I have compiled a 3.8.5 kernel now on Debian testing (wheezy). The result is the same as in 3.2.0 ! I could receive only some of the first bytes after opening the

Re: Driver for PL-2303 HX not working

2013-04-18 Thread Johan Hovold
On Thu, Apr 18, 2013 at 12:36:17PM +0200, Karsten Malcher wrote: Am 17.04.2013 15:13, schrieb Johan Hovold: Can you try to reproduce this on a later kernel (e.g. 3.8) which uses dynamic debugging? I have compiled a 3.8.5 kernel now on Debian testing (wheezy). The result is the same as in

Re: [PATCH v3 01/11] usb: phy: Add APIs for runtime power management

2013-04-18 Thread Kishon Vijay Abraham I
On Tuesday 02 April 2013 06:10 PM, Vivek Gautam wrote: Hi, On Tue, Apr 2, 2013 at 5:40 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Tue, Apr 02, 2013 at 04:04:01PM +0530, Vivek Gautam wrote: On Mon, Apr 01, 2013 at 07:24:00PM +0530, Vivek Gautam wrote: Adding APIs to handle runtime power

[PATCH 0/2] Gadget Zero fixes

2013-04-18 Thread Andrzej Pietrasiewicz
Dear All, The first patch contains a trivial fix of a name which doesn't fit its purpose. The second patch fixes a bug which prevents the usb_f_ss_lb.ko from unloading when it is not actually used. Andrzej Pietrasiewicz (2): usb/gadget: f_sourcesink.c: correct a copy-paste misnomer

[PATCH 1/2] usb/gadget: f_sourcesink.c: correct a copy-paste misnomer

2013-04-18 Thread Andrzej Pietrasiewicz
acm was the first function to be converted and it seems that its code served as a base for converting f_sourcesink to the new function interface. source_sink has nothing to do with acm, though. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park

[PATCH 2/2] usb/gadget: zero: put function instances on unbind

2013-04-18 Thread Andrzej Pietrasiewicz
If function instances are not put on gadget's unbind, their implementation module's refcount is nonzero and it is impossible to unload it. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/zero.c |2 ++ 1

Olicard 145

2013-04-18 Thread Filippo Turato
Hello! Sorry, but i'm not sure i'm writing in the right place. I own an usb GSM modem named Olivetti Olicard 145, and with my kernel version (3.7.10-gentoo) it doesn't work just pluggin it in, but loading the usbserial generic module and passing by hand product and vendor id. Taking a look on the

[PATCH] usb: otg: remove exported function from __init section

2013-04-18 Thread Denis Efremov
The symbol usb_bind_phy is exported and annotated __init. It looks like section mismatch. Fix by removing the __init annotation of usb_bind_phy. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Denis Efremov yefremov.de...@gmail.com --- drivers/usb/otg/otg.c | 2 +-

Re: Olicard 145

2013-04-18 Thread Oliver Neukum
On Thursday 18 April 2013 15:05:39 Filippo Turato wrote: Hello! Sorry, but i'm not sure i'm writing in the right place. I own an usb GSM modem named Olivetti Olicard 145, and with my kernel version (3.7.10-gentoo) it doesn't work just pluggin it in, but loading the usbserial generic module

Re: [PATCH v3 4/4] ARM: shmobile: BOCK-W: enable USB in defconfig

2013-04-18 Thread Simon Horman
On Wed, Apr 17, 2013 at 01:35:09AM +0400, Sergei Shtylyov wrote: Enable USB platform EHCI/OHCI and common PHY drivers in 'bockw_defconfig'. Enable USB storage driver and SCSI disk driver that it needs as well... Signed-off-by: Sergei Shtylyov sergei.shtyl...@cogentembedded.com I realise that

Re: [PATCH] usb: storage: Add usb_stor_dbg, reduce object size

2013-04-18 Thread Alan Stern
On Wed, 17 Apr 2013, Joe Perches wrote: On Wed, 2013-04-17 at 14:47 -0400, Alan Stern wrote: On Wed, 17 Apr 2013, Joe Perches wrote: [] +int usb_stor_dbg(const struct us_data *us, const char *fmt, ...) +{ + struct va_format vaf; + va_list args; + int r; + +

RE: [PATCH 3/9] usb/gadget: change sysfs parent device for USB Ethernet

2013-04-18 Thread Alan Stern
On Thu, 18 Apr 2013, Andrzej Pietrasiewicz wrote: On Wednesday, April 17, 2013 6:46 PM Alan Stern wrote: On Wed, 17 Apr 2013, Andrzej Pietrasiewicz wrote: The procedure of setting a gadget up with configfs is like this: 1) create the gadget directory 2) create functions

Re: Linux USB file storage gadget with new UDC

2013-04-18 Thread Alan Stern
On Thu, 18 Apr 2013, victor yeo wrote: I modified the UDC driver to send out zero length data packet. Now the linux host is able to see the USB gadget as a mass storage device and read from USB gadget. However, writing to USB gadget fails. The SCSI_WRITE_10 command often receives (-104). The

Re: [Projekt-wlan] Regression in 3735ba8db8e6ea22ad3ff524328926d8d780a884 with Freescale P1020

2013-04-18 Thread michael-dev
Hi, thanks for the quick reply. Please review the patch http://patchwork.ozlabs.org/patch/237201/ I applied it, but it does not make any difference on my platform. Regards, M. Braun Am 17.04.2013 12:53, schrieb Liu Shengzhou-B36685: Hi Braun, It seems the duplicated tdi_reset caused the

[PATCH 0/7] USB: serial: more patches for 3.10

2013-04-18 Thread Johan Hovold
These patches fix a regression in io_ti and removes the ti_usb_3410_5052 custom closing-wait implementation and some other redundant code. All patches have been compile-only tested. Johan Johan Hovold (7): USB: io_ti: fix TIOCGSERIAL USB: io_ti: remove redundant wait_until_sent USB:

[PATCH 4/7] USB: ti_usb_3410_5052: remove lsr from port data

2013-04-18 Thread Johan Hovold
The line status register is only polled so let's not keep a possibly outdated value in the port data. Signed-off-by: Johan Hovold jhov...@gmail.com --- drivers/usb/serial/ti_usb_3410_5052.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCH 6/7] USB: ti_usb_3410_5052: remove redundant drain from break_ctl

2013-04-18 Thread Johan Hovold
Remove redundant drain, which has already been handled by the tty-layer, from break_ctl. Signed-off-by: Johan Hovold jhov...@gmail.com --- drivers/usb/serial/ti_usb_3410_5052.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/serial/ti_usb_3410_5052.c

[PATCH 5/7] USB: ti_usb_3410_5052: query hardware-buffer status in chars_in_buffer

2013-04-18 Thread Johan Hovold
Query hardware-buffer status in chars_in_buffer should the write fifo be empty. This is needed to make the tty layer wait for hardware buffers to drain on close. Signed-off-by: Johan Hovold jhov...@gmail.com --- drivers/usb/serial/ti_usb_3410_5052.c | 8 1 file changed, 8 insertions(+)

[PATCH 2/7] USB: io_ti: remove redundant wait_until_sent

2013-04-18 Thread Johan Hovold
Remove redundant wait_until_sent, which has already been handled by the tty-layer, from break_ctl. Signed-off-by: Johan Hovold jhov...@gmail.com --- drivers/usb/serial/io_ti.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index

[PATCH 1/7] USB: io_ti: fix TIOCGSERIAL

2013-04-18 Thread Johan Hovold
Fix regression introduced by commit f40d78155 (USB: io_ti: kill custom closing_wait implementation) which made TIOCGSERIAL return the wrong value for closing_wait. Cc: stable sta...@kernel.org Signed-off-by: Johan Hovold jhov...@gmail.com --- drivers/usb/serial/io_ti.c | 2 +- 1 file changed, 1

[PATCH 3/7] USB: ti_usb_3410_5052: move write-fifo flushing to close

2013-04-18 Thread Johan Hovold
Move write-fifo flushing from ti_drain to close where it belongs. Signed-off-by: Johan Hovold jhov...@gmail.com --- drivers/usb/serial/ti_usb_3410_5052.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/usb/serial/ti_usb_3410_5052.c

[PATCH 7/7] USB: ti_usb_3410_5052: kill custom closing_wait

2013-04-18 Thread Johan Hovold
Kill custom closing_wait implementation and let the tty-layer handle it instead. Note that the port drain-delay is set to three characters to keep the 20ms delay after wait_until_sent at low baudrates (1200 baud) during close. Signed-off-by: Johan Hovold jhov...@gmail.com ---

Re: [PATCH 1/7] USB: io_ti: fix TIOCGSERIAL

2013-04-18 Thread Johan Hovold
On Thu, Apr 18, 2013 at 05:33:17PM +0200, Johan Hovold wrote: Fix regression introduced by commit f40d78155 (USB: io_ti: kill custom closing_wait implementation) which made TIOCGSERIAL return the wrong value for closing_wait. Cc: stable sta...@kernel.org Oops, managed to use the old address

[RFC PATCH 1/2] USB: OHCI: add a name for the platform-private field

2013-04-18 Thread Manjunath Goudar
This patch adds an ohci-priv field for private use by OHCI platform drivers. Until now none of the platform drivers has used this private space, but that's about to change in the next patch of this series. Signed-off-by: Manjunath Goudar manjunath.gou...@linaro.org Cc: Arnd Bergmann

[RFC PATCH 2/2] USB: OHCI: make ohci-exynos a separate driver

2013-04-18 Thread Manjunath Goudar
Separate the Samsung OHCI EXYNOS host controller driver from ohci-hcd host code so that it can be built as a separate driver module. This work is part of enabling multi-platform kernels on ARM; however, note that other changes are still needed before EXYNOS can be booted with a multi-platform

Re: BUG: USB audio discontinuities with 'UHCI: implement new semantics for URB_ISO_ASAP'

2013-04-18 Thread Alan Stern
On Wed, 17 Apr 2013, Joe Rayhawk wrote: Small buffer/period sizes on usb audio playback though UHCI works fine on v3.7 but causes audio discontinuities/delays on v3.8 and v3.9-rc7. I've bisected the behavior down to c44b225077bb1fb25ed5cd5c4f226897b91bedd4 'UHCI: implement new

Re: [RFT] xhci - correct comp_mode_recovery_timer on return from hibernate

2013-04-18 Thread Tony Camuso
On 04/17/2013 08:27 PM, Sarah Sharp wrote: [Sarah reworked this patch to cover the case where the xHCI restore register operation fails, and (temp STS_SRE) is true (and we re-init the host, including re-init for the compliance mode), but hibernate is false. The original patch would have

Re: [RFC PATCH 1/2] USB: OHCI: prepare to make ohci-hcd a library module

2013-04-18 Thread Alan Stern
On Tue, 16 Apr 2013 manjunath.gou...@linaro.org wrote: From: Manjunath Goudar manjunath.gou...@linaro.org This patch prepares ohci-hcd for being split up into a core library and separate platform driver modules. A generic ohci_hc_driver structure is created, containing all the standard

Re: [RFT] xhci - correct comp_mode_recovery_timer on return from hibernate

2013-04-18 Thread Sarah Sharp
On Thu, Apr 18, 2013 at 02:45:40PM -0400, Tony Camuso wrote: On 04/17/2013 08:27 PM, Sarah Sharp wrote: [Sarah reworked this patch to cover the case where the xHCI restore register operation fails, and (temp STS_SRE) is true (and we re-init the host, including re-init for the compliance

[PATCH usb-next] usb: storage: Fix link error

2013-04-18 Thread Joe Perches
Fix allmodconfig link error introduced by commit 75b9130e8a (usb: storage: Add usb_stor_dbg, reduce object size) Export the symbol usb_stor_dbg. Add export.h Signed-off-by: Joe Perches j...@perches.com --- drivers/usb/storage/debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [RFC PATCH v2 1/4] retu-mfd: support also Tahvo

2013-04-18 Thread Samuel Ortiz
Hi Aaro, On Tue, Apr 09, 2013 at 10:51:25PM +0300, Aaro Koskinen wrote: Tahvo is a multi-function device on Nokia 770, implementing USB transceiver and charge/battery control. It's so close to Retu that a single driver can support both. Signed-off-by: Aaro Koskinen aaro.koski...@iki.fi

Re: [PATCH v3 4/4] ARM: shmobile: BOCK-W: enable USB in defconfig

2013-04-18 Thread Sergei Shtylyov
Hello. On 04/18/2013 06:05 PM, Simon Horman wrote: Enable USB platform EHCI/OHCI and common PHY drivers in 'bockw_defconfig'. Enable USB storage driver and SCSI disk driver that it needs as well... Signed-off-by: Sergei Shtylyov sergei.shtyl...@cogentembedded.com I realise that this is not

[PATCH net,stable 3/3] net: qmi_wwan: prevent duplicate mac address on link (firmware bug workaround)

2013-04-18 Thread Bjørn Mork
We normally trust and use the CDC functional descriptors provided by a number of devices. But some of these will erroneously list the address reserved for the device end of the link. Attempting to use this on both the device and host side will naturally not work. Work around this bug by

[PATCH net,stable 2/3] net: qmi_wwan: fixup destination address (firmware bug workaround)

2013-04-18 Thread Bjørn Mork
Received packets are sometimes addressed to 00:a0:c6:00:00:00 instead of the address the device firmware should have learned from the host: 321.224126 77.16.85.204 - 148.122.171.134 ICMP 98 Echo (ping) request id=0x4025, seq=64/16384, ttl=64 82 c0 82 c9 f1 67 82 c0 82 c9 f1 67 08 00 45

[PATCH net,stable 0/3] qmi_wwan: working around 3 serious firmware bugs

2013-04-18 Thread Bjørn Mork
This series adds workarounds for 3 different firmware bugs, each preventing the affected devices from working at all. I therefore humbly request that these fixes go to stable-3.8 (if still maintained) and 3.9 (either via net if still possible, or via stable if not). All 3 workarounds are applied

[PATCH net,stable 1/3] net: qmi_wwan: fixup missing ethernet header (firmware bug workaround)

2013-04-18 Thread Bjørn Mork
A number of LTE devices from different vendors all suffer from the same firmware bug: Most of the packets received from the device while it is attached to a LTE network will not have an ethernet header. The devices work as expected when attached to 2G or 3G networks, sending an ethernet header

Re: [PATCH v2 0/9] Reorganize R8A7779/Marzen USB code

2013-04-18 Thread Kuninori Morimoto
Hi Sergei I'm going to post R8A7778/BOCK-W series following this one, and all the patches in 1st series should additionally be tested on BOCK-W. Well, I probably can hold up posting version 3 until I have the second series verified. BTW, about R8A7778/BOCK-W, R-Car

Re: [PATCH usb-next] usb: storage: Fix link error

2013-04-18 Thread Greg KH
On Thu, Apr 18, 2013 at 02:17:14PM -0700, Joe Perches wrote: Fix allmodconfig link error introduced by commit 75b9130e8a (usb: storage: Add usb_stor_dbg, reduce object size) Export the symbol usb_stor_dbg. Add export.h Signed-off-by: Joe Perches j...@perches.com ---

Re: [PATCH v3 4/4] ARM: shmobile: BOCK-W: enable USB in defconfig

2013-04-18 Thread Simon Horman
On Fri, Apr 19, 2013 at 02:50:05AM +0400, Sergei Shtylyov wrote: Hello. On 04/18/2013 06:05 PM, Simon Horman wrote: Enable USB platform EHCI/OHCI and common PHY drivers in 'bockw_defconfig'. Enable USB storage driver and SCSI disk driver that it needs as well... Signed-off-by: Sergei

[PATCH] usbatm: fix potential NULL pointer dereference

2013-04-18 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn The dereference to 'instance' in the debug code should be moved below the NULL test. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/usb/atm/usbatm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git