Re: [RFCv3 usb-next 2/3] usb: host: add a generic platform USB roothub driver

2017-08-17 Thread Chunfeng Yun
On Tue, 2017-08-15 at 00:45 +0200, Martin Blumenstingl wrote: > Many SoC platforms have separate devices for the USB PHY which are > registered through the generic PHY framework. These PHYs have to be > enabled to make the USB controller actually work. They also have to be > disabled again on

[PATCH] usb: xhci: Renesas uPD720202 needs short TX quirk

2017-08-17 Thread Kai-Heng Feng
When plugging Logitech C920 webcam, warning messages filled up dmesg: [77117.655018] xhci_hcd :0c:00.0: WARN Successful completion on short TX: needs XHCI_TRUST_TX_LENGTH quirk? [77117.659018] xhci_hcd :0c:00.0: WARN Successful completion on short TX: needs XHCI_TRUST_TX_LENGTH quirk?

Re: [PATCH] USB: serial: ti_usb_3410_5052: Port uart_mode from io_ti.

2017-08-17 Thread Stuart Longland
Hi all, On 18/08/17 12:56, Stuart Longland wrote: > This introduces the `uart_mode` sysfs attribute as seen in the `io_ti` > USB serial driver, allowing this USB serial interface to be switched > between RS-232, 2-wire RS-485 and 4-wire RS-485. > > /sys/class/tty/ttyUSB${num}/device/uart takes a

[PATCH] USB: serial: ti_usb_3410_5052: Port uart_mode from io_ti.

