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

2017-01-04 Thread Peter Chen
Add binding doc for generic power sequence library. Signed-off-by: Peter Chen Acked-by: Philipp Zabel Acked-by: Rob Herring --- .../bindings/power/pwrseq/pwrseq-generic.txt | 48 ++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/binding

[PATCH v11 0/8] power: add power sequence library

2017-01-04 Thread Peter Chen
Hi all, This is a follow-up for my last power sequence framework patch set [1]. According to Rob Herring and Ulf Hansson's comments[2]. The kinds of power sequence instances will be added at postcore_initcall, the match criteria is compatible string first, if the compatible string is not matched b

[PATCH v11 7/8] ARM: dts: imx6qdl-udoo.dtsi: fix onboard USB HUB property

2017-01-04 Thread Peter Chen
The current dts describes USB HUB's property at USB controller's entry, it is improper. The USB HUB should be the child node under USB controller, and power sequence properties are under it. Besides, using gpio pinctrl setting for USB2415's reset pin. Signed-off-by: Peter Chen Signed-off-by: Josh

[PATCH v11 6/8] ARM: dts: imx6qdl: Enable usb node children with

2017-01-04 Thread Peter Chen
From: Joshua Clayton Give usb nodes #address and #size attributes, so that a child node representing a permanently connected device such as an onboard hub may be addressed with a attribute Signed-off-by: Joshua Clayton Signed-off-by: Peter Chen --- arch/arm/boot/dts/imx6qdl.dtsi | 6 ++

[PATCH v11 5/8] usb: chipidea: let chipidea core device of_node equal's glue layer device of_node

2017-01-04 Thread Peter Chen
From: Peter Chen At device tree, we have no device node for chipidea core, the glue layer's node is the parent node for host and udc device. But in related driver, the parent device is chipidea core. So, in order to let the common driver get parent's node, we let the core's device node equals glu

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

2017-01-04 Thread Peter Chen
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 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/usb-device.txt b/Documentatio

[PATCH v11 8/8] ARM: dts: imx6q-evi: Fix onboard hub reset line

2017-01-04 Thread Peter Chen
From: Joshua Clayton Previously the onboard hub was made to work by treating its reset gpio as a regulator enable. Get rid of that kludge now that pwseq has added reset gpio support Move pin muxing the hub reset pin into the usbh1 group Signed-off-by: Joshua Clayton Signed-off-by: Peter Chen -

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

2017-01-04 Thread Peter Chen
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 cause some hard-wired USB devices works abnormal or can't be recogniz

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

2017-01-04 Thread Peter Chen
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 described at device tree and handled by related host driver, so we have crea

RE: [RFC PATCH] usb: dwc3: add support for OTG driver compilation

2017-01-04 Thread Manish Narani
Hi Felipe, > From: Felipe Balbi [mailto:ba...@kernel.org] > Sent: Wednesday, January 04, 2017 7:01 PM > Hi, > > Manish Narani writes: > > This patch adds support for OTG driver compilation and object file > > creation > > > > Signed-off-by: Manish Narani > > --- > > drivers/usb/dwc3/Makefile |

Re: [PATCH] usb: dwc3: gadget: Avoid race between dwc3 interrupt handler and irq thread handler

2017-01-04 Thread Baolin Wang
On 3 January 2017 at 20:33, Felipe Balbi wrote: > > Hi, > > Baolin Wang writes: >> On 28 December 2016 at 20:30, Janusz Dziedzic >> wrote: >>> 2016-12-27 13:16 GMT+01:00 Baolin Wang : Hi, On 27 December 2016 at 19:11, Felipe Balbi wrote: > > Hi, > > Baolin Wang

Re: [PATCH 4/4] usb: xhci: remove unnecessary return in xhci_pci_setup()

2017-01-04 Thread Lu Baolu
Hi, On 01/05/2017 02:12 AM, Andy Shevchenko wrote: > On Wed, Jan 4, 2017 at 3:51 AM, Lu Baolu wrote: >> Remove the unnecessary return line in xhci_pci_setup(). >> >> Signed-off-by: Lu Baolu >> --- >> drivers/usb/host/xhci-pci.c | 2 -- >> 1 file changed, 2 deletions(-) >> >> diff --git a/driver

