[PATCH v8 0/3] Add a new Rockchip usb2 phy driver

2016-07-19 Thread Frank Wang
The newer SoCs (rk3366, rk3399) of Rock-chip 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. These series patches add phy-rockchip-inno-usb2.c and the corresponding dt-binding

[PATCH v8 1/3] Documentation: bindings: add DT documentation for Rockchip USB2PHY

2016-07-19 Thread Frank Wang
Signed-off-by: Frank Wang Acked-by: Rob Herring Reviewed-by: Heiko Stuebner --- Changes in v8: None Changes in v7: None Changes in v6: - Changed '_' to '-' for otg-id and otg-bvalid property. Changes in v5: - Added 'reg' property to identify the different phy-blocks. Changes in v4: - Use

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

2016-07-19 Thread Frank Wang
Signed-off-by: Frank Wang --- arch/arm64/boot/dts/rockchip/rk3399-evb.dts | 19 +++ arch/arm64/boot/dts/rockchip/rk3399.dtsi| 47 ++- 2 files changed, 65 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-evb.dts b/arch/arm64/bo

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

2016-07-19 Thread 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 Suggested-by: Heiko Stuebner Suggested-by: Guenter Roeck Suggested

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

2016-07-19 Thread Oliver Neukum
On Tue, 2016-07-19 at 08:40 +0200, Kristian Evensen wrote: > On Tue, Jul 19, 2016 at 8:20 AM, Oliver Neukum wrote: > >> I had a look at some other drivers, and I think we need to be very > >> careful about making setting a random MAC too generic. For example, we > >> might be unlucky and break the

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

2016-07-19 Thread Lars Melin
On 2016-07-19 13:40, Kristian Evensen wrote: I guess I can match on the VID/PID in usbnet, but won't it be cleaner to add a new bind() function (in cdc_ether) which matches the two PIDs and leave usbnet as is? Or am I misunderstanding how to add this functionality to usbnet? Matching on the u

Re: [PATCH 1/2] usb: typec: Add USB Power Delivery sink port support

2016-07-19 Thread Felipe Balbi
Hi, Bin Gao writes: > On Sat, Jul 16, 2016 at 08:49:53AM +0900, Greg Kroah-Hartman wrote: >> On Fri, Jul 15, 2016 at 03:41:10PM -0700, Bin Gao wrote: >> > On Fri, Jul 15, 2016 at 02:21:48PM +0300, Felipe Balbi wrote: >> > > Greg Kroah-Hartman writes: >> > > > On Fri, Jul 15, 2016 at 01:38:12PM

Re: [PATCH 1/2] usb: typec: Add USB Power Delivery sink port support