2017-08-17 Thread Stuart Longland
This introduces the `uart_mode` sysfs attribute as seen in the `io_ti` USB serial driver, allowing this USB serial interface to be switched between RS-232, 2-wire RS-485 and 4-wire RS-485. /sys/class/tty/ttyUSB${num}/device/uart takes a single integer: 0: RS-232 mode (default for

Re: [PATCH v2 2/2] dt-bindings: usb: keystone-usb: Update bindings pm and clocks properties

2017-08-17 Thread Rob Herring
On Wed, Aug 16, 2017 at 04:54:08PM -0500, Franklin S Cooper Jr wrote: > Update various properties to properly indicate their requirement depending > on the SoC. > > Signed-off-by: Franklin S Cooper Jr > --- > Version 2: > Clarify clock requirements in binding document > >

Re: [PATCH v5 3/3] power: wm831x_power: Support USB charger current limit management

2017-08-17 Thread Rob Herring
On Tue, Aug 15, 2017 at 07:07:55PM +0800, Baolin Wang wrote: > Integrate with the newly added USB charger interface to limit the current > we draw from the USB input based on the input device configuration > identified by the USB stack, allowing us to charge more quickly from high > current inputs

Re: [PATCH] usb: dwc3: of-simple: remove include of clk-provider.h

2017-08-17 Thread Stephen Boyd
On 08/13, Shawn Guo wrote: > From: Shawn Guo > > The header clk-provider.h is there for clock drivers (providers) to > include, not client drivers (consumers). That said, > of_clk_get_parent_count() is a helper function for clock providers, not > a clk API for consumers. >

Re: This is probably crazy

2017-08-17 Thread Alan Stern
On Thu, 17 Aug 2017, Steven Timms wrote: > I've just re-done them just in case it was wrong the first time. I wasn't > sure if 'control' was fresh data as the clear command didn't seem to do > anything. Plus the file size seems the same even on the second attempt (I'm > not knowledgeable enough

Re: uvc-gadget for UVC testing doesn't seem to work with vivid

2017-08-17 Thread Rail Shafigulin
On Wed, Aug 16, 2017 at 12:03 AM, Felipe Balbi wrote: > > Hi, > > Rail Shafigulin writes: >>> Rail Shafigulin writes: Let me apologize for emailing directly to the list as I'm not one of the developers and just

[PATCH 3/3] usb: dwc2: Error out of dwc2_hsotg_ep_disable() if we're in host mode

2017-08-17 Thread John Stultz
We've found that while in host mode, using Android, if one runs the command: stop adbd The existing usb devices being utilized in host mode are disconnected. This is most visible with usb networking devices. This seems to be due to adbd closing the file: /dev/usb-ffs/adb/ep0 Which calls

[PATCH 2/3] usb: dwc2: Fix UDC state tracking

2017-08-17 Thread John Stultz
It has been noticed that the dwc2 udc state reporting doesn't seem to work (at least on HiKey boards). Where after the initial setup, the sysfs /sys/class/udc/f72c.usb/state file would report "configured" no matter the state of the OTG port. This patch adds a call so that we report to the UDC

[PATCH 1/3] usb: dwc2: Improve gadget state disconnection handling

2017-08-17 Thread John Stultz
In the earlier commit dad3f793f20f ("usb: dwc2: Make sure we disconnect the gadget state"), I was trying to fix up the fact that we somehow weren't disconnecting the gadget state, so that when the OTG port was plugged in the second time we would get warnings about the state tracking being wrong.

[PATCH] USB: Gadget core: fix inconsistency in the interface tousb_add_gadget_udc_release()

2017-08-17 Thread Alan Stern
The usb_add_gadget_udc_release() routine in the USB gadget core will sometimes but not always call the gadget's release function when an error occurs. More specifically, if the struct usb_udc allocation fails then the release function is not called, and for other errors it is. As a result, users

Re: [RFCv3 usb-next 3/3] usb: host: xhci: plat: integrate the platform-roothub

2017-08-17 Thread Rob Herring
On Tue, Aug 15, 2017 at 12:45:42AM +0200, Martin Blumenstingl wrote: > This enables the platform-roothub for the xhci-plat driver. This allows > specifying a PHY for each port via devicetree. All PHYs will then be > enabled/disabled by the platform-roothub driver. > > One example where this is

Re: [PATCH v2 4/4] dt-bindings: phy-mt65xx-usb: supports PCIe, SATA and rename file

2017-08-17 Thread Rob Herring
On Wed, Aug 09, 2017 at 01:29:49PM +0800, Chunfeng Yun wrote: > add support for PCIe and SATA, also add some new compatibles. s/add/Add/ > > due to phy-mt65xx-usb.txt holds the bindings for all mediatek SoCs s/due/Due/ > with T-PHY controller, change the name to phy-mtk-tphy.txt to > reflect

Re: [RFCv3 usb-next 1/3] dt-bindings: usb: add the documentation for USB root-hub

2017-08-17 Thread Rob Herring
On Tue, Aug 15, 2017 at 12:45:40AM +0200, Martin Blumenstingl wrote: > A USB root-hub may have several PHYs which need to be configured before > the root-hub starts working. > This adds the documentation for such a USB root-hub. > > Signed-off-by: Martin Blumenstingl

Re: usb 3-1: 1:1: cannot get freq at ep 0x81

2017-08-17 Thread Greg KH
On Thu, Aug 17, 2017 at 09:51:11AM -0300, Cristian wrote: > Hello, > > https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1708499/comments/6 You didn't read my last response :( -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to

Re: [PATCH 6/7] ARM: dts: stm32: Add USB FS support for STM32F746 MCU

2017-08-17 Thread Amelie DELAUNAY
On 08/17/2017 12:47 PM, Sergei Shtylyov wrote: > On 8/17/2017 12:33 PM, Amelie Delaunay wrote: > >> This patch adds the USB pins and nodes for USB FS core on STM32F746 SoC. >> >> Signed-off-by: Amelie Delaunay >> --- >> arch/arm/boot/dts/stm32f746.dtsi | 31

Re: [PATCH 4/7] ARM: dts: stm32: Enable USB HS on stm32746g-eval

2017-08-17 Thread Amelie DELAUNAY
Hi! On 08/17/2017 12:44 PM, Sergei Shtylyov wrote: > Hello! > > On 8/17/2017 12:33 PM, Amelie Delaunay wrote: > >> This patch enables USB HS on stm32746g-eval (Host mode). >> >> Signed-off-by: Amelie Delaunay >> --- >> arch/arm/boot/dts/stm32746g-eval.dts | 16

Re: usb 3-1: 1:1: cannot get freq at ep 0x81

2017-08-17 Thread Cristian
Hello, https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1708499/comments/6 Regards, -- Cristian 2017-08-16 14:02 GMT-03:00 Greg KH : > On Wed, Aug 16, 2017 at 01:40:48PM -0300, Cristian wrote: >> Hello, >> >> Launchpad.net: >>

Re: [PATCH v2 1/2] usb: dwc3: keystone: Add PM_RUNTIME Support to DWC3 Keystone USB driver

2017-08-17 Thread Felipe Balbi
Hi, Franklin S Cooper Jr writes: >> Franklin S Cooper Jr writes: >>> For 66AK2Gx there is a requirement to use PM Runtime to properly manage >>> clocks and the power domains. Therefore, add PM runtime support. Remove >>> legacy clock api's calls since other

Re: [PATCH v2 1/2] usb: dwc3: keystone: Add PM_RUNTIME Support to DWC3 Keystone USB driver

2017-08-17 Thread Franklin S Cooper Jr
On 08/17/2017 07:04 AM, Felipe Balbi wrote: > > Hi, > > Franklin S Cooper Jr writes: >> For 66AK2Gx there is a requirement to use PM Runtime to properly manage >> clocks and the power domains. Therefore, add PM runtime support. Remove >> legacy clock api's calls since other

Re: [PATCH v2 1/2] usb: dwc3: keystone: Add PM_RUNTIME Support to DWC3 Keystone USB driver

2017-08-17 Thread Felipe Balbi
Hi, Franklin S Cooper Jr writes: > For 66AK2Gx there is a requirement to use PM Runtime to properly manage > clocks and the power domains. Therefore, add PM runtime support. Remove > legacy clock api's calls since other users of this driver worked without > these clock apis

Re: [PATCH 6/7] ARM: dts: stm32: Add USB FS support for STM32F746 MCU

2017-08-17 Thread Sergei Shtylyov
On 8/17/2017 12:33 PM, Amelie Delaunay wrote: This patch adds the USB pins and nodes for USB FS core on STM32F746 SoC. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32f746.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff

Re: [PATCH 4/7] ARM: dts: stm32: Enable USB HS on stm32746g-eval

2017-08-17 Thread Sergei Shtylyov
Hello! On 8/17/2017 12:33 PM, Amelie Delaunay wrote: This patch enables USB HS on stm32746g-eval (Host mode). Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32746g-eval.dts | 16 1 file changed, 16 insertions(+) diff --git

[PATCH 2/7] usb: dwc2: add support for STM32F7xx USB OTG HS

2017-08-17 Thread Amelie Delaunay
This patch adds the dwc2_set_params function for STM32F7xx USB OTG HS. Signed-off-by: Amelie Delaunay --- drivers/usb/dwc2/params.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c index

[PATCH 0/7] Add support for USB OTG on STM32F7xx

2017-08-17 Thread Amelie Delaunay
The STM32F7xx MCU family embeds two DWC2 USB OTG cores. One core is USB OTG FS and the other is USB OTG HS. The USB FS core only works with its internal phy whilst the USB HS core can work in HS with external ULPI phy or in FS/LS with the on-chip FS phy. Amelie Delaunay (7): dt-bindings: usb:

[PATCH 1/7] dt-bindings: usb: Document the STM32F7xx DWC2 USB OTG HS core binding

2017-08-17 Thread Amelie Delaunay
This patch adds binding documentation for DWC2 controller in HS mode found on STMicroelectronics STM32F7xx SoC. Signed-off-by: Amelie Delaunay --- Documentation/devicetree/bindings/usb/dwc2.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH 7/7] ARM: dts: stm32: Enable USB FS on stm32f746-disco

