Re: [PATCH v5 08/23] usb: chipidea: set usb gadeget's otg capabilities

2015-06-24 Thread Li Jun
On Wed, Jun 24, 2015 at 11:49:23AM +0800, Peter Chen wrote: > On Wed, Jun 24, 2015 at 11:34:23AM +0800, Li Jun wrote: > > On Wed, Jun 24, 2015 at 11:04:43AM +0800, Peter Chen wrote: > > > On Wed, Jun 17, 2015 at 07:40:15PM +0800, Li Jun wrote: > > > > Set gadget's otg capabilities according to cont

RE: [PATCH v5 08/23] usb: chipidea: set usb gadeget's otg capabilities

2015-06-24 Thread Peter Chen
> > > > > > > > For non-dt platform (eg i686), how it changes otg capabilities > > > > through their platform data? > > > > > > > Directly override platdata->ci_otg_caps in its platform driver after > > > ci_hdrc_add_device(). > > > > After ci_hdrc_add_device, the device may begin to enumerate,

Re: [PATCH 0/2] FTDI CBUS GPIO support

2015-06-24 Thread Johan Hovold
On Wed, Jun 24, 2015 at 12:08:50AM +0200, Stefan Agner wrote: > On 2015-06-23 11:22, Johan Hovold wrote: > > On Mon, Jun 22, 2015 at 10:11:35PM +0200, Stefan Agner wrote: > >> On 2015-06-22 19:26, Johan Hovold wrote: > > > >> > Instead, hang the gpio chip directly off the usb interface (not the >

Re: [PATCH v2] usb: dwc3: pci: make better use of gpiod API

2015-06-24 Thread Heikki Krogerus
On Tue, Jun 23, 2015 at 02:25:06PM +0200, Uwe Kleine-König wrote: > Since 39b2bbe3d715 (gpio: add flags argument to gpiod_get*() functions) > which appeared in v3.17-rc1, the gpiod_get* functions take an additional > parameter that allows to specify direction and initial value for output. > > Use

Re: [PATCH 03/17] phy: ti-pipe3: use *syscon* framework to set PCS value of the PHY

2015-06-24 Thread Roger Quadros
On Tue, 23 Jun 2015 17:28:48 +0530 Kishon Vijay Abraham I wrote: > Deprecate using phy-omap-control driver to set PCS value of the PHY > and start using *syscon* framework to do the same. > > Signed-off-by: Kishon Vijay Abraham I > --- > Documentation/devicetree/bindings/phy/ti-phy.txt |2

Re: [PATCH 17/17] ARM: dts: omap4: Use "syscon-otghs" instead of "ctrl-module" in USB node

2015-06-24 Thread Tony Lindgren
* Kishon Vijay Abraham I [150623 05:02]: > --- a/arch/arm/boot/dts/omap4.dtsi > +++ b/arch/arm/boot/dts/omap4.dtsi > @@ -852,12 +852,6 @@ > }; > }; > > - omap_control_usbotg: control-phy@4a00233c { > - compatible = "ti,control-p

Re: [PATCH 04/17] phy: omap-usb2: use omap_usb_power_off to power off the PHY during probe

2015-06-24 Thread Roger Quadros
On Tue, 23 Jun 2015 17:28:49 +0530 Kishon Vijay Abraham I wrote: > No functional change. Previously omap_control_phy_power() was used to power > off the PHY during probe. But once phy-omap-usb2 driver is adapted to > use syscon, omap_control_phy_power() cannot be used. Hence used > omap_usb_power

Re: [PATCH 05/17] phy: omap-usb2: Add a new compatible string for USB2 PHY2

2015-06-24 Thread Roger Quadros
On Tue, 23 Jun 2015 17:28:50 +0530 Kishon Vijay Abraham I wrote: > The USB2 PHY2 has a different register map compared to USB2 PHY1 > to power on/off the PHY. In order to handle it, add a new > "compatible" string. > > Signed-off-by: Kishon Vijay Abraham I > --- > Documentation/devicetree/bind

Re: [PATCH 17/17] ARM: dts: omap4: Use "syscon-otghs" instead of "ctrl-module" in USB node

2015-06-24 Thread Kishon Vijay Abraham I
Hi Tony, On Wednesday 24 June 2015 04:11 PM, Tony Lindgren wrote: * Kishon Vijay Abraham I [150623 05:02]: --- a/arch/arm/boot/dts/omap4.dtsi +++ b/arch/arm/boot/dts/omap4.dtsi @@ -852,12 +852,6 @@ }; }; - omap_control_usbotg: control-phy@

