Re: pwc over musb: 100% frame drop (lost) on high resolution stream

2016-07-20 Thread Matwey V. Kornilov
2016-07-20 18:06 GMT+03:00 Bin Liu : > Hi, > > On Wed, Jul 20, 2016 at 05:44:56PM +0300, Matwey V. Kornilov wrote: >> 2016-07-20 17:13 GMT+03:00 Bin Liu : >> > Hi, >> > >> > On Wed, Jul 20, 2016 at 09:09:42AM +0300, Matwey V. Kornilov wrote: >> >> 2016-07-20 0:34

Re: [PATCH v2 2/3] doc: usb: ci-hdrc-usb2: add property over-current-active-high

2016-07-20 Thread Rob Herring
On Wed, Jul 20, 2016 at 04:02:41PM +0800, Li Jun wrote: > Adding over-current-active-high to indicate the over current flag > is high active as typically we use active low for over current > polarity. > > Signed-off-by: Li Jun > --- >

Re: Fwd: USB HID problem

2016-07-20 Thread Bruce Korb
Hi Alan, On Mon, Jul 18, 2016 at 6:09 PM, Alan Stern wrote: >> Given the repeatability, maybe I can dig into where stuff is going awry. >> Maybe I can trace down how the bogus speed information is derived. > > If my guess was correct, there is no bogus speed

Re: Fwd: USB HID problem

2016-07-20 Thread Bruce Korb
Hi Alan, I swapped the driver, so usb_device_supports_lpm() always returns "0". No change. Bandwidth for a Class 10 SSD, but not for a mouse or keyboard. There is a new message that I've not seen before, hub_port_status failed (err = -71) === EPROTO $ lsusb -t /: Bus 02.Port 1: Dev 1,

Re: [PATCH v8 3/3] arm64: dts: rockchip: add usb2-phy support for rk3399

2016-07-20 Thread Doug Anderson
Hi, On Tue, Jul 19, 2016 at 12:28 AM, Frank Wang wrote: You need a patch description here, even for simple patches. All you have now is a subject. > Signed-off-by: Frank Wang > --- > arch/arm64/boot/dts/rockchip/rk3399-evb.dts | 19

Re: [PATCH v8 3/3] arm64: dts: rockchip: add usb2-phy support for rk3399

2016-07-20 Thread Heiko Stübner
Am Mittwoch, 20. Juli 2016, 14:33:25 schrieb Doug Anderson: > > + #address-cells = <1>; > > + #size-cells = <1>; > > + > > + u2phy0: usb2-phy@e450 { > > + compatible = "rockchip,rk3399-usb2phy"; > > + reg =

Re: [PATCH net-next v3] cdc_ether: Improve ZTE MF823/831/910 handling

2016-07-20 Thread David Miller
From: Kristian Evensen Date: Tue, 19 Jul 2016 16:54:11 +0200 > The firmware in several ZTE devices (at least the MF823/831/910 > modems/mifis) use OS fingerprinting to determine which type of device to > export. In addition, these devices export a REST API which can

Re: [PATCH v8 3/3] arm64: dts: rockchip: add usb2-phy support for rk3399

2016-07-20 Thread Frank Wang
Hi Doug, On 2016/7/21 5:33, Doug Anderson wrote: Hi, On Tue, Jul 19, 2016 at 12:28 AM, Frank Wang wrote: You need a patch description here, even for simple patches. All you have now is a subject. OK, I will describe it next version. Signed-off-by: Frank Wang

Re: Fwd: USB HID problem

2016-07-20 Thread Alan Stern
On Wed, 20 Jul 2016, Bruce Korb wrote: > Hi Alan, > > I swapped the driver, so usb_device_supports_lpm() always returns "0". > No change. Bandwidth for a Class 10 SSD, but not for a mouse or FYI, a Class 10 SSD does not have any bandwidth requirement. If very little bandwidth is available,

RE: Regarding the patch "let USB device know device node"

2016-07-20 Thread Peter Chen
>Hey Hi Peter, > >I hope you are doing good. > >We probably have similar usecase of yours as far as "let USB device know device >node" >is concerned. >we have a device, where HUB is connected to one of USB port, and due to lack of >control path from DT, it is always hard to maintain (manage) >2

