Re: [PATCH 1/2] usb: change the dependency chain for LPC32XX and ISP1301

2012-08-23 Thread Sebastian Andrzej Siewior
On 08/22/2012 09:49 PM, Alan Stern wrote: diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index c3f619b..cac3ee2 100644 --- a/drivers/usb/host/Kconfig +++ b/drivers/usb/host/Kconfig @@ -292,7 +292,6 @@ config USB_OHCI_HCD depends on USB&& USB_ARCH_HAS_OHCI select

Re: [RFC ebeam PATCH v4 2/2] input: misc: New USB eBeam input driver.

2012-08-23 Thread Oliver Neukum
On Thursday 23 August 2012 00:11:54 Yann Cantin wrote: > + /* input final setup */ > + err = input_register_device(ebeam->input); > + if (err) { > + dev_dbg(&intf->dev, > + "%s - input_register_device failed, err: %d\n", > +

Re: [PATCH 1/2] usb: change the dependency chain for LPC32XX and ISP1301

2012-08-23 Thread Sebastian Andrzej Siewior
On 08/23/2012 12:16 AM, Roland Stigge wrote: This issue could be resolved in a different way: Have you followed the discussion at linux-arm-ker...@lists.infradead.org on 2012-08-20, Subject "i2c: pnx: Fix bit definitions"? If nothing unexpected turns out, PNX4008 should probably be removed altoge

Re: [RFC ebeam PATCH v4 2/2] input: misc: New USB eBeam input driver.

2012-08-23 Thread Oliver Neukum
On Thursday 23 August 2012 00:11:54 Yann Cantin wrote: > +static int ebeam_resume(struct usb_interface *intf) > +{ > + struct ebeam_device *ebeam = usb_get_intfdata(intf); > + struct input_dev *input = ebeam->input; > + int result = 0; > + > + mutex_lock(&input->mutex); > +

[PATCHv4 0/9] *** ARM: Update arch-vt8500 to Devicetree ***

2012-08-23 Thread Tony Prisk
This patchset updates arch-vt8500 to devicetree and removes all the old-style code. Support for WM8650 has also been added. Example dts/dtsi files are given for the three currently supported models. Major changes: GPIO code has been converted to a platform_device and rewritten as WM8505 support

[PATCHv4 9/9] arm: vt8500: clk: Add Common Clock Framework support

2012-08-23 Thread Tony Prisk
This patch adds common clock framework support for arch-vt8500. Support for PLL and device clocks on VT8500, WM8505 and WM8650 are included. Signed-off-by: Tony Prisk --- drivers/clk/Makefile |1 + drivers/clk/clk-vt8500.c | 511 ++ 2 files ch

[PATCHv4 8/9] arm: vt8500: gpio: Devicetree support for arch-vt8500

2012-08-23 Thread Tony Prisk
Converted the existing arch-vt8500 gpio to a platform_device. Added support for WM8505 and WM8650 GPIO controllers. Replaced existing readl/writel calls with _relaxed variants. Replaced existing unsigned variables with u32 to match register size. Signed-off-by: Tony Prisk --- drivers/gpio/Kconfi

[PATCHv4 7/9] arm: vt8500: doc: Add device tree bindings for arch-vt8500 devices

2012-08-23 Thread Tony Prisk
Bindings for gpio, interrupt controller, power management controller, timer, realtime clock, serial uart, ehci and uhci controllers and framebuffer controllers used on the arch-vt8500 platform. Framebuffer binding also specifies a 'display' node which is required for determining the lcd panel data

[PATCHv4 4/9] usb: vt8500: Add devicetree support for vt8500-ehci and -uhci.

2012-08-23 Thread Tony Prisk
Add devicetree support for vt8500-ehci. Convert vt8500-uhci to a generic non-pci platform-uhci with device tree support. Signed-off-by: Tony Prisk --- drivers/usb/host/Kconfig |4 +- drivers/usb/host/ehci-vt8500.c | 25 -- drivers/usb/host/uhci-hcd.c |5 ++ drivers/u

[PATCHv4 3/9] serial: vt8500: Add devicetree support for vt8500-serial

2012-08-23 Thread Tony Prisk
Increase vt8500_max_ports to 6 as the WM8505 as 6 available uarts. Use devicetree port id as primary addressing for ports but allow auto-allocation if id not specified. Signed-off-by: Tony Prisk --- drivers/tty/serial/vt8500_serial.c | 58 1 file changed, 5

[PATCHv4 1/9] arm: vt8500: Add device tree files for VIA/Wondermedia SoC's

2012-08-23 Thread Tony Prisk
Add device tree files for VT8500, WM8505 and WM8650 SoC's and reference boards. Signed-off-by: Tony Prisk --- arch/arm/boot/dts/vt8500-bv07.dts | 31 arch/arm/boot/dts/vt8500.dtsi | 115 + arch/arm/boot/dts/wm8505-ref.dts | 31 arch/arm/boo

[PATCHv4 5/9] video: vt8500: Add devicetree support for vt8500-fb and wm8505-fb

2012-08-23 Thread Tony Prisk
Update vt8500-fb, wm8505-fb and wmt-ge-rops to support device tree bindings. Small change in wm8505-fb.c to support WM8650 framebuffer color format. Signed-off-by: Tony Prisk --- drivers/video/Kconfig |6 +-- drivers/video/vt8500lcdfb.c | 79 ++- drive

[PATCHv4 2/9] rtc: vt8500: Add devicetree support for vt8500-rtc

2012-08-23 Thread Tony Prisk
Signed-off-by: Tony Prisk --- drivers/rtc/rtc-vt8500.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-vt8500.c b/drivers/rtc/rtc-vt8500.c index 9e94fb1..07bf193 100644 --- a/drivers/rtc/rtc-vt8500.c +++ b/drivers/rtc/rtc-vt8500.c @@ -23,6 +23,7 @@

Re: USB: DWC3: Missed Isoc issue

2012-08-23 Thread Felipe Balbi
On Wed, Aug 22, 2012 at 11:25:16PM +0530, Pratyush Anand wrote: > On 8/22/2012 5:01 PM, Felipe Balbi wrote: > >Hi, > > > >On Wed, Aug 22, 2012 at 02:39:50PM +0530, Pratyush Anand wrote: > >>Hi Felip, > >> > >>I am already discussing it with SNPS, but if you have observed > >>following with current

Re: [PATCH 1/2] usb: change the dependency chain for LPC32XX and ISP1301

2012-08-23 Thread Roland Stigge
On 08/23/2012 09:21 AM, Sebastian Andrzej Siewior wrote: > On 08/23/2012 12:16 AM, Roland Stigge wrote: >> This issue could be resolved in a different way: Have you followed the >> discussion at linux-arm-ker...@lists.infradead.org on 2012-08-20, >> Subject "i2c: pnx: Fix bit definitions"? If nothi

Re: [PATCH 1/2] usb: change the dependency chain for LPC32XX and ISP1301

2012-08-23 Thread Sebastian Andrzej Siewior
On 08/23/2012 10:18 AM, Roland Stigge wrote: On 08/23/2012 09:21 AM, Sebastian Andrzej Siewior wrote: On 08/23/2012 12:16 AM, Roland Stigge wrote: This issue could be resolved in a different way: Have you followed the discussion at linux-arm-ker...@lists.infradead.org on 2012-08-20, Subject "i2

Re: [PATCH 1/2] usb: change the dependency chain for LPC32XX and ISP1301

2012-08-23 Thread Roland Stigge
On 08/23/2012 10:29 AM, Sebastian Andrzej Siewior wrote: >> For the PNX4008 removal - should I already post a patch to build the >> respective changes on top of, without PNX4008 references? > > If nobody cares about PNX4008 and nobody tested if it actually works in > the OHCI mode I don't see the

[GIT PULL] USB fixes for v3.6-rc4

2012-08-23 Thread Felipe Balbi
Hi Greg, Here's my (hopefully) last set of fixes for v3.6-rc cycle. Let me know if you want me to change anything and I'll do so ASAP. cheers The following changes since commit 0d7614f09c1ebdbaa1599a5aba7593f147bf96ee: Linux 3.6-rc1 (2012-08-02 16:38:10 -0700) are available in the git reposi

Re: [GIT PULL] USB fixes for v3.6-rc4

2012-08-23 Thread Marc Kleine-Budde
On 08/23/2012 11:03 AM, Felipe Balbi wrote: > Hi Greg, > > Here's my (hopefully) last set of fixes for v3.6-rc cycle. Let me know if you > want me to change anything and I'll do so ASAP. > > cheers > > The following changes since commit 0d7614f09c1ebdbaa1599a5aba7593f147bf96ee: > > Linux 3.6-

[PATCH 2/9] usb/libcomposite: move config.c into libcomposite

2012-08-23 Thread Sebastian Andrzej Siewior
This moves config.c into libcomposite and updates all gadgets. Signed-off-by: Sebastian Andrzej Siewior --- drivers/staging/ccg/ccg.c |1 - drivers/usb/gadget/Makefile |2 +- drivers/usb/gadget/acm_ms.c |1 - drivers/usb/gadget/audio.c |1 - dri

[PATCH 1/9] usb/gadget: start with libcomposite

2012-08-23 Thread Sebastian Andrzej Siewior
This patch aims to be simple. It removes #include usbstribgs.c line from each gadget and creats libcomposite.ko which has only one member, that is usbstribgs.c. To avoid mass select statements in Kconfig I simply group the composite based gadgets together. The three gadgets which are not part of th

[PATCH 3/9] usb/gadget: move global vars from epautoconf into struct usb_gadget

2012-08-23 Thread Sebastian Andrzej Siewior
epautoconf has two global variables which count the endpoint number current endpoint assignet endpoint. This patch removes the global variable and keeps it as per (UDC) gadget. Signed-off-by: Sebastian Andrzej Siewior --- drivers/usb/gadget/epautoconf.c | 23 ++- include/li

[PATCH 4/9] usb/gadget: add epautoconf.c to libcomposite

2012-08-23 Thread Sebastian Andrzej Siewior
This adds epautoconf.c into libcomposite and updates all gadgets. Signed-off-by: Sebastian Andrzej Siewior --- drivers/staging/ccg/ccg.c |1 - drivers/usb/gadget/Makefile |2 +- drivers/usb/gadget/acm_ms.c |1 - drivers/usb/gadget/audio.c |2 +-

[PATCH 5/9] staging/ccg: make composite.c function static and remove unsused

2012-08-23 Thread Sebastian Andrzej Siewior
The next step is to move composite.c into the library. Since the Android gadget has its composite.c copy this make makes sure both symbols do not clash by making the symbols static. The unused functions are removed. This patch also provides a local copy of composite.h because the prototype is now d

[PATCH 6/9] usb/gadget: move USB_BUFSIZ into global composite.h

2012-08-23 Thread Sebastian Andrzej Siewior
This patch moves USB_BUFSIZ into global header file as USB_COMP_EP0_BUFSIZ. There is currently only one user (f_sourcesink) besides composite which needs it. Ideally f_sourcesink would have its own ep0 buffer. Lets keep it that way it was for now. Signed-off-by: Sebastian Andrzej Siewior --- dri

[PATCH 7/9] usb/gadget: remove bufsiz from struct usb_composite_dev

2012-08-23 Thread Sebastian Andrzej Siewior
there is no read user of bufsiz, its content is available via USB_COMP_EP0_BUFSIZ. Remove it. Signed-off-by: Sebastian Andrzej Siewior --- drivers/usb/gadget/composite.c |1 - include/linux/usb/composite.h |2 -- 2 files changed, 3 deletions(-) diff --git a/drivers/usb/gadget/composite

[PATCH 8/9] usb/gadget: make composite module options readonly only

2012-08-23 Thread Sebastian Andrzej Siewior
This is a partly revert of 4fffd6e5 ("usb: gadget: composite: make module parameters accessible at runtime"). It is not possible to change the VID or other properly for a gadget right now. This change has been made for Anrdoid gadget which has this change in its copy of the file. This function is e

[PATCH 9/9] usb/gadget: push VID/PID/USB BCD module option into gadgets

2012-08-23 Thread Sebastian Andrzej Siewior
This patch moves the module options idVendor, idProduct and bcdDevice from composite.c into each gadgets. This ensures compatibility with current gadgets and removes the global variable which brings me step closer towards composite.c in libcomposite Signed-off-by: Sebastian Andrzej Siewior --- d

Re: PROBLEM: Certain USB devices wake up the system after power off

2012-08-23 Thread Àlex Magaz Graça
El 22/08/12 18:43, Alan Stern escribió: On Wed, 22 Aug 2012, Àlex Magaz Graça wrote: Hi, [1.] One line summary of the problem: Certain USB devices wake up the system after power off [2.] Full description of the problem/report: The computer no longer shuts down properly after upgrading from U

Re: [PATCH 1/2] usb: change the dependency chain for LPC32XX and ISP1301

2012-08-23 Thread Roland Stigge
On 08/23/2012 09:18 AM, Sebastian Andrzej Siewior wrote: > On 08/22/2012 09:49 PM, Alan Stern wrote: >>> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig >>> index c3f619b..cac3ee2 100644 >>> --- a/drivers/usb/host/Kconfig >>> +++ b/drivers/usb/host/Kconfig >>> @@ -292,7 +292,6 @@ c

Re: [PATCHv4 3/9] serial: vt8500: Add devicetree support for vt8500-serial

2012-08-23 Thread Alan Cox
On Thu, 23 Aug 2012 19:35:39 +1200 Tony Prisk wrote: > Increase vt8500_max_ports to 6 as the WM8505 as 6 available uarts. > Use devicetree port id as primary addressing for ports but allow > auto-allocation if id not specified. Acked-by: Alan Cox for the serial bits -- To unsubscribe from this

Re: [PATCHv4 0/9] *** ARM: Update arch-vt8500 to Devicetree ***

2012-08-23 Thread Arnd Bergmann
On Thursday 23 August 2012, Tony Prisk wrote: > Patchset based on Arnd's arm-soc/for-next branch. > > > Could I get this reviewed, hopefully for inclusion into v3.7. I can take them into the arm-soc tree if there are no new comments. For the last two patches, you need to get an Acked-by comment

[PATCH] usb: ohci: Fix Kconfig dependency on USB_ISP1301

2012-08-23 Thread Roland Stigge
With "select USB_ISP1301 ...", it could happen that I2C isn't selected although USB_ISP1301 depends on it. Fixing with "depends on ..." and emulating the condition via "|| !()". Signed-off-by: Roland Stigge --- drivers/usb/host/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --

Re: [PATCH 1/9] usb/gadget: start with libcomposite

2012-08-23 Thread Michal Nazarewicz
Sebastian Andrzej Siewior writes: > This patch aims to be simple. It removes #include usbstribgs.c line from each > gadget and creats libcomposite.ko which has only one member, that is > usbstribgs.c. > To avoid mass select statements in Kconfig I simply group the composite > based gadgets togethe

Re: [PATCH 2/9] usb/libcomposite: move config.c into libcomposite

2012-08-23 Thread Michal Nazarewicz
Sebastian Andrzej Siewior writes: > This moves config.c into libcomposite and updates all gadgets. > > Signed-off-by: Sebastian Andrzej Siewior Acked-by: Michal Nazarewicz > diff --git a/drivers/usb/gadget/config.c b/drivers/usb/gadget/config.c > index 7542a72..e3a9892 100644 > --- a/drivers/u

Re: [PATCH 3/9] usb/gadget: move global vars from epautoconf into struct usb_gadget

2012-08-23 Thread Michal Nazarewicz
Sebastian Andrzej Siewior writes: > epautoconf has two global variables which count the endpoint number > current endpoint assignet endpoint. > This patch removes the global variable and keeps it as per (UDC) gadget. > > Signed-off-by: Sebastian Andrzej Siewior > --- > drivers/usb/gadget/epautoc

Re: [PATCH 1/9] usb/gadget: start with libcomposite

2012-08-23 Thread Sebastian Andrzej Siewior
On 08/23/2012 03:07 PM, Michal Nazarewicz wrote: Perhaps also wrap declaration of usb_gadget_get_string() with an #ifdef in include/linux/usb/gadget.h? This way, anything trying to use the function w/o USB_LIBCOMPOSITE selected will fail to compile rather than failing to load. Good hint. The f

Re: [PATCH 4/9] usb/gadget: add epautoconf.c to libcomposite

2012-08-23 Thread Michal Nazarewicz
Sebastian Andrzej Siewior writes: > This adds epautoconf.c into libcomposite and updates all gadgets. > > Signed-off-by: Sebastian Andrzej Siewior Acked-by: Michal Nazarewicz > diff --git a/drivers/usb/gadget/acm_ms.c b/drivers/usb/gadget/acm_ms.c > index 3078d79..5db661d 100644 > --- a/driver

Re: [PATCH 6/9] usb/gadget: move USB_BUFSIZ into global composite.h

2012-08-23 Thread Michal Nazarewicz
Sebastian Andrzej Siewior writes: > This patch moves USB_BUFSIZ into global header file as > USB_COMP_EP0_BUFSIZ. There is currently only one user (f_sourcesink) > besides composite which needs it. Ideally f_sourcesink would have its > own ep0 buffer. Lets keep it that way it was for now. > > Sign

Re: [PATCH 7/9] usb/gadget: remove bufsiz from struct usb_composite_dev

2012-08-23 Thread Michal Nazarewicz
Sebastian Andrzej Siewior writes: > there is no read user of bufsiz, its content is available via > USB_COMP_EP0_BUFSIZ. Remove it. > > Signed-off-by: Sebastian Andrzej Siewior Acked-by: Michal Nazarewicz > --- > drivers/usb/gadget/composite.c |1 - > include/linux/usb/composite.h |2

Re: [PATCH 3/9] usb/gadget: move global vars from epautoconf into struct usb_gadget

2012-08-23 Thread Sebastian Andrzej Siewior
On 08/23/2012 03:15 PM, Michal Nazarewicz wrote: diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index fdf85a7..01fe02a 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h @@ -537,6 +537,12 @@ struct usb_gadget { unsigneda_

Re: [rtc-linux] [PATCHv4 8/9] arm: vt8500: gpio: Devicetree support for arch-vt8500

2012-08-23 Thread Linus Walleij
On Thu, Aug 23, 2012 at 9:35 AM, Tony Prisk wrote: > Converted the existing arch-vt8500 gpio to a platform_device. > Added support for WM8505 and WM8650 GPIO controllers. > Replaced existing readl/writel calls with _relaxed variants. > Replaced existing unsigned variables with u32 to match regist

Re: [PATCH 4/9] usb/gadget: add epautoconf.c to libcomposite

2012-08-23 Thread Sebastian Andrzej Siewior
On 08/23/2012 03:25 PM, Michal Nazarewicz wrote: diff --git a/drivers/usb/gadget/audio.c b/drivers/usb/gadget/audio.c index 9e85df2..689d142 100644 --- a/drivers/usb/gadget/audio.c +++ b/drivers/usb/gadget/audio.c @@ -14,6 +14,7 @@ #include #include +#include "gadget_chips.h" Perhaps we sh

Re: [rtc-linux] RE: [PATCHv4 0/9] *** ARM: Update arch-vt8500 to Devicetree ***

2012-08-23 Thread Linus Walleij
On Thu, Aug 23, 2012 at 2:58 PM, Tony Prisk wrote: > Linus W has provided some feedback on the gpio driver - I missed the > issues he raised the first time around so just waiting for him to take a look > at v4 when he's got time. Reviewed and OK:ed, looking good now. Yours, Linus Walleij -- To

Re: [PATCH 9/9] usb/gadget: push VID/PID/USB BCD module option into gadgets

2012-08-23 Thread Michal Nazarewicz
Sebastian Andrzej Siewior writes: > This patch moves the module options idVendor, idProduct and bcdDevice > from composite.c into each gadgets. This ensures compatibility with > current gadgets and removes the global variable which brings me step > closer towards composite.c in libcomposite > > Si

Re: [PATCH 9/9] usb/gadget: push VID/PID/USB BCD module option into gadgets

2012-08-23 Thread Sebastian Andrzej Siewior
On 08/23/2012 03:38 PM, Michal Nazarewicz wrote: Wrap with a “do { ... } while (0)”. Will do. Sebastian -- 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.htm

Re: [PATCH 4/9] usb/gadget: add epautoconf.c to libcomposite

2012-08-23 Thread Michal Nazarewicz
>>> diff --git a/drivers/usb/gadget/audio.c b/drivers/usb/gadget/audio.c >>> index 9e85df2..689d142 100644 >>> --- a/drivers/usb/gadget/audio.c >>> +++ b/drivers/usb/gadget/audio.c >>> @@ -14,6 +14,7 @@ >>> #include >>> #include >>> >>> +#include "gadget_chips.h" > On 08/23/2012 03:25 PM, Mich

Re: [PATCH 8/9] usb/gadget: make composite module options readonly only

2012-08-23 Thread Michal Nazarewicz
Sebastian Andrzej Siewior writes: > This is a partly revert of 4fffd6e5 ("usb: gadget: composite: make > module parameters accessible at runtime"). > It is not possible to change the VID or other properly for a gadget > right now. This change has been made for Anrdoid gadget which has this > chang

Re: [RFC PATCH 2/2] USB: Set usb port's DevicerRemovable according acpi information in EHCI

2012-08-23 Thread Alan Stern
On Thu, 23 Aug 2012, Lan Tianyu wrote: > >>> Why not just update the ACPI information using the current hub > >>> descriptor? You don't need to fetch the hub descriptor again. > >>> > >> You mean to set DeviceRemovable directly rather than via hub descriptor > >> request > >> here, right? > > >

Re: [PATCH 1/9] usb/gadget: start with libcomposite

2012-08-23 Thread Alan Stern
On Thu, 23 Aug 2012, Sebastian Andrzej Siewior wrote: > This patch aims to be simple. It removes #include usbstribgs.c line from each > gadget and creats libcomposite.ko which has only one member, that is > usbstribgs.c. > To avoid mass select statements in Kconfig I simply group the composite > b

Re: [PATCH] usb: ohci: Fix Kconfig dependency on USB_ISP1301

2012-08-23 Thread Alan Stern
On Thu, 23 Aug 2012, Roland Stigge wrote: > With "select USB_ISP1301 ...", it could happen that I2C isn't selected > although > USB_ISP1301 depends on it. Fixing with "depends on ..." and emulating the > condition via "|| !()". > > Signed-off-by: Roland Stigge > --- > drivers/usb/host/Kconfig

[PATCH] usbhid: add NOGET quirk for Eaton Ellipse MAX UPS

2012-08-23 Thread Alan Stern
This patch (as1603) adds a NOGET quirk for the Eaton Ellipse MAX UPS device. (The USB IDs were already present in hid-ids.h, apparently under a different name.) Signed-off-by: Alan Stern Reported-by: Laurent Bigonville CC: --- drivers/hid/usbhid/hid-quirks.c |1 + 1 file changed, 1 inse

chipidea driver

2012-08-23 Thread Marc Kleine-Budde
Hello, Michael and I have a bunch of updates and improvement for the chipidea driver. They apply to Richard's tree: https://github.com/riczhao/kernel-imx/commits/topics/usb-driver What's the status of these patches? It would be fine if someone queues them for upstream. regards, Marc -- Pengut

[PATCH 1/3] usb: phy: get phy driver's module if phy is acquired

2012-08-23 Thread Marc Kleine-Budde
Otherwise the module's refcount is 0 and it's possible to unload the module, even if the phy is in use. Signed-off-by: Marc Kleine-Budde --- drivers/usb/otg/otg.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/usb/otg/otg.c b/drivers/usb/otg/otg.c index 1bf

[PATCH 3/3] usb: mxs-phy: register phy as USB_PHY_TYPE_USB2

2012-08-23 Thread Marc Kleine-Budde
This patch registers the msx-phy as an USB_PHY_TYPE_USB2. This is needed to get reference to the phy with devm_usb_get_phy_by_phandle(), which will be added in a later patch. Signed-off-by: Marc Kleine-Budde --- drivers/usb/otg/mxs-phy.c |5 - 1 file changed, 4 insertions(+), 1 deletion(

[PATCH 2/3] usb: otg: add device tree support to otg library

2012-08-23 Thread Marc Kleine-Budde
From: Kishon Vijay Abraham I This patch adds an API to get usb phy by passing a device node phandle value. The new added devm_usb_get_phy_by_phandle() function will return a pointer to the phy on success, -EPROBE_DEFER if there is a device_node for the phandle, but the phy has not been added, or

[PATCH 1/3] usb: otg: Improve phy handling

2012-08-23 Thread Marc Kleine-Budde
This patch series improves the phy handling. The first patch fixes the problem that the phy driver, when build as module, can be unloaded when the phy is in use. The second patch takes up Kishon's work and adds device tree support to the otg library. New in this patch is that devm_usb_get_phy_by_p

[PATCH 3/4] usb: chipidea: udc: don't stall endpoint if request list is empty in isr_tr_complete_low

2012-08-23 Thread Marc Kleine-Budde
From: Michael Grzeschik When attaching an imx28 or imx53 in USB gadget mode to a Windows host and starting a rndis connection we see this message every 4-10 seconds: g_ether gadget: high speed config #2: RNDIS Analysis shows that each time this message is printed, the rndis connection is re

[PATCH 0/4] usb: chipidea: Fixes

2012-08-23 Thread Marc Kleine-Budde
Hello, this is a series fixes several problems in the chipidea udc driver. Although this applies to v3.6-rc3, I don't want to push this into v3.6. Please review and test. These patches have been tested on mx28 and mx53. regards, Marc -- To unsubscribe from this list: send the line "unsubscribe

[PATCH 4/4] usb: chipidea: udc: add pullup fuction, needed by the uvc gadget

2012-08-23 Thread Marc Kleine-Budde
From: Michael Grzeschik Add function to physicaly enable or disable of pullup connection on the USB-D+ line. The uvc gaget will fail, if this function is not implemented. Signed-off-by: Michael Grzeschik Signed-off-by: Marc Kleine-Budde --- drivers/usb/chipidea/udc.c | 21 +-

[PATCH 1/4] usb: chipidea: udc: fix error path in udc_start()

2012-08-23 Thread Marc Kleine-Budde
This patch fixes the error path of udc_start(). Now NULL is used to unset the peripheral with otg_set_peripheral(). Signed-off-by: Marc Kleine-Budde --- drivers/usb/chipidea/udc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chip

[PATCH 2/4] usb: chipidea: udc: set endpoint to undefined maxpacket size on start

2012-08-23 Thread Marc Kleine-Budde
From: Michael Grzeschik Non control endpoints have an undefined maxpacket size on udc start. Some gadget drivers check for the maxpacket size before they enable the endpoint, which leads to a wrong state. Signed-off-by: Michael Grzeschik Signed-off-by: Marc Kleine-Budde --- drivers/usb/chipid

[PATCH] usb: chipidea: ci13xxx_imx: add 2nd and 3rd clock to support imx5x and newer

2012-08-23 Thread Marc Kleine-Budde
From: Michael Grzeschik This patch adds support for a second and third clock to the chipidea driver. On modern freescale ARM cores like the imx51, imx53 and imx6q three clocks ("ahb", "ipg" and "per") must be enabled in order to access the USB core. In the original driver, the clock was requeste

Re: [PATCH 1/3] usb: phy: get phy driver's module if phy is acquired

2012-08-23 Thread Alan Stern
On Thu, 23 Aug 2012, Marc Kleine-Budde wrote: > Otherwise the module's refcount is 0 and it's possible to unload the module, > even if the phy is in use. > @@ -139,8 +140,10 @@ EXPORT_SYMBOL(devm_usb_put_phy); > */ > void usb_put_phy(struct usb_phy *x) > { > - if (x) > + if (x) { >

Re: [PATCH 1/3] usb: phy: get phy driver's module if phy is acquired

2012-08-23 Thread Marc Kleine-Budde
On 08/23/2012 08:33 PM, Alan Stern wrote: > On Thu, 23 Aug 2012, Marc Kleine-Budde wrote: > >> Otherwise the module's refcount is 0 and it's possible to unload the module, >> even if the phy is in use. > >> @@ -139,8 +140,10 @@ EXPORT_SYMBOL(devm_usb_put_phy); >> */ >> void usb_put_phy(struct

Re: linux 3.6-rc2, undefined reference to omap_musb_mailbox

2012-08-23 Thread Peter Meerwald
On Mon, 20 Aug 2012, Felipe Balbi wrote: > On Mon, Aug 20, 2012 at 04:37:28PM +0530, ABRAHAM, KISHON VIJAY wrote: > > Hi, > > > > On Mon, Aug 20, 2012 at 3:56 PM, Felipe Balbi wrote: > > > On Mon, Aug 20, 2012 at 03:46:07PM +0530, ABRAHAM, KISHON VIJAY wrote: > > >> Hi, > > >> > > >> On Mon, Aug

[PATCH] usb otg: TWL4030_USB depends on USB_MUSB_OMAP2PLUS in Kconfig

2012-08-23 Thread Peter Meerwald
Signed-off-by: Peter Meerwald --- drivers/usb/otg/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/otg/Kconfig b/drivers/usb/otg/Kconfig index 13fd1ddf..fefca18 100644 --- a/drivers/usb/otg/Kconfig +++ b/drivers/usb/otg/Kconfig @@ -58,7 +58,7 @@ config US

Re: Huawei E372 does not work via TI usb3 chip

2012-08-23 Thread Martin Mokrejs
Hi Sarah and Alan, thank you for your answer. I finally got to look for some current patches and to test them. Confirming that patch 50d0206fcaea3e736f912fd5b00ec6233fb4ce44 applied over linux-3.5.1 fixes my problem and the modem now works fine when attached to USB3 host. Quoting the patch from

Re: [PATCHv3 3/9] serial: vt8500: Add devicetree support for

2012-08-23 Thread Rob Landley
On 08/22/2012 01:44 AM, Arnd Bergmann wrote: > On Wednesday 22 August 2012, Tony Prisk wrote: >> The original patch was very simple, but I revisited it to fix other >> issues and forgot to add the relevant comments. >> >> Port size is changed to fix a problem - WM8505 actually had 6 uart's >> defin

Re: [PATCH 1/3] usb: otg: Improve phy handling

2012-08-23 Thread Richard Zhao
On Thu, Aug 23, 2012 at 07:22:51PM +0200, Marc Kleine-Budde wrote: > This patch series improves the phy handling. > > The first patch fixes the problem that the phy driver, when build as module, > can be unloaded when the phy is in use. ci13xxx_imx also have a try_module_get. Thanks Richard > The

Re: chipidea driver

2012-08-23 Thread Richard Zhao
On Thu, Aug 23, 2012 at 06:57:03PM +0200, Marc Kleine-Budde wrote: > Hello, > > Michael and I have a bunch of updates and improvement for the chipidea > driver. They apply to Richard's tree: > > https://github.com/riczhao/kernel-imx/commits/topics/usb-driver > > What's the status of these patche

Re: [RFC PATCH 2/2] USB: Set usb port's DevicerRemovable according acpi information in EHCI

2012-08-23 Thread Lan Tianyu
On 2012年08月23日 22:10, Alan Stern wrote: > On Thu, 23 Aug 2012, Lan Tianyu wrote: > > Why not just update the ACPI information using the current hub > descriptor? You don't need to fetch the hub descriptor again. > You mean to set DeviceRemovable directly rather than via hub descr

Re: [PATCH 2/3] usb: otg: add device tree support to otg library

2012-08-23 Thread Richard Zhao
Hi Marc, Did you try both enableing and disabing DT pass build? On Thu, Aug 23, 2012 at 07:22:53PM +0200, Marc Kleine-Budde wrote: > From: Kishon Vijay Abraham I > > This patch adds an API to get usb phy by passing a device node phandle value. > The new added devm_usb_get_phy_by_phandle() funct

Re: [PATCH 3/3] usb: mxs-phy: register phy as USB_PHY_TYPE_USB2

2012-08-23 Thread Richard Zhao
On Thu, Aug 23, 2012 at 07:22:54PM +0200, Marc Kleine-Budde wrote: > This patch registers the msx-phy as an USB_PHY_TYPE_USB2. This is needed to > get > reference to the phy with devm_usb_get_phy_by_phandle(), which will be added > in > a later patch. > > Signed-off-by: Marc Kleine-Budde > ---