Re: [PATCH 02/17] phy: ti-pipe3: use *syscon* framework to power on/off the PHY

2015-06-24 Thread Kishon Vijay Abraham I
Hi, On Tuesday 23 June 2015 08:23 PM, Roger Quadros wrote: Hi Kishon, On Tue, 23 Jun 2015 17:28:47 +0530 Kishon Vijay Abraham I wrote: Deprecate using phy-omap-control driver to power on/off the PHY and use *syscon* framework to do the same. Signed-off-by: Kishon Vijay Abraham I --- Docu

Re: [PATCH 06/17] phy: omap-usb2: use *syscon* framework to power on/off the PHY

2015-06-24 Thread Roger Quadros
On Tue, 23 Jun 2015 17:28:51 +0530 Kishon Vijay Abraham I wrote: > Deprecate using phy-omap-control driver to power on/off the PHY, > and use *syscon* framework to do the same. This handles > powering on/off the PHY for the USB2 PHYs used in various TI SoCs. > > Signed-off-by: Kishon Vijay Abrah

Re: [PATCH 07/17] usb: musb: omap2430: use *syscon* framework to write to mailbox register

2015-06-24 Thread Roger Quadros
On Tue, 23 Jun 2015 17:28:52 +0530 Kishon Vijay Abraham I wrote: > Deprecate using phy-omap-control driver to write to the mailbox register > and start using *syscon* framework to do the same. > > Signed-off-by: Kishon Vijay Abraham I > --- > Documentation/devicetree/bindings/usb/omap-usb.txt

Re: [PATCH 17/17] ARM: dts: omap4: Use "syscon-otghs" instead of "ctrl-module" in USB node

2015-06-24 Thread Tony Lindgren
* Kishon Vijay Abraham I [150624 04:23]: > On Wednesday 24 June 2015 04:11 PM, Tony Lindgren wrote: > >* Kishon Vijay Abraham I [150623 05:02]: > >>--- a/arch/arm/boot/dts/omap4.dtsi > >>+++ b/arch/arm/boot/dts/omap4.dtsi > >>@@ -852,12 +852,6 @@ > >>}; > >>}; > >>

Re: [PATCH 07/17] usb: musb: omap2430: use *syscon* framework to write to mailbox register

2015-06-24 Thread Tony Lindgren
* Kishon Vijay Abraham I [150623 05:02]: > Deprecate using phy-omap-control driver to write to the mailbox register > and start using *syscon* framework to do the same. All this stuff needs to go to some generic syscon USB phy driver. Let's not start adding phy specific stuff to a USB driver. Re

Re: [PATCH 08/17] ARM: dts: dra7: Add dt node for the sycon pcie

2015-06-24 Thread Roger Quadros
On Tue, 23 Jun 2015 17:28:53 +0530 Kishon Vijay Abraham I wrote: > Add new device tree node for the control module register space where > PCIe registers are present. > > Signed-off-by: Kishon Vijay Abraham I > --- > arch/arm/boot/dts/dra7.dtsi |5 + > 1 file changed, 5 insertions(+) >

Re: [PATCH 08/17] ARM: dts: dra7: Add dt node for the sycon pcie

2015-06-24 Thread Roger Quadros
On Wed, 24 Jun 2015 14:50:17 +0300 Roger Quadros wrote: > On Tue, 23 Jun 2015 17:28:53 +0530 > Kishon Vijay Abraham I wrote: > > > Add new device tree node for the control module register space where > > PCIe registers are present. > > > > Signed-off-by: Kishon Vijay Abraham I > > --- > > ar

Re: [PATCH 17/17] ARM: dts: omap4: Use "syscon-otghs" instead of "ctrl-module" in USB node

2015-06-24 Thread Roger Quadros
On Wed, 24 Jun 2015 03:41:16 -0700 Tony Lindgren wrote: > * Kishon Vijay Abraham I [150623 05:02]: > > --- a/arch/arm/boot/dts/omap4.dtsi > > +++ b/arch/arm/boot/dts/omap4.dtsi > > @@ -852,12 +852,6 @@ > > }; > > }; > > > > - omap_control_usbotg: contr

Re: [PATCH 09/17] ARM: dts: dra7: Use "syscon-phy-power" instead of "ctrl-module" in SATA PHY node

2015-06-24 Thread Roger Quadros
On Tue, 23 Jun 2015 17:28:54 +0530 Kishon Vijay Abraham I wrote: > Add "syscon-phy-power" property and remove the deprecated "ctrl-module" > property from SATA PHY node. Since "omap_control_sata" note is no longer > used, remove it. > > Signed-off-by: Kishon Vijay Abraham I Acked-by: Roger Qua