Re: [PATCH 1/1] net: usb: asix_devices: add .reset_resume for USB PM

2017-01-04 Thread David Miller
From: Peter Chen Date: Tue, 3 Jan 2017 17:22:20 +0800 > The USB core may call reset_resume when it fails to resume asix device. > And USB core can recovery this abnormal resume at low level driver, > the same .resume at asix driver can work too. Add .reset_resume can > avoid disconnecting after b

Re: [PATCH 4/4] usb: xhci: remove unnecessary return in xhci_pci_setup()

2017-01-04 Thread Andy Shevchenko
On Wed, Jan 4, 2017 at 3:51 AM, Lu Baolu wrote: > Remove the unnecessary return line in xhci_pci_setup(). > > Signed-off-by: Lu Baolu > --- > drivers/usb/host/xhci-pci.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c > index e9

Re: [PATCH] USB: ohci-omap: defer probe if PHY is missing

2017-01-04 Thread Tony Lindgren
* Aaro Koskinen [170103 12:13]: > On Tue, Jan 03, 2017 at 08:05:04PM +0100, Greg Kroah-Hartman wrote: > > I'm not objecting to this patch, just really curious why no one else has > > ever hit it. > > Maybe I'm the only user... I still have 770 in my test rack :) I don't boot it much though as it

Re: [PATCH v2] tools: usb: usbip: Update README

2017-01-04 Thread Shuah Khan
On 12/20/2016 12:53 PM, Krzysztof Opasiak wrote: > Update README file: > - remove outdated parts > - clarify terminology and general structure > - add some description of vUDC > > Signed-off-by: Krzysztof Opasiak Thanks. Acked-by: Shuah Khan -- Shuah > --- > Changes since v1: > - Add server

[PATCH 2/2] dmaengine: cppi41: Ignore EINPROGRESS for PM runtime in interrupt handler

2017-01-04 Thread Alexandre Bailon
We can occasionally get -EINPROGRESS for pm_runtime_get. This is happening when an interrupt is fired before PM runtime had time to update the PM state to RESUMED. In that case, don't print any error. Signed-off-by: Alexandre Bailon --- drivers/dma/cppi41.c | 2 +- 1 file changed, 1 insertion(+)

[PATCH 0/2] dmaengine: cppi41: PM runtime fixes

2017-01-04 Thread Alexandre Bailon
I have tried to play music on usb headset on BeagleBone Black but it doesn't work. This series intend to fix them. [ 12.476441] usb 1-1: new full-speed USB device number 2 using musb-hdrc [ 12.896297] usb 1-1: New USB device found, idVendor=047f, idProduct=c035 [ 12.903413] usb 1-1: New USB

[PATCH 1/2] dmaengine: cppi41: Fix list not empty warning on runtime suspend

2017-01-04 Thread Alexandre Bailon
Sometime, a transfer may not be queued due to a race between runtime pm and cppi41_dma_issue_pending(). Sometime, cppi41_runtime_resume() may be interrupted right before to update device PM state to RESUMED. When it happens, if a new dma transfer is issued, because the device is not in active state

Re: [RFC PATCH] usb: dwc3: gadget: add support for OTG in gadget framework

2017-01-04 Thread Felipe Balbi
Hi, Manish Narani writes: > This patch adds support for OTG in DWC3 gadget framework. This > also adds support for HNP polling by host while in OTG mode. > > Modifications in couple of functions to make it in sync with > OTG driver while keeping its original functionality intact. > > Signed-off-

Re: [RFC PATCH] arch: arm64: dts: add USB OTG interrupts support in ZynqMP device tree

2017-01-04 Thread Felipe Balbi
Hi, Manish Narani writes: > This patch adds OTG interrupt support in device tree. It will add > an extra interrupt line number dedicated to OTG events. This will > enable OTG interrupts to serve in DWC3 OTG driver. > > Signed-off-by: Manish Narani > --- > arch/arm64/boot/dts/xilinx/zynqmp.dtsi

Re: [RFC PATCH] usb: dwc3: host: add support for OTG in DWC3 host driver

2017-01-04 Thread Felipe Balbi
Hi, Manish Narani writes: > This patch adds support for OTG host mode initialization in DWC3 > host driver. Before the host initialization sequence begins. The > driver has to make sure the no OTG peripheral mode is enabled. > > Signed-off-by: Manish Narani > --- > drivers/usb/dwc3/host.c | 14

