usb: gadget: f_fs: Fix iterations on endpoints.

2017-01-07 Thread Vincent Pelletier
From: Vincent Pelletier When zero endpoints are declared for a function, there is no endpoint to disable, enable or free, so replace do...while loops with while loops. Change pre-decrement to post-decrement to iterate the same number of times when there are endpoints to

Re: [PATCH] usb: storage: ene_ub6250: remove unused variable

2017-01-07 Thread Sudip Mukherjee
On Thursday 05 January 2017 06:36 PM, Greg Kroah-Hartman wrote: On Sun, Dec 18, 2016 at 10:34:31PM +, Sudip Mukherjee wrote: The variable Newblk was only being assigned some value but was never used after that. Signed-off-by: Sudip Mukherjee ---

Re: Raw hid gadget

2017-01-07 Thread Alan Stern
On Sat, 7 Jan 2017, Rogan Dawes wrote: > Hi Alan, > > Thanks for the response. I have not read hiddev.txt, so that explains > the incorrect expectations. If I may ask, why is the value a 4-byte > field? Is that just to round it to 8 bytes? Probably because the original programmers needed to

Re: Raw hid gadget

2017-01-07 Thread Rogan Dawes
Hi Alan, Thanks for the response. I have not read hiddev.txt, so that explains the incorrect expectations. If I may ask, why is the value a 4-byte field? Is that just to round it to 8 bytes? The "English" version of the descriptor is as follows, from the original LUFA source:

Re: kernel parameter »usb-storage.quirks=....:....:p« leads to »end_request: critical target error...«

2017-01-07 Thread Alan Stern
On Sat, 7 Jan 2017, Jochen Barth wrote: > Dear reader, > > I'm using a Seagate Dockstar with Debian jessie kernel 3.16 and an > usb-to-pata bridge from prolific, > usb device id 067b:3507. You do realize that 3.16 is really quite old by now? > On every boot, the kernel is saying > »[

Re: Raw hid gadget

2017-01-07 Thread Alan Stern
On Sat, 7 Jan 2017, Rogan Dawes wrote: > Hi folks, > > I'm trying to port the USaBUSe project > (https://github.com/SensePost/USaBUSe) from an AVR microcontroller to > the Linux USB gadget stack. USaBUSe implements a combined keyboard and > mouse via a single HID endpoint, as well as a raw HID

Re: [PATCH v5 1/2] USB: add switch to turn off padding of resume time delays

2017-01-07 Thread Alan Stern
On Fri, 6 Jan 2017, Todd Brandt wrote: > Add a kernel parameter that replaces the USB_RESUME_TIMEOUT > and other hardcoded delay numbers with the USB spec minimums. > > The USB subsystem currently uses some padded values for USB spec timing > delays. This patch keeps the current values by

Raw hid gadget

2017-01-07 Thread Rogan Dawes
Hi folks, I'm trying to port the USaBUSe project (https://github.com/SensePost/USaBUSe) from an AVR microcontroller to the Linux USB gadget stack. USaBUSe implements a combined keyboard and mouse via a single HID endpoint, as well as a raw HID endpoint, which is used as a bi-directional comms

Re: [PATCH] usb: dwc2: fix panic for coherent memory allocation

2017-01-07 Thread Leo Yan
On Fri, Jan 06, 2017 at 01:36:11PM -0800, John Stultz wrote: > On Thu, Jan 5, 2017 at 6:50 PM, Leo Yan wrote: > > When use configfs to configure USB port as as ethernet gadget, the > > kernel has panic with below backtrace; it clearly indicates the > > coherent memory

Re: [PATCH] usb: dwc2: use u32 for DT binding parameters

2017-01-07 Thread Leo Yan
On Fri, Jan 06, 2017 at 07:30:28PM -0800, John Youn wrote: > On 1/6/2017 1:52 PM, John Stultz wrote: > > On Fri, Jan 6, 2017 at 4:45 AM, Leo Yan wrote: > >> Commit 05ee799f2021 ("usb: dwc2: Move gadget settings into core_params") > >> changes to type u16 for DT binding

[PATCH v1.1] ARM: multi_v7_defconfig: Enable power sequence for Odroid U3

2017-01-07 Thread Krzysztof Kozlowski
Odroid U3 needs a power sequence for lan9730, if it was enabled by bootloader. Also enable the USB3503 HSCI to USB2.0 driver (device is present on Odroid U3). Signed-off-by: Krzysztof Kozlowski --- Changes since v1 (v1 -> v1.1): 1. Enable also usb3503 driver. ---

Re: [PATCH v11 4/8] usb: core: add power sequence handling for USB devices