2016-07-19 Thread Felipe Balbi
Hi, Bin Gao writes: > On Mon, Jul 18, 2016 at 10:07:24AM +0300, Felipe Balbi wrote: >> >> Hi, >> >> Bin Gao writes: >> >> > +int pd_sink_queue_msg(struct pd_sink_msg *msg) >> >> > +{ >> >> > + unsigned long flags; >> >> > + struct pd_sink_port *port; >> >> > + >> >> > + if (

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

2016-07-19 Thread Kristian Evensen
Hi Lars, On Tue, Jul 19, 2016 at 10:30 AM, Lars Melin wrote: > On 2016-07-19 13:40, Kristian Evensen wrote: > >> I guess I can match on the VID/PID in usbnet, but won't it be cleaner >> to add a new bind() function (in cdc_ether) which matches the two PIDs >> and leave usbnet as is? Or am I misun

[PATCH] usb: ehci-platform: switch over to shared reset

2016-07-19 Thread Masahiro Yamada
The recent update in the reset subsystem requires all reset consumers to be explicit when requesting reset lines. For detail, see the log of commit 3c35f6edc09b ("reset: Reorder inline reset_control_get*() wrappers"). The devm_reset_control_get_optional() is deprecated, and falls into the _exclus

[PATCH] usb: ohci-platform: switch over to shared reset

2016-07-19 Thread Masahiro Yamada
The recent update in the reset subsystem requires all reset consumers to be explicit when requesting reset lines. For detail, see the log of commit 3c35f6edc09b ("reset: Reorder inline reset_control_get*() wrappers"). The devm_reset_control_get_optional() is deprecated, and falls into the _exclus

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

2016-07-19 Thread Kristian Evensen
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 of device. So far, on Linux, the devices have been seen as RNDIS or CDC

[PATCH v3 0/2] usb: dwc2: fix the usb host for host port at RK3288

2016-07-19 Thread Randy Li
Hi, the implementation of Doug is thought quick but the Herring want to use this problem in autosuspend. Unfortunately, It is a fault in hardware, onyl would happened at Rockchip RK3288 now. So I suggest to accept this idea. It may be better if dropped the dts, as it is an issue only for RK3288,

[PATCH 1/2] usb: dwc2: optionally assert phy "full reset" when waking up

2016-07-19 Thread Randy Li
From: Doug Anderson On the rk3288 USB host-only port (the one that's not the OTG-enabled port) the PHY can get into a bad state when a wakeup is asserted (not just a wakeup from full system suspend but also a wakeup from autosuspend). The problem is caused by a design fault in IC, Rockchip have c

[PATCH 2/2] ARM: dts: rockchip: Point rk3288 dwc2 usb at the full PHY reset

2016-07-19 Thread Randy Li
From: Doug Anderson The "host1" port (AKA the dwc2 port that isn't the OTG port) on rk3288 has a hardware errata that causes everything to get confused when we get a remote wakeup. We'll use the reset that's in the CRU to reset the port when it's in a bad state. Note that we add the reset to bo

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

2016-07-19 Thread Kristian Evensen
On Tue, Jul 19, 2016 at 2:33 PM, Oliver Neukum wrote: > On Tue, 2016-07-19 at 13:49 +0200, Kristian Evensen wrote: >> @@ -428,10 +434,47 @@ int usbnet_cdc_bind(struct usbnet *dev, struct >> usb_interface *intf) >> return status; >> } >> >> + if (dev->net->dev_addr[0]

[PATCH] scsi: introduce a quirk for false cache reporting

2016-07-19 Thread Oliver Neukum
Some SATA to USB bridges fail to cooperate with some drives resulting in no cache being present being reported to the host. That causes the host to skip sending a command to synchronize caches. That causes data loss when the drive is powered down. Signed-off-by: Oliver Neukum --- Documentation/k

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

2016-07-19 Thread Kristian Evensen
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 of device. So far, on Linux, the devices have been seen as RNDIS or CDC

RE: [PATCH 2/4] doc: usb: ci-hdrc-usb2: add property over-current-polarity

2016-07-19 Thread Jun Li
Hi, > -Original Message- > From: Peter Chen [mailto:hzpeterc...@gmail.com] > Sent: Tuesday, July 19, 2016 9:47 AM > To: Joshua Clayton > Cc: Jun Li ; Peter Chen ; > robh...@kernel.org; shawn...@kernel.org; devicet...@vger.kernel.org; > linux-usb@vger.kernel.org; linux-arm-ker...@lists.infr

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

2016-07-19 Thread matwey
Hello, I have Philips SPC 900 camera (0471:0329) connected to my AM335x based BeagleBoneBlack SBC. I am sure that both of them are fine and work properly. I am running Linux 4.6.4 (my kernel config is available at https://clck.ru/A2kQs ) and I've just discovered, that there is an issue with fra

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

2016-07-19 Thread Bin Liu
Hi, On Tue, Jul 19, 2016 at 11:21:17PM +0300, mat...@sai.msu.ru wrote: > Hello, > > I have Philips SPC 900 camera (0471:0329) connected to my AM335x based > BeagleBoneBlack SBC. > I am sure that both of them are fine and work properly. > I am running Linux 4.6.4 (my kernel config is available at

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

2016-07-19 Thread Matwey V. Kornilov
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 have Philips SPC 900 camera (0471:0329) connected to my AM335x based >> BeagleBoneBlack SBC. >> I am sure that both of them are fine and work properly. >> I am runnin

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

2016-07-19 Thread 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 have Philips SPC 900 camera (0471:0329) connected to my AM335x based > >> Beagl

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

2016-07-19 Thread Rob Herring
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 port and a proper LED telling user a device is connected. > > Right now

Re: [PATCH 1/4] doc: usb: usbmisc-imx: add imx7d compatible string

2016-07-19 Thread Rob Herring
On Mon, Jul 18, 2016 at 07:15:44PM +0800, Li Jun wrote: > Add compatible string for imx7d-usbmisc. > > Signed-off-by: Li Jun > --- > Documentation/devicetree/bindings/usb/usbmisc-imx.txt | 1 + > 1 file changed, 1 insertion(+) Acked-by: Rob Herring -- To unsubscribe from this list: send the li

Re: [PATCH 2/4] doc: usb: ci-hdrc-usb2: add property over-current-polarity

2016-07-19 Thread Rob Herring
On Mon, Jul 18, 2016 at 07:15:45PM +0800, Li Jun wrote: > Adding over-current-polarity to indicate the over current flag > is low active or high active. > > Signed-off-by: Li Jun > --- > Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt | 2 ++ > 1 file changed, 2 insertions(+) > > diff --

Re: [PATCH 1/2] usb: dwc2: optionally assert phy "full reset" when waking up

2016-07-19 Thread Rob Herring
On Tue, Jul 19, 2016 at 08:05:33PM +0800, Randy Li wrote: > From: Doug Anderson > > On the rk3288 USB host-only port (the one that's not the OTG-enabled > port) the PHY can get into a bad state when a wakeup is asserted (not > just a wakeup from full system suspend but also a wakeup from > autosu

Re: [PATCH 1/2] usb: dwc2: optionally assert phy "full reset" when waking up

2016-07-19 Thread Randy Li
Thank you for reviewing, if you agree with my opinion, I would implement a new version as soon as possible. On 07/20/2016 09:36 AM, Rob Herring wrote: On Tue, Jul 19, 2016 at 08:05:33PM +0800, Randy Li wrote: From: Doug Anderson On the rk3288 USB host-only port (the one that's not the OTG-

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

2016-07-19 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 have Philips SPC 900 camera (047