Re: [RFC PATCH] usb: dwc3: add support for OTG driver compilation

2017-01-04 Thread Felipe Balbi
Hi, Manish Narani writes: > This patch adds support for OTG driver compilation and object > file creation > > Signed-off-by: Manish Narani > --- > drivers/usb/dwc3/Makefile | 4 > 1 file changed, 4 insertions(+) > > diff --git a/drivers/usb/dwc3/Makefile b/drivers/usb/dwc3/Makefile > inde

[RFC PATCH] usb: dwc3: otg: Adding OTG driver for DWC3 controller

2017-01-04 Thread Manish Narani
This driver will add support for USB 2.0 OTG and USB 3.0 DRD in DWC3 framework. This OTG driver supports host/peripheral modes on run time. This driver will enable HNP and SRP support in High-Speed mode. Signed-off-by: Manish Narani --- drivers/usb/dwc3/otg.c | 2064 +

[RFC PATCH] usb: host: xhci: plat: add support for otg_set_host() call

2017-01-04 Thread Manish Narani
This patch will add support for OTG host initialization. This will help OTG drivers to populate their host subsystem. Signed-off-by: Manish Narani --- drivers/usb/host/xhci-plat.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/drivers/usb/host/xhci-p

[RFC PATCH] usb: dwc3: gadget: add support for OTG in gadget framework

2017-01-04 Thread Manish Narani
This patch adds support for OTG in DWC3 gadget framework. This also adds support for HNP polling by host while in OTG mode. Modifications in couple of functions to make it in sync with OTG driver while keeping its original functionality intact. Signed-off-by: Manish Narani --- drivers/usb/dwc3/

[RFC PATCH] usb: dwc3: host: add support for OTG in DWC3 host driver

2017-01-04 Thread Manish Narani
This patch adds support for OTG host mode initialization in DWC3 host driver. Before the host initialization sequence begins. The driver has to make sure the no OTG peripheral mode is enabled. Signed-off-by: Manish Narani --- drivers/usb/dwc3/host.c | 14 ++ 1 file changed, 14 insert

[RFC PATCH] usb: dwc3: add support for OTG driver compilation

2017-01-04 Thread Manish Narani
This patch adds support for OTG driver compilation and object file creation Signed-off-by: Manish Narani --- drivers/usb/dwc3/Makefile | 4 1 file changed, 4 insertions(+) diff --git a/drivers/usb/dwc3/Makefile b/drivers/usb/dwc3/Makefile index ffca340..2d269ad 100644 --- a/drivers/usb/dwc

[RFC PATCH] arch: arm64: dts: add USB OTG interrupts support in ZynqMP device tree

2017-01-04 Thread Manish Narani
This patch adds OTG interrupt support in device tree. It will add an extra interrupt line number dedicated to OTG events. This will enable OTG interrupts to serve in DWC3 OTG driver. Signed-off-by: Manish Narani --- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 2 +- 1 file changed, 1 insertion(+), 1

[RFC PATCH] usb: dwc3: core: add OTG support function calls and modifications

2017-01-04 Thread Manish Narani
This patch adds function call to initialize OTG driver. This patch also adds support for OTG device structure in DWC3 device. Modifications to event buffer related functions which are called from OTG driver upon requirement. Signed-off-by: Manish Narani --- drivers/usb/dwc3/core.c | 17

Re: Strange behaviour of U2F usb key

2017-01-04 Thread B&A Consultants
Hello Greg, > Does this happen on all systems you try these devices in, or only on one > type of system? I did test only 2 computers, problem is on both of them. I will perform some more tests on several other computers (laptops and desktop). > And can you try a more "modern" kernel version? Lo

Re: [PATCH v13 05/10] usbip: exporting devices: modifications to daemon

2017-01-04 Thread Krzysztof Opasiak
On 01/04/2017 12:48 AM, fx IWATA NOBUO wrote: > Dear Krzysztof, > > I posted new version and it's improved thanks to your review. I've seen it. It's on my TODO list. I'll get to this in next week (hopefully in the beginning of the week). Best regards, -- Krzysztof Opasiak Samsung R&D Institut