2017-01-07 Thread Krzysztof Kozlowski
On Thu, Jan 05, 2017 at 02:01:55PM +0800, Peter Chen wrote: > Some hard-wired USB devices need to do power sequence to let the > device work normally, the typical power sequence like: enable USB > PHY clock, toggle reset pin, etc. But current Linux USB driver > lacks of such code to do it, it may

Re: [PATCH v11 3/8] binding-doc: usb: usb-device: add optional properties for power sequence

2017-01-07 Thread Krzysztof Kozlowski
On Thu, Jan 05, 2017 at 02:01:54PM +0800, Peter Chen wrote: > Add optional properties for power sequence. > > Signed-off-by: Peter Chen > Acked-by: Rob Herring > --- > Documentation/devicetree/bindings/usb/usb-device.txt | 10 +- > 1 file changed, 9

Re: [PATCH v11 2/8] power: add power sequence library

2017-01-07 Thread Krzysztof Kozlowski
On Thu, Jan 05, 2017 at 02:01:53PM +0800, Peter Chen wrote: > We have an well-known problem that the device needs to do some power > sequence before it can be recognized by related host, the typical > example like hard-wired mmc devices and usb devices. > > This power sequence is hard to be

[PATCH 3/4] ARM: exynos_defconfig: Enable power sequence for Odroid U3

2017-01-07 Thread Krzysztof Kozlowski
Odroid U3 needs a power sequence for lan9730, if it was enabled by bootloader. Enable also GPIO_SYSFS which is useful for playing with GPIO during debug process. Signed-off-by: Krzysztof Kozlowski --- arch/arm/configs/exynos_defconfig | 2 ++ 1 file changed, 2 insertions(+)

Re: [PATCH v11 1/8] binding-doc: power: pwrseq-generic: add binding doc for generic power sequence library

2017-01-07 Thread Krzysztof Kozlowski
On Thu, Jan 05, 2017 at 02:01:52PM +0800, Peter Chen wrote: > Add binding doc for generic power sequence library. > > Signed-off-by: Peter Chen > Acked-by: Philipp Zabel > Acked-by: Rob Herring > --- >

[PATCH 2/4] ARM: dts: exynos: Fix LAN9730 on Odroid U3 after tftpboot

2017-01-07 Thread Krzysztof Kozlowski
The ethernet adapter LAN9730, after enabling in bootloader (e.g. for tftpboot) requires reset during boot. Otherwise it won't come up. The schematics of Odroid U3 are detailed enough but after grabbing knowledge also from other sources (like U-Boot) the overall design looks like: 1. LAN9730 is

[PATCH 0/4] ARM: exynos: Fix Odroid U3 USB/LAN when TFTP booting (power sequence)

2017-01-07 Thread Krzysztof Kozlowski
Hi, Thanks to Markus Reichl, I got an Odroid U3 to work with. Thanks to Peter Chen, we got a power sequence generic library which solves my long standing Odroid U3 problem - no LAN9730 if it was enabled by bootloader. My previous attempts for this can be found here [0]. This patchset is based

[PATCH 1/4] ARM: dts: exynos: Fix indentation of EHCI and OHCI ports

2017-01-07 Thread Krzysztof Kozlowski
Replace spaces with tabs in EHCI and OHCI ports indentation. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos4.dtsi | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/exynos4.dtsi

[PATCH 4/4] ARM: multi_v7_defconfig: Enable power sequence for Odroid U3

2017-01-07 Thread Krzysztof Kozlowski
Odroid U3 needs a power sequence for lan9730, if it was enabled by bootloader. Signed-off-by: Krzysztof Kozlowski --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig

[PATCH 1/2] usb: host: ehci-exynos: Decrese node refcount on exynos_ehci_get_phy() error paths

2017-01-07 Thread Krzysztof Kozlowski
Returning from for_each_available_child_of_node() loop requires cleaning up node refcount. Error paths lacked it so for example in case of deferred probe, the refcount of phy node was left increased. Fixes: 6d40500ac9b6 ("usb: ehci/ohci-exynos: Fix of_node_put() for child when getting PHYs")

[PATCH 2/2] usb: host: ohci-exynos: Decrese node refcount on exynos_ehci_get_phy() error paths

2017-01-07 Thread Krzysztof Kozlowski
Returning from for_each_available_child_of_node() loop requires cleaning up node refcount. Error paths lacked it so for example in case of deferred probe, the refcount of phy node was left increased. Fixes: 6d40500ac9b6 ("usb: ehci/ohci-exynos: Fix of_node_put() for child when getting PHYs")

[no subject]

2017-01-07 Thread Joe Bryant
Sup linux euroautotechinc.com/upgrade.php?forward=2c217epf3dcb Joe -- 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