Re: [PATCH 0/7] usb: dwc2/s3c-hsotg: Combine drivers into a single DRD

2014-02-17 Thread Robert Baldyga
On 02/17/2014 01:37 AM, Jingoo Han wrote: > On Friday, February 14, 2014 6:44 PM, Robert Baldyga wrote: >> On 02/13/2014 10:10 PM, dingu...@altera.com wrote: >>> From: Dinh Nguyen >>> >>> Hello, >>> >>> This patch series combines the dwc2 host driver and the s3c-hsotg peripheral >>> driver into a

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

2014-02-17 Thread Sachin Kamat
On 3 February 2014 13:59, Sachin Kamat wrote: > 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

Re: [PATCH v3] phy: Add new Exynos5 USB 3.0 PHY driver

2014-02-17 Thread Vivek Gautam
Hi Tomasz, On Fri, Feb 14, 2014 at 9:17 PM, Tomasz Figa wrote: mistakenly didn't do "Reply All", so sending it again. > Hi Vivek, > > > On 14.02.2014 14:53, Vivek Gautam wrote: Changes from v2: 1) Added support for multiple PHYs (UTMI+ and PIPE3) and related changes in

Re: usb/serial/io_ti.c broken on BE systems

2014-02-17 Thread Johan Hovold
On Thu, Feb 13, 2014 at 03:49:55PM +, Ludovic wrote: > I've created a little libusb perl script to debug the device, and found that > I could simulate the MIPS bug if I would send a read_download_mem address in > LE format instead of BE, e.g.: > > $dev->control_msg((64 + 0 + 128), 0x92 , 0x

Re: v3.14-rc2+ WARNING: CPU: 0 PID: 24108 at fs/sysfs/group.c:216 sysfs_remove_group+0xa3/0xb0()

2014-02-17 Thread Michal Šmucr
On 17.2.2014 9:41, Ronald wrote: I caught this by coincidence since I had netconsole attached to debug a nouveau MSI problem (deadlock). It happenned when I disconnected my external hardrive in thunar. I have attached my full dmesg. Sorry for third time, now without HTML, I've played with la

[PATCH] usb: mark *hci_pci irqs with IRQF_NO_THREAD

2014-02-17 Thread Stanislaw Gruszka
There is threadirqs kenel boot option which allow to force interrupt routines to be performed as thread. USB irq routines use spin_lock(*hci->lock) variant without disabling interrupts, what is perfectly fine, but that can cause deadlock when forced thread irqs are used. Deadlock scenario is quit

USB keyboard occasional key stuck

2014-02-17 Thread Daniel J Blueman
Across 5+ years of kernels, I've been seeing occasional (1-2 times per day) key-stuck issues where eg a fn+delete combo repeats delete until I press delete again. I've seen this happen with fn+ctrl+left, leaving left held and likewise with right. This has occurred on Apple laptops, external USB ke

Re: [PATCH] usb: mark *hci_pci irqs with IRQF_NO_THREAD

2014-02-17 Thread Alan Stern
On Mon, 17 Feb 2014, Stanislaw Gruszka wrote: > There is threadirqs kenel boot option which allow to force interrupt > routines to be performed as thread. > > USB irq routines use spin_lock(*hci->lock) variant without disabling > interrupts, what is perfectly fine, but that can cause deadlock wh

USB/IP

2014-02-17 Thread konstunn
Greetings. How can I build USB/IP kernel modules and userspace tools sparsely from linux kernel tree? I've tried make O=/home/build/directory/ drivers/staging/usbip/ but this only compiles .c files to .o files, but doesn't link them to kernel object .ko files. And I need to build usersp

Re: USB/IP

2014-02-17 Thread Greg KH
On Tue, Feb 18, 2014 at 12:04:23AM +0700, konst...@ngs.ru wrote: > Greetings. > > How can I build USB/IP kernel modules and userspace tools > sparsely from linux kernel tree? > > > I've tried > > make O=/home/build/directory/ drivers/staging/usbip/ > > but this only compiles .c files to .o fi

[PATCH 00/25] Bug fixes, feature enhancements and API rework.

2014-02-17 Thread Krzysztof Opasiak
Hi Matt, as we have spoken some time ago, I have prepared patches which hides definitions of internal library structures. User shouldn't have access to internal libraries structures which he could modify. To avoid this I have provided some public structures which contains attributes of gadget/co