2017-08-17 Thread Amelie Delaunay
This patch enables USB FS on stm32f746-disco (Host mode) with 5V VBUS enable. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32f746-disco.dts | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/stm32f746-disco.dts

[PATCH 3/7] ARM: dts: stm32: Add USB HS support for STM32F746 MCU

2017-08-17 Thread Amelie Delaunay
This patch adds the USB pins and nodes for USB HS core on STM32F746 SoC. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32f746.dtsi | 49 1 file changed, 49 insertions(+) diff --git a/arch/arm/boot/dts/stm32f746.dtsi

[PATCH 6/7] ARM: dts: stm32: Add USB FS support for STM32F746 MCU

2017-08-17 Thread Amelie Delaunay
This patch adds the USB pins and nodes for USB FS core on STM32F746 SoC. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32f746.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/stm32f746.dtsi

[PATCH 5/7] ARM: dts: stm32: Enable USB HS on stm32f746-disco

2017-08-17 Thread Amelie Delaunay
This patch enables USB HS on stm32f746-disco (Host mode). Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32f746-disco.dts | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/stm32f746-disco.dts

[PATCH 4/7] ARM: dts: stm32: Enable USB HS on stm32746g-eval

2017-08-17 Thread Amelie Delaunay
This patch enables USB HS on stm32746g-eval (Host mode). Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32746g-eval.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/stm32746g-eval.dts

Re: [PATCH v2 1/2] usb: dwc3: keystone: Add PM_RUNTIME Support to DWC3 Keystone USB driver

2017-08-17 Thread Roger Quadros
 Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 17/08/17 00:54, Franklin S Cooper Jr wrote: > For 66AK2Gx there is a requirement to use PM Runtime to properly manage > clocks and the power domains. Therefore, add

Re: [PATCH 7/9] xhci: add port status tracing

2017-08-17 Thread Felipe Balbi
Hi, Mathias Nyman writes: >> Mathias Nyman writes: >>> Track the port status in a human readble way each time we get a >>> port status change event >>> >>> Signed-off-by: Mathias Nyman >>> --- >>>

Re: [PATCH v2 3/3] arm64: dts: qcom: Collapse usb support into one node

2017-08-17 Thread Shawn Guo
Hi Stephen, On Fri, Jul 14, 2017 at 02:40:05PM -0700, Stephen Boyd wrote: > We currently have three device nodes for the same USB hardware > block, as evident by the reuse of the same reg address multiple > times. Now that the chipidea driver fully supports OTG with the > MSM wrapper we can

Re: Identifying Synopsys USB3 Controller on Baytrail Device

2017-08-17 Thread Felipe Balbi
Hi, Joseph Kogut writes: >>> Here's the relevant section from the Android kernel: >>> >>> <6>[0.612857] PCI host bridge to bus :00 >>> <6>[0.612869] pci_bus :00: root bus resource [bus 00-ff] >>> <6>[0.612877] pci_bus :00: root bus resource [io