Re: [RFC 0/2] target refcounting infrastructure fixes for usb

2014-01-02 Thread James Bottomley
On Thu, 2014-01-02 at 16:45 -0800, Sarah Sharp wrote: > On Sat, Dec 21, 2013 at 03:51:25PM -0500, Alan Stern wrote: > > On Fri, 20 Dec 2013, Sarah Sharp wrote: > > > > > On Thu, Dec 19, 2013 at 11:48:47AM -0800, James Bottomley wrote: > > > > It should apply incrementally on top of the previous tw

Re: [PATCH net-next] r8152: fix the wrong return value

2014-01-02 Thread David Cohen
On Fri, Jan 03, 2014 at 11:21:56AM +0800, Hayes Wang wrote: > The return value should be the boolean value, not the error code. > > Signed-off-by: Hayes Wang > Spotted-by: Dan Carpenter > --- > drivers/net/usb/r8152.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/dri

[PATCH 2/2] usb: gadget: s3c-hsudc: Remove unused label

2014-01-02 Thread Sachin Kamat
Fixes the following compilation warning: drivers/usb/gadget/s3c-hsudc.c: In function ‘s3c_hsudc_probe’: drivers/usb/gadget/s3c-hsudc.c:1347:1: warning: label ‘err_add_device’ defined but not used [-Wunused-label] Signed-off-by: Sachin Kamat --- drivers/usb/gadget/s3c-hsudc.c |1 - 1 file cha

[PATCH 1/2] usb: gadget: s3c2410_udc: Fix build error

2014-01-02 Thread Sachin Kamat
Pass value instead of address as expected by 'usb_ep_set_maxpacket_limit'. Fixes the following compilation error introduced by commit e117e742d310 ("usb: gadget: add "maxpacket_limit" field to struct usb_ep"): drivers/usb/gadget/s3c2410_udc.c: In function ‘s3c2410_udc_reinit’: drivers/usb/gadget/s

Re: [PATCH v1] xhci: Switch Intel Lynx Point ports to EHCI on shutdown

2014-01-02 Thread littlebat
On Thu, 2 Jan 2014 16:03:34 -0800 Sarah Sharp wrote: > On Sun, Dec 22, 2013 at 09:47:49AM +0200, Denis Turischev wrote: > > On 12/21/2013 01:45 AM, Sarah Sharp wrote: > > > On Fri, Dec 20, 2013 at 12:41:11PM +0200, Denis Turischev wrote: > > >>> Also, which kernel are you experiencing this issue

[PATCH net-next] r8152: fix the wrong return value

2014-01-02 Thread Hayes Wang
The return value should be the boolean value, not the error code. Signed-off-by: Hayes Wang Spotted-by: Dan Carpenter --- drivers/net/usb/r8152.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index e3d878c..13fabbb 100644 -

RE: [PATCH net-next v2 6/6] r8152: support RTL8153

2014-01-02 Thread hayeswang
Bjørn Mork [mailto:bj...@mork.no] > Sent: Thursday, January 02, 2014 10:25 PM > To: Hayeswang > Cc: oli...@neukum.org; net...@vger.kernel.org; nic_swsd; > linux-ker...@vger.kernel.org; linux-usb@vger.kernel.org > Subject: Re: [PATCH net-next v2 6/6] r8152: support RTL8153 > [...] > > +#if defin

RE: [PATCH] usb/core: fix NULL pointer dereference in recursively_mark_NOTATTACHED

2014-01-02 Thread Du, ChangbinX
> On Thu, 26 Dec 2013, Du, ChangbinX wrote: > > > I can reproduce issue by adding a delay just after > > usb_set_intfdata(intf, NULL) (echo -1 > bConfigurationValue to trigger > hub_dissconnect())without your patch. > > > > After patch applied, cannot reproduce and didn't found any other issue. >

Re: [RFC 0/2] target refcounting infrastructure fixes for usb

2014-01-02 Thread Sarah Sharp
On Sat, Dec 21, 2013 at 03:51:25PM -0500, Alan Stern wrote: > On Fri, 20 Dec 2013, Sarah Sharp wrote: > > > On Thu, Dec 19, 2013 at 11:48:47AM -0800, James Bottomley wrote: > > > It should apply incrementally on top of the previous two. If it > > > actually works, I'll fold it into the first patc