[PATCH 02/25] libusbg: Change gadget attributes size and names.

2014-02-17 Thread Krzysztof Opasiak
Rename all gadget attributes to be consistent with usb standard and libusb. Change also field size and order to allow direct memcpy from libusb_device_descriptor. Signed-off-by: Krzysztof Opasiak --- examples/show-gadgets.c | 18 +++ include/usbg/usbg.h | 53 +

[PATCH 01/25] libusbg: Separate gadget attributes from gadget.

2014-02-17 Thread Krzysztof Opasiak
Gadget attributes should be placed in external structure because they are almost that same as USB device descriptor. Signed-off-by: Krzysztof Opasiak --- examples/show-gadgets.c | 18 +- include/usbg/usbg.h | 28 src/usbg.c | 35

[PATCH 05/25] libusbg: Update strings only when writting US English strings.

2014-02-17 Thread Krzysztof Opasiak
Strings in current verison of library are hardcoded to US English. Functions which set strings are generic and allow to set other languages, but internal library structures should be update only when setting US English strings. Signed-off-by: Krzysztof Opasiak --- src/usbg.c | 20 +

[PATCH 10/25] libusbg: Add getter for gadget name and udc.

2014-02-17 Thread Krzysztof Opasiak
Add usbg_get_gadget_name() and usbg_get_gadget_udc() to avoid direct gadget structure members access. Add also usbg_get_gadget_name_len() and usbg_get_gadget_udc_len() to allow getting udc and name length. Signed-off-by: Krzysztof Opasiak --- include/usbg/usbg.h | 34 +

[PATCH 06/25] libsubg: Add missing set vendor/product functions.

2014-02-17 Thread Krzysztof Opasiak
Setting idVendor and idProduct was allowed only when creating new gadget. Add usbg_set_gadget_vendor_id() and usbg_set_gadget_product_id() to allow set those values on existing gadget. Signed-off-by: Krzysztof Opasiak --- include/usbg/usbg.h | 14 ++ src/usbg.c | 12

[PATCH 13/25] libusbg: Separate config attrs and strs form configuration.

2014-02-17 Thread Krzysztof Opasiak
Configuration, its attributes and strings are all logically independent so should be placed in separate structures. Signed-off-by: Krzysztof Opasiak --- examples/show-gadgets.c |6 +++--- include/usbg/usbg.h | 32 +--- src/usbg.c | 37

[PATCH 14/25] libusbg: Add set/get config attrs/strings functions.

2014-02-17 Thread Krzysztof Opasiak
Add usbg_set_config_attrs() function to allow setting all attributes with one call. Add also getter for attrs to avoid direct accessing of configuration fields. Add usbg_set_config_strs() to be consistent with gadget API. Change usbg_create_config() to allow configuration creation and attribute s

[PATCH 04/25] libusbg: Use dedicated macro instead of copy-paste code.

2014-02-17 Thread Krzysztof Opasiak
Insterting in string order has been done few times. It was almost the same piece of code copied and pasted with some minor changes. All those pieces has been replaced with new macro INSERT_TAILQ_STRING_ORDER which does all the job. Signed-off-by: Krzysztof Opasiak --- src/usbg.c | 75 +

[PATCH 09/25] libusbg: Add getters for gadget strings and attributes.

2014-02-17 Thread Krzysztof Opasiak
Add getter's to avoid direct access to gadget structure members. Signed-off-by: Krzysztof Opasiak --- include/usbg/usbg.h | 18 ++ src/usbg.c | 24 2 files changed, 42 insertions(+) diff --git a/include/usbg/usbg.h b/include/usbg/usbg.h inde

[PATCH 11/25] libusbg: Change for each macros to avoid direct access to fields.

2014-02-17 Thread Krzysztof Opasiak
Add dedicated functions for iterating over gadgets, configs, bindigs and functions to avoid direct access to fields of this structures. Change definitons of usbg_for_each_* macros to use new functions. Signed-off-by: Krzysztof Opasiak --- include/usbg/usbg.h | 80 ++

[PATCH 15/25] libusbg: Add getter for config name.