[PATCH v3 4/6] usb: core: add power sequence handling for USB devices

2016-07-20 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

[PATCH v3 0/6] power: add power sequence library

2016-07-20 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], I use a generic power sequence library for parsing the power sequence elements on DT, and implement generic power sequence on library. The host driver can

[PATCH 1/1] usb: xhci: Fix panic if disconnect

2016-07-20 Thread Jim Lin
After a device is disconnected, xhci_stop_device() will be invoked in xhci_bus_suspend(). Also the "disconnect" IRQ will have ISR to invoke xhci_free_virt_device() in this sequence. xhci_irq -> xhci_handle_event -> handle_cmd_completion -> xhci_handle_cmd_disable_slot -> xhci_free_virt_device If

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

2016-07-20 Thread Peter Chen
Add optional properties for power sequence. Signed-off-by: Peter Chen --- 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

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

2016-07-20 Thread Peter Chen
Add binding doc for generic power sequence library. Signed-off-by: Peter Chen Acked-by: Philipp Zabel --- .../bindings/power/pwrseq/pwrseq-generic.txt | 48 ++ 1 file changed, 48 insertions(+) create mode 100644

[PATCH v3 6/6] ARM: dts: imx6qdl-udoo.dtsi: fix onboard USB HUB property

2016-07-20 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. Signed-off-by: Peter Chen --- arch/arm/boot/dts/imx6qdl-udoo.dtsi | 26

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

2016-07-20 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

[PATCH v3 2/6] power: add power sequence library

2016-07-20 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

Re: pwc over musb: 100% frame drop (lost) on high resolution stream

2016-07-20 Thread Matwey V. Kornilov
2016-07-20 17:13 GMT+03:00 Bin Liu : > Hi, > > On Wed, Jul 20, 2016 at 09:09:42AM +0300, Matwey V. Kornilov wrote: >> 2016-07-20 0:34 GMT+03:00 Bin Liu : >> > Hi, >> > >> > On Wed, Jul 20, 2016 at 12:25:44AM +0300, Matwey V. Kornilov wrote: >> >> 2016-07-19 23:56

Re: pwc over musb: 100% frame drop (lost) on high resolution stream

2016-07-20 Thread Bin Liu
Hi, On Wed, Jul 20, 2016 at 09:09:42AM +0300, Matwey V. Kornilov wrote: > 2016-07-20 0:34 GMT+03:00 Bin Liu : > > Hi, > > > > On Wed, Jul 20, 2016 at 12:25:44AM +0300, Matwey V. Kornilov wrote: > >> 2016-07-19 23:56 GMT+03:00 Bin Liu : > >> > Hi, > >> > > >> > On Tue,

[PATCH v2 3/3] usb: chipidea: imx: set over current polarity per dts setting

2016-07-20 Thread Li Jun
imx usb over current polarity is low active by default, with over-current-active-high property added, user can config it to be high active. Meanwhile keep this setting unchanged for existing platforms so new platform must set the right value for active low by its usbmisc init function if over

[PATCH 1/1] usb: xhci: Fix panic if disconnect

2016-07-20 Thread Jim Lin
After a device is disconnected, xhci_stop_device() will be invoked in xhci_bus_suspend(). Also the "disconnect" IRQ will have ISR to invoke xhci_free_virt_device() in this sequence. xhci_irq -> xhci_handle_event -> handle_cmd_completion -> xhci_handle_cmd_disable_slot -> xhci_free_virt_device If

Re: [PATCH V2] leds: trigger: Introduce an USB port trigger

2016-07-20 Thread Rafał Miłecki
On 20 July 2016 at 03:02, Rob Herring wrote: > On Fri, Jul 15, 2016 at 11:10:45PM +0200, Rafał Miłecki wrote: >> This commit adds a new trigger that can turn on LED when USB device gets >> connected to the USB port. This can be useful for various home routers >> that have USB

Re: [PATCH V2] leds: trigger: Introduce an USB port trigger

2016-07-20 Thread Pavel Machek
On Mon 2016-07-18 08:55:52, Rafał Miłecki wrote: > On 18 July 2016 at 07:53, Peter Chen wrote: > > On Mon, Jul 18, 2016 at 07:57:34AM +0200, Rafał Miłecki wrote: > >> On 18 July 2016 at 07:40, Peter Chen wrote: > >> > On Mon, Jul 18, 2016 at