[RFC 2/2] dual scan thread bug fix

2014-01-02 Thread James Bottomley
In the highly unusual case where two threads are running concurrently through the scanning code scanning the same target, we run into the situation where one may allocate the target while the other is still using it. In this case, because the reap checks for STARGET_CREATED and kills the target wi

[RFC 1/2] fix our current target reap infrastructure

2014-01-02 Thread James Bottomley
This patch eliminates the reap_ref and replaces it with a proper kref. On last put of this kref, the target is removed from visibility in sysfs. The final call to scsi_target_reap() for the device is done from __scsi_remove_device() and only if the device was made visible. This ensures that the t

[RFC 0/2] target refcounting infrastructure fixes for usb

2014-01-02 Thread James Bottomley
This set should fix our target problems with USB by making the target visibility properly reference counted. Since it's a major change to the infrastructure, we'll incubate upstream first before backporting to stable. James Bottomley (2): [SCSI] fix our current target reap infrastructure. [SC

Re: [RFC 0/2] target refcounting infrastructure fixes for usb

2014-01-02 Thread James Bottomley
On Sat, 2013-12-21 at 15:51 -0500, Alan Stern wrote: > On Fri, 20 Dec 2013, Sarah Sharp wrote: > > > On Thu, Dec 19, 2013 at 11:48:47AM -0800, James Bottomley wrote: > > > It should apply incrementally on top of the previous two. If it > > > actually works, I'll fold it into the first patch. > >

Re: [PATCH v1] xhci: Switch Intel Lynx Point ports to EHCI on shutdown

2014-01-02 Thread Sarah Sharp
On Sun, Dec 22, 2013 at 09:47:49AM +0200, Denis Turischev wrote: > On 12/21/2013 01:45 AM, Sarah Sharp wrote: > > On Fri, Dec 20, 2013 at 12:41:11PM +0200, Denis Turischev wrote: > >>> Also, which kernel are you experiencing this issue on? In 3.12, I > >>> queued a separate patch to deal with spur

Re: Similar Elan Touchscreen reset behaviour

2014-01-02 Thread Sarah Sharp
On Sun, Dec 29, 2013 at 06:28:20AM -0800, Eric Decker wrote: > Hi Sarah, > > I hope this is reasonable to send this directly to you. If not please feel > free to point me in the right direction. Thanks for the bug report! It's always good to Cc the kernel subsystem mailing list on bug reports (

Re: Isochronous transfer error on USB3

2014-01-02 Thread Sarah Sharp
On Sun, Dec 29, 2013 at 02:54:40AM -0200, Mauro Carvalho Chehab wrote: > It seems that usb_unlink_urb() is causing troubles with xHCI: the > endpoint stops streaming, but, after that, it doesn't start again, > and lots of debug messages are produced. I emailed you the full log > after start streami

[PATCH 14/16] USB: ch341: clean up interrupt handler

2014-01-02 Thread Johan Hovold
Clean up interrupt completion handler somewhat. Signed-off-by: Johan Hovold --- drivers/usb/serial/ch341.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c index ac21618ace19..65a81c64bf7b 100644 ---

[PATCH 12/16] USB: ch341: only wake up MSR queue on changes

2014-01-02 Thread Johan Hovold
Only wake up MSR wait queue on actual modem-status changes. Signed-off-by: Johan Hovold --- drivers/usb/serial/ch341.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c index 025b7857a36c..acc88650ac0a 100644 --- a/drivers/usb/serial/c

[PATCH 04/16] USB: pl2303: switch to generic TIOCMIWAIT implementation

2014-01-02 Thread Johan Hovold
Switch to the generic TIOCMIWAIT implementation which does not suffer from the races involved when using the deprecated sleep_on functions. Cc: Arnd Bergmann Signed-off-by: Johan Hovold --- drivers/usb/serial/pl2303.c | 49 - 1 file changed, 8 inserti

[PATCH 08/16] USB: cypress_m8: switch to generic TIOCMIWAIT implementation

2014-01-02 Thread Johan Hovold
Switch to the generic TIOCMIWAIT implementation which does not suffer from the races involved when using the deprecated sleep_on functions. Cc: Arnd Bergmann Signed-off-by: Johan Hovold --- drivers/usb/serial/cypress_m8.c | 63 +++-- 1 file changed, 16 insert

[PATCH 05/16] USB: cypress_m8: fix ring-indicator detection and reporting

2014-01-02 Thread Johan Hovold
Fix ring-indicator (RI) status-bit definition, which was defined as CTS, effectively preventing RI-changes from being detected while reporting false RI status. This bug predates git. Cc: sta...@vger.kernel.org Signed-off-by: Johan Hovold --- drivers/usb/serial/cypress_m8.h | 2 +- 1 file change

[PATCH 16/16] USB: oti6858: switch to generic TIOCMIWAIT implementation

2014-01-02 Thread Johan Hovold
Switch to the generic TIOCMIWAIT implementation. Signed-off-by: Johan Hovold --- drivers/usb/serial/oti6858.c | 55 ++-- 1 file changed, 12 insertions(+), 43 deletions(-) diff --git a/drivers/usb/serial/oti6858.c b/drivers/usb/serial/oti6858.c index 9ea15

[PATCH 03/16] USB: pl2303: only wake up MSR queue on changes

2014-01-02 Thread Johan Hovold
Only wake up MSR wait queue on actual modem-status changes. Signed-off-by: Johan Hovold --- drivers/usb/serial/pl2303.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 11de1f169308..64f093f1698

[PATCH 06/16] USB: cypress_m8: clean up protocol definitions

2014-01-02 Thread Johan Hovold
Clean up protocol definitions. Signed-off-by: Johan Hovold --- drivers/usb/serial/cypress_m8.h | 29 - 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/drivers/usb/serial/cypress_m8.h b/drivers/usb/serial/cypress_m8.h index ce13e61b7d55..68bfd5197a63 10

[PATCH 13/16] USB: ch341: switch to generic TIOCMIWAIT implementation

2014-01-02 Thread Johan Hovold
Switch to the generic TIOCMIWAIT implementation which does not suffer from the races involved when using the deprecated sleep_on functions. Cc: Arnd Bergmann Signed-off-by: Johan Hovold --- drivers/usb/serial/ch341.c | 49 -- 1 file changed, 8 inserti

[PATCH 10/16] USB: ch341: clean up line-status handling

2014-01-02 Thread Johan Hovold
Clean up line-status handling. Signed-off-by: Johan Hovold --- drivers/usb/serial/ch341.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c index f647dbdcb27d..9dd94a7e08b9 100644 --- a/drivers/usb/

[PATCH 09/16] USB: ch341: refactor line-status handling

2014-01-02 Thread Johan Hovold
Refactor line-status handling. Signed-off-by: Johan Hovold --- drivers/usb/serial/ch341.c | 51 +- 1 file changed, 28 insertions(+), 23 deletions(-) diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c index 8908760cca9f..f647dbdcb27d

[PATCH 11/16] USB: ch341: fix ignored TIOCMIWAIT mask

2014-01-02 Thread Johan Hovold
Make sure the TIOCMIWAIT mask is always honoured. The CH341 interrupt status has a multiple-status changed flag which indicates that multiple status changes has occurred since last interrupt event. Unfortunately, if the final status is the same, there appears to be no way to determine which signal

[PATCH 00/16] USB: serial: more patches for v3.14

2014-01-02 Thread Johan Hovold
Hi Greg, Here's a second batch of patches for v3.14 (again, if not too late). The first one is a minor fix to the series posted last week (missing const) and the remaining patches clean up modem-status handling and switches the remaining usb-serial drivers with custom TIOCMIWAIT-implementations o

[PATCH 02/16] USB: pl2303: clean up line-status handling

2014-01-02 Thread Johan Hovold
Clean up line-status handling somewhat. Get tty-reference only when actually needed. Signed-off-by: Johan Hovold --- drivers/usb/serial/pl2303.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl230

[PATCH 15/16] USB: oti6858: only wake up MSR queue on changes

2014-01-02 Thread Johan Hovold
Only wake up MSR wait queue on actual modem-status changes. Signed-off-by: Johan Hovold --- drivers/usb/serial/oti6858.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/usb/serial/oti6858.c b/drivers/usb/serial/oti6858.c index 1dea599bb71b..9ea15e0a22d8 100644 --

[PATCH 07/16] USB: cypress_m8: only wake up MSR queue on changes

2014-01-02 Thread Johan Hovold
Only wake up MSR wait queue on actual modem-status changes. Signed-off-by: Johan Hovold --- drivers/usb/serial/cypress_m8.c | 5 - drivers/usb/serial/cypress_m8.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress

[PATCH 01/16] USB: pl2303: make type data const

2014-01-02 Thread Johan Hovold
Declare constant device-type data as const. Signed-off-by: Johan Hovold --- drivers/usb/serial/pl2303.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 253cc9c367c1..9951dfddc784 100644 --- a/drivers/usb/seri

Re: [PATCH, RFC 15/30] usbserial: stop using interruptible_sleep_on

2014-01-02 Thread Johan Hovold
Hi Arnd, On Thu, Jan 02, 2014 at 01:07:39PM +0100, Arnd Bergmann wrote: > We really want to kill off interruptible_sleep_on, which is defined > in a way that is always racy. There are four usb-serial drivers using > it to implement their tiocmiwait() functions, which is defined in > a way that alw

Re: [PATCH 3.12 033/118] usb: xhci: Link TRB must not occur within a USB payload burst

2014-01-02 Thread Sarah Sharp
On Thu, Jan 02, 2014 at 04:01:29PM -0500, Mark Lord wrote: > On 14-01-02 02:15 PM, Sarah Sharp wrote: > > On Tue, Dec 31, 2013 at 12:40:16PM -0800, walt wrote: > .. > >> Unfortunately this patch causes a regression when copying large files to my > >> outboard USB3 drive. (Nothing at all to do with

Re: [PATCH 3.12 033/118] usb: xhci: Link TRB must not occur within a USB payload burst

2014-01-02 Thread James Bottomley
On Thu, 2014-01-02 at 16:01 -0500, Mark Lord wrote: > On 14-01-02 02:15 PM, Sarah Sharp wrote: > > On Tue, Dec 31, 2013 at 12:40:16PM -0800, walt wrote: > .. > >> Unfortunately this patch causes a regression when copying large files to my > >> outboard USB3 drive. (Nothing at all to do with network

Re: [PATCH 3.12 033/118] usb: xhci: Link TRB must not occur within a USB payload burst

2014-01-02 Thread Mark Lord
On 14-01-02 02:15 PM, Sarah Sharp wrote: > On Tue, Dec 31, 2013 at 12:40:16PM -0800, walt wrote: .. >> Unfortunately this patch causes a regression when copying large files to my >> outboard USB3 drive. (Nothing at all to do with networking.) >> >> When I try to copy a large (20GB) file to the USB3

Re: XHCI issues: WD MyBook 1230 - reset SuperSpeed USB device

2014-01-02 Thread AndrejP
Peter Palúch writes: > > Hi Andrej, > > > Same problem here. HP elitebook 8560w. Running on Arch linux, kernel: > > 3.12.5. Attaching WD Elements 1TB.no > > Thanks for confirming that the issue also occurs with HP EliteBook > 8560w. Do you believe you could also create the usbmon capture trac

RE: [PATCH] usb/core: fix NULL pointer dereference in recursively_mark_NOTATTACHED

2014-01-02 Thread Alan Stern
On Thu, 26 Dec 2013, Du, ChangbinX wrote: > I can reproduce issue by adding a delay just after usb_set_intfdata(intf, > NULL) > (echo -1 > bConfigurationValue to trigger hub_dissconnect())without your > patch. > > After patch applied, cannot reproduce and didn't found any other issue. Patch >

Re: [PATCH 3.12 033/118] usb: xhci: Link TRB must not occur within a USB payload burst

2014-01-02 Thread Sarah Sharp
On Tue, Dec 31, 2013 at 12:40:16PM -0800, walt wrote: > On 12/18/2013 01:11 PM, Greg Kroah-Hartman wrote: > > 3.12-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: David Laight > > > > commit 35773dac5f862cb1c82ea151eba3e2f6de51ec3

Re: USB HID devices communicating with each other

2014-01-02 Thread Joe M
Hello Alan Ott, > The modifiers are shared between keyboards by default in Linux. If you > hold CTRL on one keyboard and C on the other, you'll get the same result > as having pressed CTRL-C on one keyboard. Thanks for clearing it up. I was able to test the modifiers being shared between keyboard

Re: Alcatel usb modem

2014-01-02 Thread Dan Williams
On Sun, 2013-12-29 at 15:35 +0700, Lars Melin wrote: > On 2013-12-29 00:55, Greg KH wrote: > > On Sat, Dec 28, 2013 at 02:13:08PM +, thomas.takacs.a...@gmail.com > > wrote: > >> Hi, > >> I've seen this message: tell linux-usb... to add your device to a proper > >> device. > >> My USB modem is

Re: [PATCH v5 0/9] phy: Add new Exynos USB 2.0 PHY driver

2014-01-02 Thread Kishon Vijay Abraham I
Hi Kamil, On Thursday 02 January 2014 09:50 PM, Kamil Debski wrote: Hi Kishon, I wanted to ask about your comments to this patchset. As I mentioned there are two alternative version where the Exynos 4210 and 4212 support is merged in one file. I would be grateful if you had some time to look a

[PATCH 02/12] libusbg: Add missing return statement in non-void functions.

2014-01-02 Thread Krzysztof Opasiak
Add return 0 in functions which return non-void to suppress compiler complaint. Signed-off-by: Krzysztof Opasiak --- src/gadget.c |4 1 file changed, 4 insertions(+) diff --git a/src/gadget.c b/src/gadget.c index 8ca68b3..8320f34 100644 --- a/src/gadget.c +++ b/src/gadget.c @@ -223,6 +

RE: [PATCH v5 0/9] phy: Add new Exynos USB 2.0 PHY driver

2014-01-02 Thread Kamil Debski
Hi Kishon, I wanted to ask about your comments to this patchset. As I mentioned there are two alternative version where the Exynos 4210 and 4212 support is merged in one file. I would be grateful if you had some time to look at the patchset and share your comments. Best wishes and happy new yea

[PATCH 12/12] libusbg: Replace directory names with defines.

2014-01-02 Thread Krzysztof Opasiak
Replace strings, functions, configs strings placed everywhere in code with macro defintions STRINGS_DIR, FUNCTIONS_DIR and CONFIGS_DIR. Signed-off-by: Krzysztof Opasiak --- src/gadget.c | 37 +++-- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/

[PATCH 09/12] libusbg: Initialize gadget attributes and strings while gadget creation.

2014-01-02 Thread Krzysztof Opasiak
Fix gadget_create_gadget function to initialize gadget attributes and strings with default values provided by kernel. Signed-off-by: Krzysztof Opasiak --- src/gadget.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gadget.c b/src/gadget.c index 2686d62..0554c7d 1

[PATCH 11/12] libusbg: Replace memcpy with structure assignment.

2014-01-02 Thread Krzysztof Opasiak
Use the assign operator for structure instead of using memcpy with hard coded size. Signed-off-by: Krzysztof Opasiak --- src/gadget.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gadget.c b/src/gadget.c index 2bc4f2e..005d9b0 100644 --- a/src/gadget.c +++ b/

[PATCH 10/12] libusbg: Move symlink creation after memory allocation.

2014-01-02 Thread Krzysztof Opasiak
Move creation of symlink after memory allocation for binding structure. Fix missing initialization of parent. Signed-off-by: Krzysztof Opasiak --- src/gadget.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/gadget.c b/src/gadget.c index 0554c7d..2bc4f2e 10

[PATCH 06/12] libusbg: Add error handling to gadget_read_string().

2014-01-02 Thread Krzysztof Opasiak
Add error handling when gadget_read_buf() returns NULL. If read of string fails, the string should be set as empty. Signed-off-by: Krzysztof Opasiak --- Changes since v2: - replace // comments with /* */ - add missing parenthesis in commit message src/gadget.c | 23 +++

[PATCH 04/12] libusbg: Move directory creation before writing attributes.

2014-01-02 Thread Krzysztof Opasiak
Change order of gadget creation and attribute writting to fix No such file or directory error while creating new gadget. Signed-off-by: Krzysztof Opasiak --- src/gadget.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gadget.c b/src/gadget.c index 8320f34..

[PATCH 01/12] libusbg: Surround header with include guards.

2014-01-02 Thread Krzysztof Opasiak
Surround header with include guards to protect against multiple inclusion. Signed-off-by: Krzysztof Opasiak --- include/gadget/gadget.h |4 1 file changed, 4 insertions(+) diff --git a/include/gadget/gadget.h b/include/gadget/gadget.h index 9bca97e..f3c08e9 100644 --- a/include/gadget/

[PATCH 08/12] libusbg: Separate parsing gadget attributes and strings.

2014-01-02 Thread Krzysztof Opasiak
Gadget attributes and strings are logically independent, so they should be initialized in separate functions. Signed-off-by: Krzysztof Opasiak --- src/gadget.c |9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gadget.c b/src/gadget.c index 31adb67..2686d62 10064

[PATCH 07/12] libusbg: Add missing config attrs parsing while new config creation.

2014-01-02 Thread Krzysztof Opasiak
Afther creation of configuration its attributes left uninitialized. Config attrs should be initialized with default values provided by kernel. Signed-off-by: Krzysztof Opasiak --- src/gadget.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gadget.c b/src/gadget.c index 6f0c84a..31a

[PATCH 05/12] libusbg: Fix memory leak when unable to create directory.

2014-01-02 Thread Krzysztof Opasiak
Free the memory allocated for gadget/config/function structure when faild to create suitable directory. Signed-off-by: Krzysztof Opasiak --- src/gadget.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gadget.c b/src/gadget.c index aea9b2e..f613c3e 100644 --- a/src/gadget.c +++ b/s

[PATCH 00/12] libusbg: Cleanup, bug fix and refactoring.

2014-01-02 Thread Krzysztof Opasiak
Dear Matt, Please excuse me my passivity after discussuon about libusbg some time ago. I had to close some other issues before taking up this one. Recently I looked into code of libusbg, build it and found some errors which are fixed in attached patches. Moreover I have done some clean up and min

[PATCH 03/12] libusbg: Fix gadget-acm-ecm example to cleanup at exit.

2014-01-02 Thread Krzysztof Opasiak
Make use of previously unused variable ret to cleanup after successful gadget creation. Signed-off-by: Krzysztof Opasiak --- examples/gadget-acm-ecm.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/gadget-acm-ecm.c b/examples/gadget-acm-ecm.

[PATCH] USB: serial: add support for iBall 3.5G connect usb modem

2014-01-02 Thread Rahul Bedarkar
Add support for iBall 3.5G connect usb modem. $lsusb Bus 002 Device 006: ID 1c9e:9605 OMEGA TECHNOLOGY $usb-devices T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 6 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=1c9e ProdID=9605 Rev=00.00 S: Manufacturer

RE: [PATCH v2 06/12] libusbg: Add error handling to gadget_read_string.

2014-01-02 Thread Krzysztof Opasiak
Hi, > -Original Message- > From: Alan Ott [mailto:a...@signal11.us] > Sent: Tuesday, December 31, 2013 4:32 AM > To: Krzysztof Opasiak; mpor...@linaro.org; linux- > u...@vger.kernel.org > Cc: Andrzej Pietrasiewicz; Piotr Bereza; Karol Lewandowski; > Aleksander Zdyb; Stanislaw Wadas; myungj

Re: iBall 3.5G usb modem

2014-01-02 Thread Rahul Bedarkar
On Thu, Jan 2, 2014 at 7:35 PM, Bjørn Mork wrote: > Rahul Bedarkar writes: > >> I am using iBall 3.5G usb modem. When I connected it to my laptop >> first time, it was detected by kernel but got segfault in >> usb_modeswitch. > > I don't think the segfault is related to the drivers or kernel in a

Re: 0471:206c IR receiver, mceusb & NULL pointer dereference

2014-01-02 Thread Sander Smeenk
Quoting Alan Ott (a...@signal11.us): > >I'm no kernel hacker nor am i a USB expert so i'm not sure wether or not > >ep_out is mandatory but looking at the rest of the code it would seem the > >function should return -ENODEV as with ep_in == NULL. > >That's a bug, no? > It appears that way. Especia

Re: [PATCH net-next v2 6/6] r8152: support RTL8153

2014-01-02 Thread Bjørn Mork
Hayes Wang writes: > Support new chip RTL8153 which is the USB 3.0 giga ethernet adapter. > > Signed-off-by: Hayes Wang > --- > drivers/net/usb/cdc_ether.c | 10 + > drivers/net/usb/r8152.c | 615 > +++- > drivers/net/usb/r815x.c | 2 +- > 3 f

Re: iBall 3.5G usb modem

2014-01-02 Thread Bjørn Mork
Rahul Bedarkar writes: > I am using iBall 3.5G usb modem. When I connected it to my laptop > first time, it was detected by kernel but got segfault in > usb_modeswitch. I don't think the segfault is related to the drivers or kernel in any way. It is probably a usb_modeswitch bug. But the devic

[PATCH] USB: serial: correct spelling mistakes in comments

2014-01-02 Thread Rahul Bedarkar
Signed-off-by: Rahul Bedarkar --- drivers/usb/serial/aircable.c | 10 +- drivers/usb/serial/ark3116.c | 4 ++-- drivers/usb/serial/belkin_sa.c| 2 +- drivers/usb/serial/cyberjack.c| 2 +- drivers/usb/serial/garmin_gps.c | 4 ++-- drivers/usb/ser

[PATCH] USB: musb: correct spelling mistakes in comment and error string

2014-01-02 Thread Rahul Bedarkar
Signed-off-by: Rahul Bedarkar --- drivers/usb/musb/blackfin.c| 4 ++-- drivers/usb/musb/musb_core.c | 6 +++--- drivers/usb/musb/musb_cppi41.c | 2 +- drivers/usb/musb/musb_host.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/usb/musb/blackfin.c b/drivers

[PATCH] USB: misc: idmouse: correct spelling mistake in error string

2014-01-02 Thread Rahul Bedarkar
Signed-off-by: Rahul Bedarkar --- drivers/usb/misc/idmouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/misc/idmouse.c b/drivers/usb/misc/idmouse.c index ce97838..49235bd 100644 --- a/drivers/usb/misc/idmouse.c +++ b/drivers/usb/misc/idmouse.c @@ -386,7 +386,

[patch] [media] staging: sn9c102: add a USB depend to the Kconfig

2014-01-02 Thread Dan Carpenter
This driver won't link without USB support. Reported-by: Jim Davis Signed-off-by: Dan Carpenter diff --git a/drivers/staging/media/sn9c102/Kconfig b/drivers/staging/media/sn9c102/Kconfig index d8ae2354b626..3ab9c81173da 100644 --- a/drivers/staging/media/sn9c102/Kconfig +++ b/drivers/staging/m

[PATCH, RFC 15/30] usbserial: stop using interruptible_sleep_on

2014-01-02 Thread Arnd Bergmann
We really want to kill off interruptible_sleep_on, which is defined in a way that is always racy. There are four usb-serial drivers using it to implement their tiocmiwait() functions, which is defined in a way that always has a race when called from user space. This patch changes the four drivers

[PATCH, RFC 00/30] sleep_on removal

2014-01-02 Thread Arnd Bergmann
The functions sleep_on, sleep_on_timeout, interruptible_sleep_on and interruptible_sleep_on_timeout have been deprecated for as long as I can remember, and a number of people have contributed patches in the past to remove them from various drivers. This has recently popped up again and I decided t

Re: [PATCH] staging: usbip: add support for viewing imported devices

2014-01-02 Thread Dan Carpenter
-Werror=unused-parameter is stupid. Better to turn it off instead of ugly work arounds. regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-i

Re: [PATCH 1/1] usb: phy-generic: add the implementation of .set_suspend

2014-01-02 Thread Peter Chen
On Fri, Dec 27, 2013 at 11:20:26AM -0600, Felipe Balbi wrote: > Hi, > > On Fri, Dec 27, 2013 at 04:11:21PM +0800, Peter Chen wrote: > > > > > > > > Add clock enable/disable at .set_suspend if the PHY has > > > > > > > > suspend requirement, it can be benefit of power saving for > > > > > > > > phy