2014-02-17 Thread Krzysztof Opasiak
Add usbg_get_config_name() and usbg_get_config_name_len() to avoid direct config structure members access. Signed-off-by: Krzysztof Opasiak --- include/usbg/usbg.h | 16 src/usbg.c | 10 ++ 2 files changed, 26 insertions(+) diff --git a/include/usbg/usbg.h

[PATCH 08/25] libusbg: Add functions to set all strs and attrs with one call.

2014-02-17 Thread Krzysztof Opasiak
Rename usbg_create_gadget() to usbg_create_vid_pid(). dd usbg_create_gadget() to allow gadget creation with given attributes and strings. Add usbg_set_gadget_attrs() which allow to set all attributes with one call. Add usbg_set_gadget_strs() which allow to set all strings with one call. Gadget str

[PATCH 03/25] libusbg: Separate gadget strings from gadget.

2014-02-17 Thread Krzysztof Opasiak
Gadget strings are not logically part of gadget, so should be separated. Signed-off-by: Krzysztof Opasiak --- examples/show-gadgets.c |6 +++--- include/usbg/usbg.h | 14 +++--- src/usbg.c | 20 ++-- 3 files changed, 24 insertions(+), 16 deletions

[PATCH 12/25] libusbg: Add getter for configfs path in state.

2014-02-17 Thread Krzysztof Opasiak
Add usbg_get_configfs_path_len() and usbg_get_configfs_path() to avoid direct access to state structure. Signed-off-by: Krzysztof Opasiak --- include/usbg/usbg.h | 16 src/usbg.c | 10 ++ 2 files changed, 26 insertions(+) diff --git a/include/usbg/usbg.h b/

[PATCH 16/25] libusbg: Remove function_names from header file.

2014-02-17 Thread Krzysztof Opasiak
function_names table is for internal usage only. User should use function_types enum. Signed-off-by: Krzysztof Opasiak --- include/usbg/usbg.h | 17 - src/usbg.c | 17 + 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/include/usbg/usb

[PATCH 07/25] libusbg: Fix wrong paths while setting gadget attributes.

2014-02-17 Thread Krzysztof Opasiak
Add missing gadget name to path while writting gadget attributes. Signed-off-by: Krzysztof Opasiak --- src/usbg.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/usbg.c b/src/usbg.c index 15bcd8d..543102c 100644 --- a/src/usbg.c +++ b/src/usbg.c @@ -576

[PATCH 19/25] libusbg: Add getter for binding name and target.

2014-02-17 Thread Krzysztof Opasiak
Add usbg_get_binding_target() to avoid direct binding structure members access. Add also usbg_get_binding_name_len() and usbg_get_binding_name() to allow getting binding name. Signed-off-by: Krzysztof Opasiak --- include/usbg/usbg.h | 23 +++ src/usbg.c | 15

[PATCH 17/25] libusbg: Add functions for get/set function attributes.

2014-02-17 Thread Krzysztof Opasiak
Add usbg_get_function_attrs() and usbg_get_function_type() to aviod direct access to function structure members. Add usbg_set_function_attrs() to allow set all function\ attributes with one call. Signed-off-by: Krzysztof Opasiak --- examples/gadget-acm-ecm.c |6 ++--- include/usbg/usbg.h

[PATCH 21/25] libusbg: Hide definition of gadget structure.

2014-02-17 Thread Krzysztof Opasiak
Remove definition of gadget structure to avoid direct access to its fields. Rename that structure to usbg_gadget. Signed-off-by: Krzysztof Opasiak --- examples/gadget-acm-ecm.c |4 +- examples/show-gadgets.c | 64 -- include/usbg/usbg.h | 139 +-

[PATCH 20/25] libusbg: Hide definition of state structure.

2014-02-17 Thread Krzysztof Opasiak
Hide definition of state structure to avoid direct access to its fields. Rename it to usbg_state. Signed-off-by: Krzysztof Opasiak --- examples/gadget-acm-ecm.c |2 +- examples/show-gadgets.c |2 +- include/usbg/usbg.h | 31 +++ src/usbg.c

[PATCH 25/25] libusbg: Update examples to new API.

2014-02-17 Thread Krzysztof Opasiak
API of library has been changed, so it is necessary to update examples of library usage. Signed-off-by: Krzysztof Opasiak --- examples/gadget-acm-ecm.c | 30 -- examples/show-gadgets.c |4 ++-- 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/ex

