Re: [PATCH RFC] usb: dwc3: Get PHY from platform specific dwc3 dt node.

2013-02-01 Thread Felipe Balbi
On Fri, Feb 01, 2013 at 11:54:01AM +0530, Vivek Gautam wrote: > Hi Balbi, > > > On Fri, Feb 1, 2013 at 11:52 AM, Vivek Gautam > wrote: > > Hi Kishon, > > > > > > On Fri, Feb 1, 2013 at 10:51 AM, kishon wrote: > >> Hi, > >> > >> > >> On Thursday 31 January 2013 09:08 PM, Felipe Balbi wrote: > >

Re: [PATCH RFC] usb: dwc3: Get PHY from platform specific dwc3 dt node.

2013-02-01 Thread Vivek Gautam
On Fri, Feb 1, 2013 at 2:20 PM, Felipe Balbi wrote: > On Fri, Feb 01, 2013 at 11:54:01AM +0530, Vivek Gautam wrote: >> Hi Balbi, >> >> >> On Fri, Feb 1, 2013 at 11:52 AM, Vivek Gautam >> wrote: >> > Hi Kishon, >> > >> > >> > On Fri, Feb 1, 2013 at 10:51 AM, kishon wrote: >> >> Hi, >> >> >> >> >

Re: [PATCH 4/9] USB: chipidea: add PTW and PTS handling

2013-02-01 Thread Michael Grzeschik
On Fri, Feb 01, 2013 at 08:52:07AM +0100, Sascha Hauer wrote: > From: Michael Grzeschik > > This patch makes it possible to configure the PTW and PTS bits inside > the portsc register for host and device mode before the driver starts > and the phy can be addressed as hardware implementation is de

Re: [PATCH RFC] usb: dwc3: Get PHY from platform specific dwc3 dt node.

2013-02-01 Thread Felipe Balbi
Hi, On Fri, Feb 01, 2013 at 02:23:28PM +0530, Vivek Gautam wrote: > >> > On Thu, Jan 31, 2013 at 08:53:27PM +0530, Vivek Gautam wrote: > >> > >> Moreover, SoCs having multiple dwc3 controllers will have multiple > >> PHYs, which eventually be added using usb_add_phy_

Zolix FTDI PID

2013-02-01 Thread Petr Kubánek
Hi, Zolix is using FTDI for its Omni 1509 monochromator (at least). I already submit PID to IDS list, attached is FTDI patch. Can somebody please submit it to Linux source? Thanks Petr Kubánek http://rts2.org developer --- linux-source-3.5.0/drivers/usb/serial/ftdi_sio.c.orig 2013-02-01 11:27:3

[PATCH] USB: option: add Changhong CH690

2013-02-01 Thread Bjørn Mork
New device with 3 serial interfaces: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend) Sub=ff Prot=ff If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend) Sub=ff Prot=ff If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend) Sub=ff Prot=ff If#= 3 Alt= 0 #EPs= 2 Cls=08(stor) Sub=06 Prot=50 Cc: Signed-off-by: Bjørn Mork --- drivers/usb/serial/

Re: Zolix FTDI PID

2013-02-01 Thread Greg KH
On Fri, Feb 01, 2013 at 12:03:12PM +0100, Petr Kubánek wrote: > Hi, > > Zolix is using FTDI for its Omni 1509 monochromator (at least). I > already submit PID to IDS list, attached is FTDI patch. Can somebody > please submit it to Linux source? > > Thanks > > Petr Kubánek > http://rts2.org devel

Re: [PATCH,RFC] usb: add devicetree helpers for determining dr_mode and phy_type

2013-02-01 Thread Peter Chen
On Fri, Feb 01, 2013 at 07:58:34AM +0100, Sascha Hauer wrote: > On Fri, Feb 01, 2013 at 09:11:54AM +0800, Peter Chen wrote: > > On Thu, Jan 31, 2013 at 11:29:13AM +0100, Sascha Hauer wrote: > > > On Thu, Jan 31, 2013 at 10:05:44AM +0800, Peter Chen wrote: > > > > On Wed, Jan 30, 2013 at 03:00:15PM

Re: [PATCH] USB chipidea i.MX: use framework phy handling

2013-02-01 Thread Peter Chen
On Fri, Feb 01, 2013 at 08:36:14AM +0100, Sascha Hauer wrote: > On Thu, Jan 31, 2013 at 12:32:15PM +0100, Sascha Hauer wrote: > > This series switches the mxs phy and the i.MX chipidea support > > from homegrew phy support to use > > usb_add_phy_dev/devm_usb_get_phy_by_phandle. > > > > Based on >

Re: [PATCH 4/9] USB: chipidea: add PTW and PTS handling