Re: [PATCH 11/17] ARM: dts: dra7: Use "ti,dra7x-usb2-phy2" compatible string for USB2 PHY2

2015-06-24 Thread Roger Quadros
On Tue, 23 Jun 2015 17:28:56 +0530 Kishon Vijay Abraham I wrote: > The USB2 PHY2 has a different register map compared to USB2 PHY1 > to power on/off the PHY. In order to handle it, use the new compatible > string "ti,dra7x-usb2-phy2" for the second instance of USB2 PHY. > > Signed-off-by: Kisho

Re: [PATCH 08/17] ARM: dts: dra7: Add dt node for the sycon pcie

2015-06-24 Thread Tony Lindgren
* Roger Quadros [150624 04:58]: > On Wed, 24 Jun 2015 14:50:17 +0300 > Roger Quadros wrote: > > > On Tue, 23 Jun 2015 17:28:53 +0530 > > Kishon Vijay Abraham I wrote: > > > > > Add new device tree node for the control module register space where > > > PCIe registers are present. > > > > > > S

Re: [PATCH 09/17] ARM: dts: dra7: Use "syscon-phy-power" instead of "ctrl-module" in SATA PHY node

2015-06-24 Thread Roger Quadros
On Wed, 24 Jun 2015 15:06:02 +0300 Roger Quadros wrote: > On Tue, 23 Jun 2015 17:28:54 +0530 > Kishon Vijay Abraham I wrote: > > > Add "syscon-phy-power" property and remove the deprecated "ctrl-module" > > property from SATA PHY node. Since "omap_control_sata" note is no longer > > used, remov

Re: [PATCH 08/17] ARM: dts: dra7: Add dt node for the sycon pcie

2015-06-24 Thread Roger Quadros
On Wed, 24 Jun 2015 05:09:39 -0700 Tony Lindgren wrote: > * Roger Quadros [150624 04:58]: > > On Wed, 24 Jun 2015 14:50:17 +0300 > > Roger Quadros wrote: > > > > > On Tue, 23 Jun 2015 17:28:53 +0530 > > > Kishon Vijay Abraham I wrote: > > > > > > > Add new device tree node for the control mo

Re: [PATCH 08/17] ARM: dts: dra7: Add dt node for the sycon pcie

2015-06-24 Thread Tony Lindgren
* Roger Quadros [150624 05:21]: > On Wed, 24 Jun 2015 05:09:39 -0700 > Tony Lindgren wrote: > > > > My take is we should only use regmap for the scm_conf area > > in general. > > +1 > > should we get rid of dra7_ctrl_core and dra7_ctrl_general? > or move them to scm node? Well at least move t

Re: [PATCH 06/17] phy: omap-usb2: use *syscon* framework to power on/off the PHY

2015-06-24 Thread Kishon Vijay Abraham I
Hi, On Wednesday 24 June 2015 05:03 PM, Roger Quadros wrote: > On Tue, 23 Jun 2015 17:28:51 +0530 > Kishon Vijay Abraham I wrote: > >> Deprecate using phy-omap-control driver to power on/off the PHY, >> and use *syscon* framework to do the same. This handles >> powering on/off the PHY for the US

Re: [PATCH 07/17] usb: musb: omap2430: use *syscon* framework to write to mailbox register

2015-06-24 Thread Kishon Vijay Abraham I
Hi Tony, On Wednesday 24 June 2015 05:19 PM, Tony Lindgren wrote: > * Kishon Vijay Abraham I [150623 05:02]: >> Deprecate using phy-omap-control driver to write to the mailbox register >> and start using *syscon* framework to do the same. > > All this stuff needs to go to some generic syscon USB

Re: [PATCH 11/17] ARM: dts: dra7: Use "ti,dra7x-usb2-phy2" compatible string for USB2 PHY2

2015-06-24 Thread Kishon Vijay Abraham I
Hi, On Wednesday 24 June 2015 05:37 PM, Roger Quadros wrote: > On Tue, 23 Jun 2015 17:28:56 +0530 > Kishon Vijay Abraham I wrote: > >> The USB2 PHY2 has a different register map compared to USB2 PHY1 >> to power on/off the PHY. In order to handle it, use the new compatible >> string "ti,dra7x-us

Re: [PATCH 03/17] phy: ti-pipe3: use *syscon* framework to set PCS value of the PHY