[PATCH 22/25] libusbg: Hide definition of function structure.

2014-02-17 Thread Krzysztof Opasiak
Hide definition of function structure to avoid direct access to its fields. Rename it to usbg_function. Signed-off-by: Krzysztof Opasiak --- examples/gadget-acm-ecm.c |4 +-- examples/show-gadgets.c | 36 --- include/usbg/usbg.h | 53 --

[PATCH 24/25] libusbg: Rename all public structures to usbg convention.

2014-02-17 Thread Krzysztof Opasiak
Switch form struct * to typedef usbg_* to provide convenient API for user. Signed-off-by: Krzysztof Opasiak --- examples/show-gadgets.c | 10 ++--- include/usbg/usbg.h | 100 +++ src/usbg.c | 58 +-- 3 file

[PATCH 18/25] libusbg: Add getter for function name.

2014-02-17 Thread Krzysztof Opasiak
Add usbg_get_function_name() and usbg_get_function_name_len() to avoid direct function structure members access. Signed-off-by: Krzysztof Opasiak --- include/usbg/usbg.h | 16 src/usbg.c | 10 ++ 2 files changed, 26 insertions(+) diff --git a/include/usbg/u

[PATCH 23/25] libusbg: Hide definition of binding structure.

2014-02-17 Thread Krzysztof Opasiak
Hide definition of binding structure to avoid direct access to its fields. Rename it to usbg_binding. Signed-off-by: Krzysztof Opasiak --- examples/show-gadgets.c |9 + include/usbg/usbg.h | 31 +++ src/usbg.c | 40

Re: [PATCH v2] usbnet: remove generic hard_header_len check

2014-02-17 Thread David Miller
From: Emil Goode Date: Thu, 13 Feb 2014 17:50:19 +0100 > This patch removes a generic hard_header_len check from the usbnet > module that is causing dropped packages under certain circumstances > for devices that send rx packets that cross urb boundaries. > > One example is the AX88772B which oc

Re: v3.14-rc2+ WARNING: CPU: 0 PID: 24108 at fs/sysfs/group.c:216 sysfs_remove_group+0xa3/0xb0()

2014-02-17 Thread Alan Stern
On Mon, 17 Feb 2014, Ronald wrote: > I caught this by coincidence since I had netconsole attached to debug > a nouveau MSI problem (deadlock). It happenned when I disconnected my > external hardrive in thunar. I have attached my full dmesg. This isn't a USB problem. > [17764.280135] usb 1-2: new

Re: v3.14-rc2+ WARNING: CPU: 0 PID: 24108 at fs/sysfs/group.c:216 sysfs_remove_group+0xa3/0xb0()

2014-02-17 Thread James Bottomley
On Mon, 2014-02-17 at 14:48 -0500, Alan Stern wrote: > On Mon, 17 Feb 2014, Ronald wrote: > > > I caught this by coincidence since I had netconsole attached to debug > > a nouveau MSI problem (deadlock). It happenned when I disconnected my > > external hardrive in thunar. I have attached my full d

Re: USB keyboard occasional key stuck

2014-02-17 Thread Bruno Prémont
On Mon, 17 February 2014 Daniel J Blueman wrote: > Across 5+ years of kernels, I've been seeing occasional (1-2 times per > day) key-stuck issues where eg a fn+delete combo repeats delete until > I press delete again. I've seen this happen with fn+ctrl+left, leaving > left held and likewise with r

Re: [PATCH] USB2NET : SR9800 : Use %zu to format size_t

2014-02-17 Thread David Miller
Already fixed in the net tree. -- 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-info.html

[PATCH] USB2NET : SR9800 : Use %zu to format size_t

2014-02-17 Thread Geert Uytterhoeven
On 32-bit: drivers/md/bcache/bset.c: In function ‘bch_dump_bset’: drivers/md/bcache/bset.c:27: warning: format ‘%li’ expects type ‘long int’, but argument 3 has type ‘int’ Signed-off-by: Geert Uytterhoeven --- drivers/net/usb/sr9800.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

[PATCH] chipidea: core: Propagate the real error code on platform_get_irq() failure

2014-02-17 Thread Fabio Estevam
From: Fabio Estevam No need to return a 'fake' return value on platform_get_irq() failure. Just return the error code itself instead. Signed-off-by: Fabio Estevam --- drivers/usb/chipidea/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/chipidea/core.c b/