2013-02-01 Thread Alexander Shishkin
Michael Grzeschik writes: > On Fri, Feb 01, 2013 at 08:52:07AM +0100, Sascha Hauer wrote: >> From: Michael Grzeschik >> >> This patch makes it possible to configure the PTW and PTS bits inside >> the portsc register for host and device mode before the driver starts >> and the phy can be address

[patch] USB: wusbcore/wa-xfer: error handling fixes in setup_segs()

2013-02-01 Thread Dan Carpenter
1) It didn't free xfer->seg[0] so there was a leak. 2) xfer->seg[cnt] can be NULL. 3) Use usb_free_urb() for ->dto_urb instead of kfree(). Signed-off-by: Dan Carpenter diff --git a/drivers/usb/wusbcore/wa-xfer.c b/drivers/usb/wusbcore/wa-xfer.c index 57c01ab..6ef94bc 100644 --- a/drivers/usb/wus

Re: Zolix FTDI PID

2013-02-01 Thread Sergei Shtylyov
Hello. On 01-02-2013 15:03, Petr Kubánek wrote: Zolix is using FTDI for its Omni 1509 monochromator (at least). I already submit PID to IDS list, attached is FTDI patch. Can somebody please submit it to Linux source? WHy not do it yourself? You've alreayd provided a patch, now you only need

RE: [PATCH v2 00/30] USB: omap-ehci: Move PHY management to PHY driver

2013-02-01 Thread Mohammed, Afzal
Hi Felipe, Roger, On Wed, Jan 30, 2013 at 18:49:17, Mohammed, Afzal wrote: > On Wed, Jan 30, 2013 at 18:45:04, Balbi, Felipe wrote: > > On Wed, Jan 30, 2013 at 02:48:50PM +0200, Roger Quadros wrote: > > > I would appreciate if someone who knows more about beaglebone can help > > > with verificati

Re: [PATCH v2 00/30] USB: omap-ehci: Move PHY management to PHY driver

2013-02-01 Thread Roger Quadros
On 02/01/2013 04:21 PM, Mohammed, Afzal wrote: > Hi Felipe, Roger, > > On Wed, Jan 30, 2013 at 18:49:17, Mohammed, Afzal wrote: >> On Wed, Jan 30, 2013 at 18:45:04, Balbi, Felipe wrote: >>> On Wed, Jan 30, 2013 at 02:48:50PM +0200, Roger Quadros wrote: > I would appreciate if someone who kno

RE: [PATCH v2 00/30] USB: omap-ehci: Move PHY management to PHY driver

2013-02-01 Thread Mohammed, Afzal
Hi Roger, On Fri, Feb 01, 2013 at 19:55:14, Quadros, Roger wrote: > Thanks Afzal :). You mean the non device tree boot right? No, dt boot, am335x can only dt boot. Regards Afzal

Re: [PATCH v2 00/30] USB: omap-ehci: Move PHY management to PHY driver

2013-02-01 Thread Roger Quadros
On 02/01/2013 04:27 PM, Mohammed, Afzal wrote: > Hi Roger, > > On Fri, Feb 01, 2013 at 19:55:14, Quadros, Roger wrote: > >> Thanks Afzal :). You mean the non device tree boot right? > > No, dt boot, am335x can only dt boot. but DT boot is not supported for OMAP USB Host. How did you get it to w

RE: [PATCH v2 00/30] USB: omap-ehci: Move PHY management to PHY driver

2013-02-01 Thread Mohammed, Afzal
Hi Roger, On Fri, Feb 01, 2013 at 20:01:38, Quadros, Roger wrote: > but DT boot is not supported for OMAP USB Host. How did you get it to work? > > Are you testing the Host connector or the OTG connector? If you see latest changes on musb_dsps.c, you will be able to find out. As beagle bone fi

Re: [PATCH v2 00/30] USB: omap-ehci: Move PHY management to PHY driver

2013-02-01 Thread Roger Quadros
On 02/01/2013 04:35 PM, Mohammed, Afzal wrote: > Hi Roger, > > On Fri, Feb 01, 2013 at 20:01:38, Quadros, Roger wrote: > >> but DT boot is not supported for OMAP USB Host. How did you get it to work? >> >> Are you testing the Host connector or the OTG connector? > > If you see latest changes on

Re: Linux USB file storage gadget with new UDC

2013-02-01 Thread Alan Stern
On Fri, 1 Feb 2013, victor yeo wrote: > Hi, > > >> i have list_add_tail() in my ep_queue() function. Prior to ep1 > >> receiving data, my ep_queue() is called to send 0x00 to ep0. then it > >> is not called. how to make it to be called by file gadget, in order to > >> queue the request before ep1

RE: Not enough resource for old configuration after USB bus reset

2013-02-01 Thread Alan Stern
On Fri, 1 Feb 2013, [big5] �x�R�� wrote: > Hi, > > According to xHCI spec Rev1 page 125, Endpoint context state diagram. > > When reset device, the endpoint state transit to disabled state. > > Do I make some mistake? > > I'll try to figure out the endopint state transitions during the reset