Re: pwc over musb: 100% frame drop (lost) on high resolution stream

2016-07-20 Thread Matwey V. Kornilov
2016-07-20 9:09 GMT+03:00 Matwey V. Kornilov : > 2016-07-20 0:34 GMT+03:00 Bin Liu : >> Hi, >> >> On Wed, Jul 20, 2016 at 12:25:44AM +0300, Matwey V. Kornilov wrote: >>> 2016-07-19 23:56 GMT+03:00 Bin Liu : >>> > Hi, >>> > >>> > On Tue, Jul 19, 2016

[PATCH v2 2/3] doc: usb: ci-hdrc-usb2: add property over-current-active-high

2016-07-20 Thread Li Jun
Adding over-current-active-high to indicate the over current flag is high active as typically we use active low for over current polarity. Signed-off-by: Li Jun --- Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v2 1/3] doc: usb: usbmisc-imx: add imx7d compatible string

2016-07-20 Thread Li Jun
Add compatible string for imx7d-usbmisc. Acked-by: Rob Herring Signed-off-by: Li Jun --- Documentation/devicetree/bindings/usb/usbmisc-imx.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/usbmisc-imx.txt

Re: pwc over musb: 100% frame drop (lost) on high resolution stream

2016-07-20 Thread Matwey V. Kornilov
2016-07-20 0:34 GMT+03:00 Bin Liu : > Hi, > > On Wed, Jul 20, 2016 at 12:25:44AM +0300, Matwey V. Kornilov wrote: >> 2016-07-19 23:56 GMT+03:00 Bin Liu : >> > Hi, >> > >> > On Tue, Jul 19, 2016 at 11:21:17PM +0300, mat...@sai.msu.ru wrote: >> >> Hello, >> >> >> >> I

Re: [PATCH net-next v3] cdc_ether: Improve ZTE MF823/831/910 handling

2016-07-20 Thread Oliver Neukum
On Tue, 2016-07-19 at 16:54 +0200, Kristian Evensen wrote: > The firmware in several ZTE devices (at least the MF823/831/910 > modems/mifis) use OS fingerprinting to determine which type of device > to > export. In addition, these devices export a REST API which can be used > to > control the type

Re: [PATCH 1/1] usb: xhci: Fix panic if disconnect

2016-07-20 Thread Felipe Balbi
Hi Jim, Jim Lin writes: > After a device is disconnected, xhci_stop_device() will be invoked > in xhci_bus_suspend(). > Also the "disconnect" IRQ will have ISR to invoke > xhci_free_virt_device() in this sequence. > xhci_irq -> xhci_handle_event -> handle_cmd_completion -> >

Re: [PATCH V2] leds: trigger: Introduce an USB port trigger

2016-07-20 Thread Pavel Machek
Hi! > > @@ -0,0 +1,206 @@ > > +/* > > + * USB port LED trigger > > + * > > + * Copyright (C) 2016 Rafał Miłecki > > + * > > + * This program is free software; you can redistribute it and/or modify > > + * it under the terms of the GNU General Public License as published

Re: [PATCH v8 2/3] phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy

2016-07-20 Thread Heiko Stübner
Am Dienstag, 19. Juli 2016, 15:27:40 schrieb Frank Wang: > The newer SoCs (rk3366, rk3399) take a different usb-phy IP block > than rk3288 and before, and most of phy-related registers are also > different from the past, so a new phy driver is required necessarily. > > Signed-off-by: Frank Wang

Re: pwc over musb: 100% frame drop (lost) on high resolution stream

2016-07-20 Thread Bin Liu
Hi, On Wed, Jul 20, 2016 at 05:44:56PM +0300, Matwey V. Kornilov wrote: > 2016-07-20 17:13 GMT+03:00 Bin Liu : > > Hi, > > > > On Wed, Jul 20, 2016 at 09:09:42AM +0300, Matwey V. Kornilov wrote: > >> 2016-07-20 0:34 GMT+03:00 Bin Liu : > >> > Hi, > >> > > >> > On Wed,