Re: v3.14-rc2+ WARNING: CPU: 0 PID: 24108 at fs/sysfs/group.c:216 sysfs_remove_group+0xa3/0xb0()

2014-02-17 Thread Michal Šmucr
On 17.2.2014 20:48, Alan Stern wrote: This isn't a USB problem. Hello, I'm experiencing very similar messages after every disconnection of USB soundcard (snd-usb-audio module). During searching for other similar occurrences of message, i've found few patches. One kind basically prevents sy

musb - high CPU load in DMA mode and dropouts during audio playback

2014-02-17 Thread Michal Šmucr
Hello, i'm fighting with audio playback problem on Beaglebone Black AM-3358. Class compilant USB soundcards with isochronous transfers. With DMA enabled in kernels 3.13.2 and 3.14-rc2 it has following symptoms. - it will stutter immediately after starts of playback - kworker thread shows about

musb - babble interrupt recovery

2014-02-17 Thread Michal Šmucr
Hello, during searching for solution to problem with Beaglebone Black USB unreliable reconnections, which i had, when i tried to reconnect devices to external powered hub, I came to that older patch from Ravi Babu, which restarts musb after babble interrupt, https://lkml.org/lkml/2013/5/29/24

Re: HSIC on imx6

2014-02-17 Thread Peter Chen
On Mon, Feb 17, 2014 at 08:23:38AM +0100, Christian Gmeiner wrote: > Hi Peter > > 2014-02-17 2:22 GMT+01:00 Peter Chen : > > On Fri, Feb 14, 2014 at 01:59:56PM +0100, Christian Gmeiner wrote: > >> Hi Peter. > >> > >> I am currently trying to get HSIC working on an imx6d based board. > >> > >> Some

Re: USB keyboard occasional key stuck

2014-02-17 Thread Clinton Sprain
I noticed your examples are both fn combos. I'm seeing something like this and it seems specifically related to the fn key. Reproducible on a Macbook (3,1) and a Lenovo Yoga 13. Sequence is simple: Press key Press fn Release key Release fn The key will be 'stuck' until you press another key. It s

Re: USB keyboard occasional key stuck

2014-02-17 Thread Peter Stuge
Clinton Sprain wrote: > I noticed your examples are both fn combos. I'm seeing something like > this and it seems specifically related to the fn key. Reproducible on a > Macbook (3,1) and a Lenovo Yoga 13. Sequence is simple: > > Press key > Press fn > Release key > Release fn > > The key will be

Re: USB keyboard occasional key stuck

2014-02-17 Thread Daniel J Blueman
On 18 February 2014 10:21, Peter Stuge wrote: > Clinton Sprain wrote: >> I noticed your examples are both fn combos. I'm seeing something like >> this and it seems specifically related to the fn key. Reproducible on a >> Macbook (3,1) and a Lenovo Yoga 13. Sequence is simple: >> >> Press key >> Pr

[EHCI Debug Port] Linux fails to setup EHCI debug port

2014-02-17 Thread Lu, Baolu
Hi list, Linux kernel (3.12.8) fails to setup EHCI debug port on my Sandy Bridge server. This seems to be a normal thing as I tried on other machines and got the same result. This is the EHCI host controller information (printed by lspci -vvv) 00:1a.0 USB controller: Intel Corporation C600/X

Re: [PATCH] usb: mark *hci_pci irqs with IRQF_NO_THREAD

2014-02-17 Thread Stanislaw Gruszka
On Mon, Feb 17, 2014 at 09:48:14AM -0500, Alan Stern wrote: > On Mon, 17 Feb 2014, Stanislaw Gruszka wrote: > > > There is threadirqs kenel boot option which allow to force interrupt > > routines to be performed as thread. > > > > USB irq routines use spin_lock(*hci->lock) variant without disabl

[RESEND] [PATCH] xhci: Switch Intel Lynx Point ports to EHCI on shutdown.

2014-02-17 Thread Denis Turischev
The same issue like with Panther Point chipsets. If the USB ports are switched to xHCI on shutdown, the xHCI host will send a spurious interrupt, which will wake the system. Some BIOS have work around for this, but not all. One example is Compulab's mini-desktop, the Intense-PC2. The bug can be av