Re: [PATCH v3] USB: add devicetree helpers for determining dr_mode and phy_type

2013-02-01 Thread Sascha Hauer
Apparantly I was not fully awake while sending this series :( On Fri, Feb 01, 2013 at 08:52:03AM +0100, Sascha Hauer wrote: > (resend because I got the linux-usb address wrong) > > Here's another round of the dr_mode/phy_type patches. I think they should > be ready for merging now. Greg, will you

Re: [PATCH v4 4/4] drivers: usb: start using the control module driver

2013-02-01 Thread Tony Lindgren
* Felipe Balbi [130125 02:30]: > Hi, > > On Fri, Jan 25, 2013 at 03:54:00PM +0530, Kishon Vijay Abraham I wrote: > > Start using the control module driver for powering on the PHY and for > > writing to the mailbox instead of writing to the control module > > registers on their own. > > > > Signe

Re: [PATCH v2 2/4] ARM: OMAP: devices: create device for usb part of control module

2013-02-01 Thread Tony Lindgren
* Felipe Balbi [130123 03:27]: > Hi, > > On Mon, Jan 21, 2013 at 07:38:26PM +0530, Kishon Vijay Abraham I wrote: > > A seperate driver has been added to handle the usb part of control > > module. A device for the above driver is created here, using the register > > address information to be used

Re: [PATCH v2 3/6] ARM: OMAP: USB: Add phy binding information

2013-02-01 Thread Tony Lindgren
* Kishon Vijay Abraham I [130124 18:36]: > This is w.r.t the changes in PHY library to support adding and getting > multiple PHYs of the same type. In the new design, the > binding information between the PHY and the USB controller should be > specified in the platform specific initialization code

Re: [PATCH v2 1/6] usb: otg: Add an API to bind the USB controller and PHY

2013-02-01 Thread Marc Kleine-Budde
On 01/25/2013 03:33 AM, Kishon Vijay Abraham I wrote: > In order to support platforms which has multiple PHY's (of same type) and > which has multiple USB controllers, a new design is adopted wherin the binding > information (between the PHY and the USB controller) should be passed to the > PHY lib

[PATCH] usb: otg: use try_module_get in all usb_get_phy functions and add missing module_put

2013-02-01 Thread Marc Kleine-Budde
In patch "5d3c28b usb: otg: add device tree support to otg library" devm_usb_get_phy_by_phandle() was added. It uses try_module_get() to lock the phy driver in memory. The corresponding module_put() is missing in that patch. This patch adds try_module_get() to usb_get_phy() and usb_get_phy_dev().

Re: [PATCH] usb: otg: use try_module_get in all usb_get_phy functions and add missing module_put

2013-02-01 Thread Marc Kleine-Budde
On 02/01/2013 10:48 PM, Marc Kleine-Budde wrote: > In patch "5d3c28b usb: otg: add device tree support to otg library" > devm_usb_get_phy_by_phandle() was added. It uses try_module_get() to lock the > phy driver in memory. The corresponding module_put() is missing in that patch. > > This patch add

Re: [PATCH v2 2/6] usb: otg: utils: add facilities in phy lib to support multiple PHYs of same type

2013-02-01 Thread Marc Kleine-Budde
On 01/25/2013 03:33 AM, Kishon Vijay Abraham I wrote: > In order to add support for multipe PHY's of the same type, new API's > for adding PHY and getting PHY has been added. Now the binding > information for the PHY and controller should be done in platform file > using usb_bind_phy API. And for g

Re: [REVERT][v3.x.y] EHCI: Update qTD next pointer in QH overlay region during unlink

2013-02-01 Thread Joseph Salisbury
On 01/17/2013 01:56 PM, Alan Stern wrote: On Thu, 17 Jan 2013, Joseph Salisbury wrote: Hello, Please consider reverting commit 3d037774b42ed677f699b1dce7d548d55f4e4c2b in mainline as well as in the current stable releases. It was included upstream as of v3.6-rc6. This commit introduced a reg

[PATCH] drivers/usb/gadget: using strlcpy instead of strncpy

2013-02-01 Thread Chen Gang
for NUL terminated string, better notice '\0' in the end. Signed-off-by: Chen Gang --- drivers/usb/gadget/f_uvc.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/usb/gadget/f_uvc.c b/drivers/usb/gadget/f_uvc.c index 5b62987..92efd6e 100644 --- a/drivers/usb/

[PATCH] drivers/usb/core: using strlcpy instead of strncpy

2013-02-01 Thread Chen Gang
for NUL terminated string, better notice '\0' in the end. Signed-off-by: Chen Gang --- drivers/usb/core/devio.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index b78fbe2..4a863fd 100644 --- a/drivers/usb/core/d