2015-06-24 Thread Kishon Vijay Abraham I
Hi, On Wednesday 24 June 2015 04:04 PM, Roger Quadros wrote: > On Tue, 23 Jun 2015 17:28:48 +0530 > Kishon Vijay Abraham I wrote: > >> Deprecate using phy-omap-control driver to set PCS value of the PHY >> and start using *syscon* framework to do the same. >> >> Signed-off-by: Kishon Vijay Abrah

Re: [PATCH 05/17] phy: omap-usb2: Add a new compatible string for USB2 PHY2

2015-06-24 Thread Kishon Vijay Abraham I
Hi, On Wednesday 24 June 2015 04:33 PM, Roger Quadros wrote: > On Tue, 23 Jun 2015 17:28:50 +0530 > Kishon Vijay Abraham I wrote: > >> The USB2 PHY2 has a different register map compared to USB2 PHY1 >> to power on/off the PHY. In order to handle it, add a new >> "compatible" string. >> >> Signe

Re: [PATCH 07/17] usb: musb: omap2430: use *syscon* framework to write to mailbox register

2015-06-24 Thread Kishon Vijay Abraham I
Hi, On Wednesday 24 June 2015 05:09 PM, Roger Quadros wrote: > On Tue, 23 Jun 2015 17:28:52 +0530 > Kishon Vijay Abraham I wrote: > >> Deprecate using phy-omap-control driver to write to the mailbox register >> and start using *syscon* framework to do the same. >> >> Signed-off-by: Kishon Vijay

Re: [PATCH 08/17] ARM: dts: dra7: Add dt node for the sycon pcie

2015-06-24 Thread Kishon Vijay Abraham I
Hi, On Wednesday 24 June 2015 05:20 PM, Roger Quadros wrote: > On Tue, 23 Jun 2015 17:28:53 +0530 > Kishon Vijay Abraham I wrote: > >> Add new device tree node for the control module register space where >> PCIe registers are present. >> >> Signed-off-by: Kishon Vijay Abraham I >> --- >> arch/

Re: [PATCH 08/17] ARM: dts: dra7: Add dt node for the sycon pcie

2015-06-24 Thread Kishon Vijay Abraham I
Hi, On Wednesday 24 June 2015 05:26 PM, Roger Quadros wrote: > On Wed, 24 Jun 2015 14:50:17 +0300 > Roger Quadros wrote: > >> On Tue, 23 Jun 2015 17:28:53 +0530 >> Kishon Vijay Abraham I wrote: >> >>> Add new device tree node for the control module register space where >>> PCIe registers are pr

Re: [PATCH 09/17] ARM: dts: dra7: Use "syscon-phy-power" instead of "ctrl-module" in SATA PHY node

2015-06-24 Thread Kishon Vijay Abraham I
On Wednesday 24 June 2015 05:42 PM, Roger Quadros wrote: > On Wed, 24 Jun 2015 15:06:02 +0300 > Roger Quadros wrote: > >> On Tue, 23 Jun 2015 17:28:54 +0530 >> Kishon Vijay Abraham I wrote: >> >>> Add "syscon-phy-power" property and remove the deprecated "ctrl-module" >>> property from SATA PH

Re: [PATCH 1/1] usb: usleep_range is preferred over udelay where wakeup is flexible

2015-06-24 Thread Alan Stern
On Wed, 24 Jun 2015, Sunny Kumar wrote: > According to Documentation/timers/timers-howto.txt" > udelay() is only called once from a place where sleeping is allowed. > We can replace it with a call to usleep_range() > with a reasonable upper limit. > > Signed-off-by: Sunny Kumar > --- > drivers/

Re: [PATCH 03/17] phy: ti-pipe3: use *syscon* framework to set PCS value of the PHY

2015-06-24 Thread Roger Quadros
On Wed, 24 Jun 2015 18:46:08 +0530 Kishon Vijay Abraham I wrote: > Hi, > > On Wednesday 24 June 2015 04:04 PM, Roger Quadros wrote: > > On Tue, 23 Jun 2015 17:28:48 +0530 > > Kishon Vijay Abraham I wrote: > > > >> Deprecate using phy-omap-control driver to set PCS value of the PHY > >> and sta

Re: [PATCH 11/17] ARM: dts: dra7: Use "ti,dra7x-usb2-phy2" compatible string for USB2 PHY2

2015-06-24 Thread Roger Quadros
On Wed, 24 Jun 2015 18:40:31 +0530 Kishon Vijay Abraham I wrote: > Hi, > > On Wednesday 24 June 2015 05:37 PM, Roger Quadros wrote: > > On Tue, 23 Jun 2015 17:28:56 +0530 > > Kishon Vijay Abraham I wrote: > > > >> The USB2 PHY2 has a different register map compared to USB2 PHY1 > >> to power o

Re: [PATCH 1/1] usb: usleep_range is preferred over udelay where wakeup is flexible

2015-06-24 Thread Sunny Kumar
Ok so what about putting lower limit to 125 and increase upper limit 200 Sunny On Wed, Jun 24, 2015 at 12:24:29PM +0530, Sunny Kumar wrote: > According to Documentation/timers/timers-howto.txt" > udelay() is only called once from a place where sleeping is allowed. > We can replace it with a call

Re: [PATCH 1/1] usb: usleep_range is preferred over udelay where wakeup is flexible

2015-06-24 Thread Alan Stern
Please don't top-post. On Wed, 24 Jun 2015, Sunny Kumar wrote: > Ok so what about putting lower limit to 125 and increase upper limit 200 Or even just 150. That would be fine. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord

urb->interval differently interpreted via xhci for 2.0

2015-06-24 Thread Bernd Porr
Hi all, I'm the maintainter of the the USBDUX* devices. They are USB 2.0 high speed devices. I use urb->interval to control the sampling rate of these devices. That works fine with the ehci driver. When I use the xhci driver it seems to be interpreting the urb->interval in a different way and

Re: urb->interval differently interpreted via xhci for 2.0

2015-06-24 Thread Alan Stern
On Wed, 24 Jun 2015, Bernd Porr wrote: > Hi all, > > I'm the maintainter of the the USBDUX* devices. > > They are USB 2.0 high speed devices. I use urb->interval to control the > sampling rate of these devices. That works fine with the ehci driver. > When I use the xhci driver it seems to be i

Re: [PATCH 1/1] usb: usleep_range is preferred over udelay where wakeup is flexible

2015-06-24 Thread Sunny Kumar
Ok then, This might be the final lower and upper limit value. Sunny Kumar On Wed, Jun 24, 2015 at 12:24:29PM +0530, Sunny Kumar wrote: > According to Documentation/timers/timers-howto.txt" > udelay() is only called once from a place where sleeping is allowed. > We can replace it with a call to us

Re: [PATCH 2/5] usb: gadget: mass_storage: Enforce contiguous LUN ids

2015-06-24 Thread Krzysztof Opasiak
On 06/22/2015 04:45 PM, Alan Stern wrote: On Mon, 22 Jun 2015, Michal Nazarewicz wrote: On Mon, Jun 22 2015, Krzysztof Opasiak wrote: According to mass storage specification: "Logical Unit Numbers on the device shall be numbered contiguously starting from LUN 0 to a maximum LUN of 15 (Fh)

from david chen

2015-06-24 Thread David Chen
hey. how are you? http://ruthstravelingfarm.com/health/ -- 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

Re: [PATCH] usb: ci_hdrc_imx: add optional hub clock

2015-06-24 Thread Maciej S. Szmigiero
Hi Peter, W dniu 23.06.2015 04:55, Peter Chen pisze: > On Mon, Jun 22, 2015 at 12:54:14AM +0800, Maciej S. Szmigiero wrote: >> This patch adds ability to define optional clock of connected >> USB hub to ChipIdea i.MX usb controller driver. >> >> This is needed for example for UDOO board. >> Previo

[PATCH] usb: musb: host: rely on port_mode to call musb_start()

2015-06-24 Thread Felipe Balbi
Currently, we're calling musb_start() twice for DRD ports in some situations. This has been observed to cause enumeration issues after suspend/resume cycles with AM335x. In order to fix the problem, we just have to fix the check on musb_has_gadget() so that it only returns true if current mode is

Re: urb->interval differently interpreted via xhci for 2.0

2015-06-24 Thread Bernd Porr
Hi Alan, thanks for the quick reply. I guess the cleanest solution is to write additional code in both the firmware and the driver for xhci and then once the older drivers change roll that over. I've been trying to avoid changing the firmware because it's not really maintained in sync with t

Re: [PATCH V2 1/1] usb:serial:f81534 Add F81532/534 Driver

2015-06-24 Thread Peter Hung
Hello Johan, Peter Hung 於 2015/6/15 上午 09:54 寫道: > This driver is for Fintek F81532/F81534 USB to Serial Ports IC. > > Features: > 1. F81534 is 1-to-4 & F81532 is 1-to-2 serial ports IC > 2. Support Baudrate from B50 to B150 (excluding B100). > 3. The RTS signal can be transformed their b