[PATCH 00/10] Get MUSB PM runtime working again

2016-04-28 Thread Tony Lindgren
Hi all, Here's a series of fixes to get MUSB PM runtime working again. I can now test PM runtime with the 2430 glue layer with this set, so adding PM runtime support for other glue layers should be possible. Regards, Tony Tony Lindgren (10): usb: phy: Fix initial state for twl6030 usb

[PATCH 03/10] usb: musb: Fix PM runtime handling for connected cable

2016-04-28 Thread Tony Lindgren
We may have drivers loaded but no configured gadgets and MUSB may be in host mode. If gadgets are configured during host mode, PM runtime will get confused. Disconnect PM runtime from gadget state, and do it only based on the cable. Signed-off-by: Tony Lindgren <t...@atomide.com> --- d

[PATCH 06/10] usb: musb: Split PM runtime between wrapper IP and musb core

2016-04-28 Thread Tony Lindgren
calls from the glue layer, those will get removed in a later patch. Signed-off-by: Tony Lindgren <t...@atomide.com> --- drivers/usb/musb/musb_core.c | 25 ++--- drivers/usb/musb/omap2430.c | 10 -- 2 files changed, 10 insertions(+), 25 deletions(-) diff --git a/d

[PATCH 01/10] usb: phy: Fix initial state for twl6030

2016-04-28 Thread Tony Lindgren
We need to check the state for the PHY with delayed_work so as otherwise MUSB will get confused and idles immediately. Signed-off-by: Tony Lindgren <t...@atomide.com> --- drivers/usb/phy/phy-twl6030-usb.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff

[PATCH 04/10] usb: musb: Remove unnecessary shutdown function

2016-04-28 Thread Tony Lindgren
We have remove() already calling shutdown(), so let's drop it and move the code to remove(). Signed-off-by: Tony Lindgren <t...@atomide.com> --- drivers/usb/musb/musb_core.c | 39 ++- 1 file changed, 14 insertions(+), 25 deletions(-) diff --git a/drive

[PATCH 07/10] usb: musb: Manage USB phy from PM runtime calls

2016-04-28 Thread Tony Lindgren
This simplifies things and allows idling both MUSB and PHY when nothing is configured. Let's also warn if PHY is not configured. Signed-off-by: Tony Lindgren <t...@atomide.com> --- drivers/usb/musb/omap2430.c | 35 +-- 1 file changed, 21 insertions(

[PATCH 10/10] usb: musb: Remove pm_runtime_set_irq_safe

2016-04-28 Thread Tony Lindgren
With the pull up being handled with delayed work, we can now finally remove pm_runtime_set_irq_safe that blocks the MUSB glue from idling. Signed-off-by: Tony Lindgren <t...@atomide.com> --- drivers/usb/musb/musb_core.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/us

Re: USB gadgets with configfs hang reboot

2016-04-26 Thread Tony Lindgren
* Ivaylo Dimitrov [160426 09:46]: > > > On 26.04.2016 18:03, Alan Stern wrote: > >On Tue, 26 Apr 2016, Felipe Balbi wrote: > > > >>>Is there a reason why a process (pnatd in this particular case) doesn't > >>>get killed on reboot? > >> > >>there might be, and that's

Re: USB gadgets with configfs hang reboot

2016-03-30 Thread Tony Lindgren
* Alan Stern [160330 12:26]: > On Wed, 30 Mar 2016, Ivaylo Dimitrov wrote: > > > >>> seems to be created twice :). Maybe the problem is that the first time > > >>> musb-hdrc is probed it fails with -EPROBE_DEFER, however that failure is > > >>> after gadget drivers got

Re: [PATCH 2/2] arm: omap: remove deprecated property

2016-02-12 Thread Tony Lindgren
* Felipe Balbi [160204 04:19]: > DWC3's tx-fifo-resize property has been deprecated > because of it being unnecessary to any HW other than > OMAP5 ES1.0. OK, picking up this patch into omap-for-v4.6/dt thanks. Tony -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH 0/2] Two phy-twl4030-usb fixes for unloading the module

2016-02-09 Thread Tony Lindgren
* Kishon Vijay Abraham I <kis...@ti.com> [160208 21:13]: > Hi Tony, > > On Tuesday 09 February 2016 01:21 AM, Tony Lindgren wrote: > > Hi Kishon, > > > > * Tony Lindgren <t...@atomide.com> [151130 21:40]: > >> Hi, > >> > >> H

Re: [PATCH 0/2] Two phy-twl4030-usb fixes for unloading the module

2016-02-08 Thread Tony Lindgren
Hi Kishon, * Tony Lindgren <t...@atomide.com> [151130 21:40]: > Hi, > > Here are two fixes for rmmod and PM. These can be merged separately after > the review from the MUSB related changes. Looks like these two fixes never got merged. Care to merge these for v4.5-rc cycle w

Re: [PATCH 6/7] usb: musb: use %pad format string from dma_addr_t

2016-01-28 Thread Tony Lindgren
has type 'dma_addr_t {aka long long unsigned > int}' [-Werror=format=] > dev_dbg(musb->controller, "ep%i %s dma ch%i dma: %08x len: %u(%u) > packet_sz: %i(%i)\n", > > This uses the %pad format string, which prints a dma_addr_t that > gets passed by reference, which work

Re: Nokia N900: musb is in wrong state after boot

2016-01-26 Thread Tony Lindgren
* Pali Rohár <pali.ro...@gmail.com> [160126 06:35]: > On Thursday 21 January 2016 12:30:13 Tony Lindgren wrote: > > * joerg Reisenweber <jo...@openmoko.org> [160121 11:35]: > > > On Thu 21 January 2016 11:21:13 Tony Lindgren wrote: > > > > Do you have som

Re: USB gadgets with configfs hang reboot

2016-01-22 Thread Tony Lindgren
* Andrzej Pietrasiewicz <andrze...@samsung.com> [160122 02:36]: > Hi Tony, > > W dniu 15.01.2016 o 23:48, Tony Lindgren pisze: > >Hi all, > > > >Looks like there's some issue with the USB gadgets and configfs. > > > >I'm seeing rmmod of the UDC dr

Re: Nokia N900: musb is in wrong state after boot

2016-01-21 Thread Tony Lindgren
* joerg Reisenweber <jo...@openmoko.org> [160121 02:30]: > On Thu 21 January 2016 09:40:07 Pali Rohár wrote: > > On Tuesday 19 January 2016 12:33:15 Tony Lindgren wrote: > > > Hi, > > > > > > * Pali Rohár <pali.ro...@gmail.com> [160109 07:16]: >

Re: Nokia N900: musb is in wrong state after boot

2016-01-21 Thread Tony Lindgren
* joerg Reisenweber <jo...@openmoko.org> [160121 10:45]: > On Thu 21 January 2016 09:41:46 Tony Lindgren wrote: > > Then for supporting the USB host mode.. We should add regulator support > > to the USB PHY driver so if the ID pin is grounded, the PHY driver enables &

Re: Nokia N900: musb is in wrong state after boot

2016-01-21 Thread Tony Lindgren
* joerg Reisenweber <jo...@openmoko.org> [160121 11:35]: > On Thu 21 January 2016 11:21:13 Tony Lindgren wrote: > > Do you have some pointer > > to the "certain resistor value on ID to GND" spec? Is it maybe part of > > the carkit related parts of the USB

Re: [PATCH v3 0/9] phy: use syscon framework APIs to set ctrl mod reg

2015-12-15 Thread Tony Lindgren
* Kishon Vijay Abraham I [151215 04:47]: > On Tuesday 15 December 2015 05:25 PM, Arnd Bergmann wrote: > >>> > >>> Can you explain here what the conversion is good for? Why do you > >>> prefer the syscon mapping over a high-level driver in this case? > >> > >> phy-omap-control

Re: [PATCH 1/2] usb: musb: core: Fix handling of the phy notifications

2015-12-07 Thread Tony Lindgren
* Kishon Vijay Abraham I <kis...@ti.com> [151206 23:03]: > On Tuesday 01 December 2015 11:07 AM, Tony Lindgren wrote: > > We currently can't unload omap2430 MUSB platform glue driver module and > > this cause issues for fixing the MUSB code further. The reason we can'

[PATCH] usb: musb: core: Fix pm runtime for deferred probe

2015-12-07 Thread Tony Lindgren
not enable pm runtime until we need to and the parent has been initialized. Note that this does not fix the issue of PM being broken for musb during runtime. Signed-off-by: Tony Lindgren <t...@atomide.com> --- drivers/usb/musb/musb_core.c | 7 ++- 1 file changed, 6 insertions(+), 1 de

[PATCH 1/2] usb: musb: core: Fix handling of the phy notifications

2015-11-30 Thread Tony Lindgren
ay Abraham I <kis...@ti.com> Cc: NeilBrown <n...@brown.name> Signed-off-by: Tony Lindgren <t...@atomide.com> --- Probably best that Felipe merges this patch via the USB tree after comments if that works for Kishon? I have another two fixes for the phy-twl4030-usb.c coming

[PATCH 2/2] usb: musb: Fix unbalanced pm_runtime_enable

2015-11-30 Thread Tony Lindgren
bi <ba...@ti.com> Cc: Kishon Vijay Abraham I <kis...@ti.com> Cc: NeilBrown <n...@brown.name> Signed-off-by: Tony Lindgren <t...@atomide.com> --- drivers/usb/musb/omap2430.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap

[PATCH 0/2] Fix rmmod for musb omap2430 glue layer

2015-11-30 Thread Tony Lindgren
Hi, Here are two patches to fix rmmod for musb omap2430. This makes any further work on this driver a bit easier. Regards, Tony Tony Lindgren (2): usb: musb: core: Fix handling of the phy notifications usb: musb: Fix unbalanced pm_runtime_enable drivers/phy/phy-twl4030-usb.c | 32

[PATCH 2/2] phy: twl4030-usb: Fix unbalanced pm_runtime_enable on module reload

2015-11-30 Thread Tony Lindgren
of extra power compared to running idle with the module loaded. Cc: Bin Liu <b-...@ti.com> Cc: Felipe Balbi <ba...@ti.com> Cc: Kishon Vijay Abraham I <kis...@ti.com> Cc: NeilBrown <n...@brown.name> Signed-off-by: Tony Lindgren <t...@atomide.com> --- drivers/phy/phy-twl40

[PATCH 0/2] Two phy-twl4030-usb fixes for unloading the module

2015-11-30 Thread Tony Lindgren
Hi, Here are two fixes for rmmod and PM. These can be merged separately after the review from the MUSB related changes. Regards, Tony Tony Lindgren (2): phy: twl4030-usb: Relase usb phy on unload phy: twl4030-usb: Fix unbalanced pm_runtime_enable on module reload drivers/phy/phy-twl4030

[PATCH 1/2] phy: twl4030-usb: Relase usb phy on unload

2015-11-30 Thread Tony Lindgren
]) from [] (musb_init_controller+0x194/0x878 [musb_hdrc]) Cc: Bin Liu <b-...@ti.com> Cc: Felipe Balbi <ba...@ti.com> Cc: Kishon Vijay Abraham I <kis...@ti.com> Cc: NeilBrown <n...@brown.name> Signed-off-by: Tony Lindgren <t...@atomide.com> --- drivers/phy/phy-twl4030-

Re: [PATCH] USB: MUSB: fail with error when no DMA controller set

2015-11-25 Thread Tony Lindgren
* Aaro Koskinen [151123 11:51]: > Fail with error when no DMA controller is set. > > Signed-off-by: Aaro Koskinen > --- > drivers/usb/musb/musb_core.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/usb/musb/musb_core.c

Re: MUSB peripheral DMA regression caused by driver core runtime PM change

2015-10-28 Thread Tony Lindgren
* Felipe Balbi <ba...@ti.com> [151023 09:48]: > > Hi, > > Tony Lindgren <t...@atomide.com> writes: > > From: Tony Lindgren <t...@atomide.com> > > Date: Fri, 23 Oct 2015 09:03:22 -0700 > > Subject: [PATCH] usb: musb: omap2430: Fix regression

Re: MUSB peripheral DMA regression caused by driver core runtime PM change

2015-10-23 Thread Tony Lindgren
* Grygorii Strashko <grygorii.stras...@ti.com> [151023 05:50]: > On 10/23/2015 02:01 AM, Tony Lindgren wrote: > >* Tony Lindgren <t...@atomide.com> [151022 11:03]: > >>* Tony Lindgren <t...@atomide.com> [151021 16:44]: > >>>Hi all, > >&g

Re: MUSB peripheral DMA regression caused by driver core runtime PM change

2015-10-23 Thread Tony Lindgren
* Alan Stern [151023 11:27]: > On Fri, 23 Oct 2015, Grygorii Strashko wrote: > > > Reviewed-by: Grygorii Strashko > > > > It always fun when DD/PM core is updated to fix some driver/subsystem's > > specific PM issue :( > > > > > > > >> ---

Re: [PATCH 2/5] Export am35x helper functions

2015-10-23 Thread Tony Lindgren
* Rolf Peukert [151023 08:46]: > To be able to call these four helper functions from a M-USB AM35x driver > module, their name symbols need to be exported. I'd rather get rid of this file completely.. How about just do a minimal drivers/phy driver? Maybe take a look at the

Re: MUSB peripheral DMA regression caused by driver core runtime PM change

2015-10-22 Thread Tony Lindgren
* Tony Lindgren <t...@atomide.com> [151021 16:44]: > Hi all, > > I noticed a regresssino in v4.3-rc series to day with MUSB gadgets > and DMA. Doing a git bisect between v4.2..v4.3-rc1 on it pointed to: > > ddef08dd00f5 ("Driver core: wakeup the pare

Re: MUSB peripheral DMA regression caused by driver core runtime PM change

2015-10-22 Thread Tony Lindgren
* Tony Lindgren <t...@atomide.com> [151022 11:03]: > * Tony Lindgren <t...@atomide.com> [151021 16:44]: > > Hi all, > > > > I noticed a regresssino in v4.3-rc series to day with MUSB gadgets > > and DMA. Doing a git bisect between v4.2..v4.3-rc1 on it poi

MUSB peripheral DMA regression caused by driver core runtime PM change

2015-10-21 Thread Tony Lindgren
Hi all, I noticed a regresssino in v4.3-rc series to day with MUSB gadgets and DMA. Doing a git bisect between v4.2..v4.3-rc1 on it pointed to: ddef08dd00f5 ("Driver core: wakeup the parent device before trying probe") With the commit above reverted things work fine with DMA and USB gadgets.

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

2015-08-21 Thread Tony Lindgren
* Kishon Vijay Abraham I kis...@ti.com [150819 23:38]: Hi, On Thursday 06 August 2015 02:17 PM, Tony Lindgren wrote: * Kishon Vijay Abraham I kis...@ti.com [150805 07:10]: On Wednesday 05 August 2015 01:31 PM, Tony Lindgren wrote: We don't have syscon-otghs and to me it seems we need

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

2015-08-06 Thread Tony Lindgren
* Kishon Vijay Abraham I kis...@ti.com [150805 07:28]: Hi Roger, On Wednesday 05 August 2015 01:38 PM, Roger Quadros wrote: On 05/08/15 11:02, Roger Quadros wrote: Kishon, On 04/08/15 18:30, Kishon Vijay Abraham I wrote: Add syscon-otghs property and remove the deprecated ctrl-module

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

2015-08-06 Thread Tony Lindgren
* Kishon Vijay Abraham I kis...@ti.com [150805 07:10]: On Wednesday 05 August 2015 01:31 PM, Tony Lindgren wrote: We don't have syscon-otghs and to me it seems we need a PHY driver as I pointed out at: If *syscon-otghs* is not present, then it'll fall-back to using the *ctrl-module

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

2015-08-05 Thread Tony Lindgren
* Kishon Vijay Abraham I kis...@ti.com [150804 07:11]: Deprecate using phy-omap-control driver to write to the mailbox register and start using *syscon* framework to do the same. .. @@ -512,6 +558,40 @@ static const struct musb_platform_ops omap2430_ops = { static u64 omap2430_dmamask =

Re: [PATCH v3 0/5] ARM: dts: OMAP2+: Enable USB dual-role on supported boards

2015-08-04 Thread Tony Lindgren
* Roger Quadros rog...@ti.com [150727 02:30]: Tony, On 21/07/15 13:54, Tony Lindgren wrote: * Roger Quadros rog...@ti.com [150708 03:45]: Hi, Enables dual-role feaure on supported boards. Depends on [1] - core USB DRD support - http://thread.gmane.org/gmane.linux.kernel

[PATCH] usb: musb: Allow building in all the DMA code

2015-08-03 Thread Tony Lindgren
With recent changes to MUSB code, we can now now get rid of the Kconfig choise for the DMA code and allow building in any of the desired DMA code. This makes life easier for distros. Signed-off-by: Tony Lindgren t...@atomide.com --- This should be safe to dow now. Felipe, I've ran some

Re: [PATCH v3 0/5] ARM: dts: OMAP2+: Enable USB dual-role on supported boards

2015-07-21 Thread Tony Lindgren
* Roger Quadros rog...@ti.com [150708 03:45]: Hi, Enables dual-role feaure on supported boards. Depends on [1] - core USB DRD support - http://thread.gmane.org/gmane.linux.kernel/1991413 [2] - dwc3 DRD support - http://thread.gmane.org/gmane.linux.usb.general/127890 Is this series

Re: High CPU usage when video streaming on EHCI, 3.17.8 kernel with DMA enabled

2015-07-02 Thread Tony Lindgren
* Tom Mises tommi...@gmail.com [150701 11:24]: On Mon, May 18, 2015 at 8:59 AM, Tony Lindgren t...@atomide.com wrote: For the memcpy part with DMA this patch should help too: [PATCH] dmaengine: omap-dma: Add support for memcpy The patch should help, but not out of the box as far as I

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 kis...@ti.com [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

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 kis...@ti.com [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 =

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 kis...@ti.com [150624 04:23]: On Wednesday 24 June 2015 04:11 PM, Tony Lindgren wrote: * Kishon Vijay Abraham I kis...@ti.com [150623 05:02]: --- a/arch/arm/boot/dts/omap4.dtsi +++ b/arch/arm/boot/dts/omap4.dtsi @@ -852,12 +852,6

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

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

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

2015-06-24 Thread Tony Lindgren
* Roger Quadros rog...@ti.com [150624 05:21]: On Wed, 24 Jun 2015 05:09:39 -0700 Tony Lindgren t...@atomide.com 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

Re: [PATCH] USB: musb: Fix order of conditions for assigning end point operations

2015-05-26 Thread Tony Lindgren
* Felipe Balbi ba...@ti.com [150526 09:15]: On Tue, May 26, 2015 at 09:00:15AM -0700, Tony Lindgren wrote: * Ben Hutchings b...@decadent.org.uk [150523 20:29]: Currently we always assign one of the two common implementations of ep_offset and ep_select operations, overwriting any platform

Re: [PATCH] USB: musb: Fix order of conditions for assigning end point operations

2015-05-26 Thread Tony Lindgren
-by: Ben Hutchings b...@decadent.org.uk --- This is untested; I just spotted this while backporting Tony's work on multiplatform support. Good catch, works for me: Tested-by: Tony Lindgren t...@atomide.com drivers/usb/musb/musb_core.c | 14 +++--- 1 file changed, 7 insertions(+), 7

[PATCH 00/12] MUSB patches to select all DMA drivers

2015-05-01 Thread Tony Lindgren
Hi all, Here are few patches that allow building in all the MUSB DMA drivers for distros. This also allows us to get rid of most of the ifdefs, and also simplifies the musb_host_rx monster function a bit. Regards, Tony Tony Lindgren (12): usb: musb: Fix up DMA related macros usb: musb: Set

[PATCH 06/12] usb: musb: Remove ifdefs for TX DMA for musb_host.c

2015-05-01 Thread Tony Lindgren
We can remove the ifdefs by setting up helper functions for mentor DMA and cppi/tusb DMA. Note that I've kept the existing formatting as otherwise this patch becomes pretty much unreadable. Signed-off-by: Tony Lindgren t...@atomide.com --- drivers/usb/musb/musb_host.c | 61

[PATCH 02/12] usb: musb: Set up function pointers for DMA

2015-05-01 Thread Tony Lindgren
Set up function pointers for DMA so get closer to being able to build in all the DMA engines. Signed-off-by: Tony Lindgren t...@atomide.com --- drivers/usb/musb/am35x.c | 4 drivers/usb/musb/blackfin.c | 4 drivers/usb/musb/cppi_dma.c | 9 ++--- drivers/usb

Re: [PATCH v2] phy: fix Kconfig dependencies

2015-04-28 Thread Tony Lindgren
. This patches fixes the dependencies by adding USB_SUPPORT as a dependency and make both drivers select USB_PHY (which cannot be selected through menuconfig). Note that this fixes some linking breakages when building with randconfig. Cc: Tony Lindgren t...@atomide.com Makes sense to me: Acked

Re: [PATCH] usb: musb: Fix fifo reads for dm816x with musb_dsps

2015-04-01 Thread Tony Lindgren
* Andrew Morton a...@linux-foundation.org [150401 14:36]: On Wed, 18 Mar 2015 15:48:02 -0700 Tony Lindgren t...@atomide.com wrote: Looks like dm81xx can only do 32-bit fifo reads like am35x. Let's set up musb-dsps with a custom read_fifo function based on the compatible flag

[PATCH 1/1] usb: musb: dsps: fix build on i386 when COMPILE_TEST is set

2015-03-25 Thread Tony Lindgren
: Bin Liu binml...@gmail.com Cc: Brian Hutchinson b.hutch...@gmail.com Cc: George Cherian george.cher...@ti.com Cc: Sergei Shtylyov sergei.shtyl...@cogentembedded.com Signed-off-by: Tony Lindgren t...@atomide.com --- drivers/usb/musb/musb_dsps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH] phy: Add a driver for dm816x USB PHY

2015-03-16 Thread Tony Lindgren
* Matthijs van Duin matthijsvand...@gmail.com [150314 14:04]: On 13 March 2015 at 20:30, Tony Lindgren t...@atomide.com wrote: Hmm OK have to check that. It could also be that dm816x documentation is copy-paste from da850 or am3517 and the PHY got changed in the hardware as the registers

Re: [PATCH v2 7/7] ARM: omap2plus_defconfig: Enable EXTCON_GPIO_USB

2015-03-16 Thread Tony Lindgren
* Roger Quadros rog...@ti.com [150126 04:19]: This driver is needed for USB cable type detection on dra7-evm, dra72-evm and am57xx-beagle-x15. Signed-off-by: Roger Quadros rog...@ti.com Applying this into omap-for-v4.1/defconfig. I think it's all queued up after this, please check and repost

Re: [PATCH] phy: Add a driver for dm816x USB PHY

2015-03-13 Thread Tony Lindgren
this one then. On 9 March 2015 at 22:41, Tony Lindgren t...@atomide.com wrote: Note that we still are missing basic support for dm814x in mainline, I'm planning to tackle that at some point but I don't know when I'm going to get to it.. Do ping me if you have questions. While I still don't

Re: [PATCH] phy: Add a driver for dm816x USB PHY

2015-03-12 Thread Tony Lindgren
* Kishon Vijay Abraham I kis...@ti.com [150311 02:58]: Hi Tony, On Tuesday 10 March 2015 02:21 AM, Tony Lindgren wrote: Add a minimal driver for dm816x USB. Otherwise we can just use the existing musb_am335x and musb_dsps on dm816x. If we can use an existing driver, I'd prefer that. Hmm

Re: [PATCH] phy: Add a driver for dm816x USB PHY

2015-03-12 Thread Tony Lindgren
* Rusty Russell ru...@rustcorp.com.au [150311 18:15]: Tony Lindgren t...@atomide.com writes: * Paul Bolle pebo...@tiscali.nl [150311 04:16]: Oh, it should be just GPL v2 like most of the kernel. Probably copied the header from some other phy driver, will update that instead. Well, all my

Re: [PATCH] usb: musb: dsps: request phy using our device pointer

2015-03-11 Thread Tony Lindgren
* Felipe Balbi ba...@ti.com [150311 08:20]: musb shouldn't have of_node and phy phandle is passed to dsps device, not musb's. Reported-by: Tony Lindgren t...@atomide.com Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/usb/musb/musb_dsps.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH] usb: musb: dsps: request phy using our device pointer

2015-03-11 Thread Tony Lindgren
* Tony Lindgren t...@atomide.com [150311 08:48]: * Felipe Balbi ba...@ti.com [150311 08:20]: musb shouldn't have of_node and phy phandle is passed to dsps device, not musb's. Reported-by: Tony Lindgren t...@atomide.com Oops, sorry wrong patch, looks like you already have it in the patch I

Re: [PATCH] phy: Add a driver for dm816x USB PHY

2015-03-11 Thread Tony Lindgren
* Paul Bolle pebo...@tiscali.nl [150311 04:16]: On Mon, 2015-03-09 at 13:51 -0700, Tony Lindgren wrote: --- /dev/null +++ b/drivers/phy/phy-dm816x-usb.c @@ -0,0 +1,295 @@ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU

Re: [PATCH] phy: Add a driver for dm816x USB PHY

2015-03-09 Thread Tony Lindgren
* Felipe Balbi ba...@ti.com [150309 14:21]: On Mon, Mar 09, 2015 at 04:17:29PM -0500, Bin Liu wrote: On Mon, Mar 9, 2015 at 4:13 PM, Felipe Balbi ba...@ti.com wrote: On Mon, Mar 09, 2015 at 04:11:28PM -0500, Bin Liu wrote: Hi, On Mon, Mar 9, 2015 at 3:51 PM, Tony Lindgren t

Re: [PATCH] phy: Add a driver for dm816x USB PHY

2015-03-09 Thread Tony Lindgren
* Bin Liu binml...@gmail.com [150309 14:35]: On Mon, Mar 9, 2015 at 4:26 PM, Tony Lindgren t...@atomide.com wrote: * Felipe Balbi ba...@ti.com [150309 14:21]: On Mon, Mar 09, 2015 at 04:17:29PM -0500, Bin Liu wrote: On Mon, Mar 9, 2015 at 4:13 PM, Felipe Balbi ba...@ti.com wrote

[PATCH] phy: Add a driver for dm816x USB PHY

2015-03-09 Thread Tony Lindgren
Add a minimal driver for dm816x USB. Otherwise we can just use the existing musb_am335x and musb_dsps on dm816x. Cc: Brian Hutchinson b.hutch...@gmail.com Cc: Felipe Balbi ba...@ti.com Signed-off-by: Tony Lindgren t...@atomide.com --- /dev/null +++ b/Documentation/devicetree/bindings/phy/dm816x

Re: [PATCH] phy: Add a driver for dm816x USB PHY

2015-03-09 Thread Tony Lindgren
* Bin Liu binml...@gmail.com [150309 14:17]: On Mon, Mar 9, 2015 at 4:13 PM, Felipe Balbi ba...@ti.com wrote: On Mon, Mar 09, 2015 at 04:11:28PM -0500, Bin Liu wrote: Hi, On Mon, Mar 9, 2015 at 3:51 PM, Tony Lindgren t...@atomide.com wrote: Add a minimal driver for dm816x USB

Re: [PATCH v2] Remove deprecated IRQF_DISABLED flag entirely

2015-03-06 Thread Tony Lindgren
usages of this flag. Signed-off-by: Valentin Rothberg valentinrothb...@gmail.com Acked-by: Tony Lindgren t...@atomide.com -- 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

Re: [PATCH 0/8 v4] ARM OMAP2+ GPMC: fixes and bus children

2015-03-05 Thread Tony Lindgren
: Acked-by: Tony Lindgren t...@atomide.com [1]: https://lkml.org/lkml/2015/2/12/495 [2]: https://lkml.org/lkml/2015/2/16/337 [3]: https://lkml.org/lkml/2015/2/24/609 [4]: https://lkml.org/lkml/2015/2/26/387 Robert ABEL (9): ARM OMAP2+ GPMC: don't undef DEBUG ARM OMAP2+ GPMC: add bus

Re: [PATCH 0/8] ARM OMAP2+ GPMC: fixes and bus children

2015-03-05 Thread Tony Lindgren
* Robert Abel ra...@cit-ec.uni-bielefeld.de [150303 05:03]: Hi Roger, On Tue, Mar 3, 2015 at 1:55 PM, Roger Quadros rog...@ti.com wrote: I'm OK with this version. Tony, after you ACK these I will queue them for v4.1. Please use v4 of my patches. The DTS output has been changed and the

Re: [PATCH 4/8] ARM OMAP2+ GPMC: change get_gpmc_timing_reg output for DTS

2015-02-27 Thread Tony Lindgren
* Sergei Shtylyov sergei.shtyl...@cogentembedded.com [150227 06:27]: Hello. On 2/27/2015 5:17 PM, Robert Abel wrote: Documentation/kernel-doc-nano-HOWTO.txt requires colons after the parameter names, doesn't it? Jesus Christ, you guys are killing me... I've already spent way more

Re: [PATCH 2/2] usb: musb: Fix getting a generic phy for musb_dsps

2015-02-09 Thread Tony Lindgren
* George Cherian george.cher...@ti.com [150208 22:02]: Hi Tony, On 02/06/2015 10:53 PM, Tony Lindgren wrote: * George Cherian george.cher...@ti.com [150206 05:05]: Hi Tony, You also need to add similar things in dsps_musb_reset(); Otherwise you might not recover from a BABBLE condition

Re: [PATCH 2/2] usb: musb: Fix getting a generic phy for musb_dsps

2015-02-09 Thread Tony Lindgren
* Bin Liu binml...@gmail.com [150206 10:21]: Tony, On Fri, Feb 6, 2015 at 11:23 AM, Tony Lindgren t...@atomide.com wrote: * George Cherian george.cher...@ti.com [150206 05:05]: Hi Tony, You also need to add similar things in dsps_musb_reset(); Otherwise you might not recover from

Re: [PATCH 2/2] usb: musb: Fix getting a generic phy for musb_dsps

2015-02-06 Thread Tony Lindgren
on MUSB? Regards, Tony 8 -- From: Tony Lindgren t...@atomide.com Date: Wed, 4 Feb 2015 06:28:49 -0800 Subject: [PATCH] usb: musb: Fix getting a generic phy for musb_dsps We still have a combination of legacy phys and generic phys in use so we need to support both types of phy

Re: [PATCH 1/2] usb: musb: Fix use for of_property_read_bool for disabled multipoint

2015-02-05 Thread Tony Lindgren
* Felipe Balbi ba...@ti.com [150205 10:12]: On Thu, Feb 05, 2015 at 08:35:12AM -0800, Tony Lindgren wrote: The value for the multipoint dts property is ignored when parsing with of_property_read_bool, so we currently have multipoint always set as 1 even if value 0 is specified in the dts

[PATCH 1/2] usb: musb: Fix use for of_property_read_bool for disabled multipoint

2015-02-05 Thread Tony Lindgren
as otherwise MUSB will fail to work on devices with Mentor configuration that does not support multipoint. Cc: Brian Hutchinson b.hutch...@gmail.com Signed-off-by: Tony Lindgren t...@atomide.com --- drivers/usb/musb/musb_dsps.c | 7 +-- drivers/usb/musb/omap2430.c | 7 +-- 2 files changed, 10

[PATCH 0/2] MUSB fix for disabled multipoint and generic phy

2015-02-05 Thread Tony Lindgren
Hi, Here are two fixes, the first one probably should be Cc stable. Regards, Tony Tony Lindgren (2): usb: musb: Fix use for of_property_read_bool for disabled multipoint usb: musb: Fix getting a generic phy for musb_dsps drivers/usb/musb/musb_dsps.c | 24

[PATCH 2/2] usb: musb: Fix getting a generic phy for musb_dsps

2015-02-05 Thread Tony Lindgren
We still have a combination of legacy phys and generic phys in use so we need to support both types of phy for musb_dsps.c. Cc: Brian Hutchinson b.hutch...@gmail.com Signed-off-by: Tony Lindgren t...@atomide.com --- drivers/usb/musb/musb_dsps.c | 17 + 1 file changed, 17

Re: [PATCH v2 1/7] extcon: usb-gpio: Introduce gpio usb extcon driver

2015-01-29 Thread Tony Lindgren
* Roger Quadros rog...@ti.com [150129 03:34]: On 28/01/15 19:09, Tony Lindgren wrote: * Roger Quadros rog...@ti.com [150128 04:15]: On 28/01/15 04:19, Chanwoo Choi wrote: I still fail to understand that we need to call disable_irq() in .suspend() and enable_irq() in .resume() can

Re: [PATCH v2 1/7] extcon: usb-gpio: Introduce gpio usb extcon driver

2015-01-28 Thread Tony Lindgren
* Roger Quadros rog...@ti.com [150128 04:15]: On 28/01/15 04:19, Chanwoo Choi wrote: I still fail to understand that we need to call disable_irq() in .suspend() and enable_irq() in .resume() can you point me to any other drivers doing so? You can refer the suspend function in

Re: [PATCH 5/5] ARM: omap2plus_defconfig: Enable PCF857X and EXTCON_GPIO_USB

2015-01-19 Thread Tony Lindgren
* Tony Lindgren t...@atomide.com [150119 10:52]: * Roger Quadros rog...@ti.com [150119 09:55]: Both are needed for USB cable type detection on dra7-evm. Signed-off-by: Roger Quadros rog...@ti.com --- arch/arm/configs/omap2plus_defconfig | 2 ++ 1 file changed, 2 insertions

Re: [PATCH 5/5] ARM: omap2plus_defconfig: Enable PCF857X and EXTCON_GPIO_USB

2015-01-19 Thread Tony Lindgren
* Roger Quadros rog...@ti.com [150119 09:55]: Both are needed for USB cable type detection on dra7-evm. Signed-off-by: Roger Quadros rog...@ti.com --- arch/arm/configs/omap2plus_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/omap2plus_defconfig

[PATCH] usb: musb: Fix randconfig build issues for Kconfig options

2014-12-01 Thread Tony Lindgren
: Linus Walleij linus.wall...@linaro.org Reported-by: Jim Davis jim.ep...@gmail.com Signed-off-by: Tony Lindgren t...@atomide.com --- Felipe, this is against current linux next for v3.19 --- a/drivers/usb/musb/Kconfig +++ b/drivers/usb/musb/Kconfig @@ -72,6 +72,8 @@ config USB_MUSB_DA8XX config

Re: [PATCH 2/2] usb: musb: blackfin: fix build break

2014-11-26 Thread Tony Lindgren
a build regression. Fix that here Oops sorry about the typo. I did not have blackin compilers here either. Regards, Tony Cc: Tony Lindgren t...@atomide.com Reported-by: Fengguang Wu fengguang...@intel.com Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/usb/musb/blackfin.c | 2 +- 1

[PATCH 8/8] usb: musb: Use IS_ENABLED for tusb6010

2014-11-24 Thread Tony Lindgren
This removes the ifdef clutter a bit and saves few lines. It also makes it easier to detect the remaining places where we have conditional building of code done based on if defined for things like DMA. Signed-off-by: Tony Lindgren t...@atomide.com --- drivers/usb/musb/musb_core.c | 2

[PATCH 4/8] usb: musb: Change to use new IO access

2014-11-24 Thread Tony Lindgren
Change to use new IO access. This allows us to build in multiple MUSB glue layers. Cc: Fabio Baltieri fabio.balti...@linaro.org Cc: Lee Jones lee.jo...@linaro.org Cc: Linus Walleij linus.wall...@linaro.org Signed-off-by: Tony Lindgren t...@atomide.com --- drivers/usb/musb/am35x.c | 3

[PATCH 0/8] Allow multiple MUSB glue layers to be built in

2014-11-24 Thread Tony Lindgren
-in. Note that this series still does not sort out the DMA related issues, I have a series in works for that too. But that will take some more debugging. So far this has been tested to work on omap3, am335x and tusb6010. Regards, Tony Tony Lindgren (8): usb: musb: Add function pointers for IO

[PATCH 7/8] usb: musb: Allow multiple glue layers to be built in

2014-11-24 Thread Tony Lindgren
There's no reason any longer to keep it as a choice now that the IO access has been fixed. Signed-off-by: Tony Lindgren t...@atomide.com --- drivers/usb/musb/Kconfig | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig index

[PATCH 5/8] usb: musb: Change end point selection to use new IO access

2014-11-24 Thread Tony Lindgren
-by: Tony Lindgren t...@atomide.com --- drivers/usb/musb/am35x.c | 1 + drivers/usb/musb/da8xx.c | 1 + drivers/usb/musb/jz4740.c| 1 + drivers/usb/musb/musb_core.c | 38 +- drivers/usb/musb/musb_core.h | 37

[PATCH 3/8] usb: musb: Populate new IO functions for blackfin

2014-11-24 Thread Tony Lindgren
Populate new IO functions for blackfin Cc: Bryan Wu coolo...@gmail.com Signed-off-by: Tony Lindgren t...@atomide.com --- drivers/usb/musb/blackfin.c | 43 +++ 1 file changed, 43 insertions(+) diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb

[PATCH 2/8] usb: musb: Populate new IO functions for tusb6010

2014-11-24 Thread Tony Lindgren
Let's populate the new IO functions for tusb6010 but not use them yet. Signed-off-by: Tony Lindgren t...@atomide.com --- drivers/usb/musb/tusb6010.c | 41 + 1 file changed, 41 insertions(+) diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb

Re: [ANNOUNCE] tree will be closed for v3.19 today

2014-11-24 Thread Tony Lindgren
* Felipe Balbi ba...@ti.com [141124 09:40]: Hi, I'm caught up with my linux-usb queue and I'm right now running my randbuild tests. I know Tony Lindgren has some pretty important cleanup work coming for MUSB, so I'll wait until the end of the day for that. Tony, if you can't manage

[PATCH 6/8] usb: musb: Pass fifo_mode in platform data

2014-11-24 Thread Tony Lindgren
-off-by: Tony Lindgren t...@atomide.com --- drivers/usb/musb/blackfin.c | 1 + drivers/usb/musb/da8xx.c | 1 + drivers/usb/musb/jz4740.c| 1 + drivers/usb/musb/musb_core.c | 21 ++--- drivers/usb/musb/ux500.c | 1 + 5 files changed, 10 insertions(+), 15 deletions

[PATCH 1/8] usb: musb: Add function pointers for IO access functions

2014-11-24 Thread Tony Lindgren
to use the current ops as that's really platform_data and and set as a const. This should allow eventually adding function pointers also for the DMA code to struct musb_io, but that's a whole different set of patches. For now, let's just fix the PIO access. Signed-off-by: Tony Lindgren t

Re: [PATCH 4/8] usb: musb: Change to use new IO access

2014-11-24 Thread Tony Lindgren
* Felipe Balbi ba...@ti.com [141124 11:13]: On Mon, Nov 24, 2014 at 11:05:02AM -0800, Tony Lindgren wrote: @@ -312,10 +345,40 @@ void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) ioread8_rep(fifo, dst, len); } } -#endif -#endif /* normal PIO

Re: [PATCH 5/8] usb: musb: Change end point selection to use new IO access

2014-11-24 Thread Tony Lindgren
* Apelete Seketeli apel...@seketeli.net [141124 15:40]: Hi Tony, Thanks for the patch. On Mon, Nov-24-2014 at 11:05:03 AM -0800, Tony Lindgren wrote: This allows the endpoints to work when multiple MUSB glue layers are built in. Applied on top of 3.18-rc6 mainline and tested

Re: USB OTG doesn't work in HOST mode on OMAP3 processor on 3.18-rc5

2014-11-19 Thread Tony Lindgren
* Enric Balletbo Serra eballe...@gmail.com [141119 03:14]: 2014-11-18 16:42 GMT+01:00 Tony Lindgren t...@atomide.com: Checked again, and no luck. It's very weird because from the OTG point of view, OTG is exactly the same between Beagleboard-XM and IGEPv2. Can you confirm that you're using

Re: USB OTG doesn't work in HOST mode on OMAP3 processor on 3.18-rc5

2014-11-18 Thread Tony Lindgren
* Enric Balletbo Serra eballe...@gmail.com [141118 01:04]: Hi Tony, 2014-11-17 19:04 GMT+01:00 Tony Lindgren t...@atomide.com: Just tested v3.18-rc5 with beagleboard xm, and the host mode enumerates the devices, then may fail with insufficient bus power at least for the WLAN device I

Re: USB OTG doesn't work in HOST mode on OMAP3 processor on 3.18-rc5

2014-11-17 Thread Tony Lindgren
* Enric Balletbo Serra eballe...@gmail.com [141117 07:15]: Hi all, I'm trying to use the USB OTG driver of OMAP3 processor in HOST mode when it's configured in dual role mode (CONFIG_USB_MUSB_DUAL_ROLE=y) The test case that I'm trying to solve is as follows. 1) Boot the board. 2) Put

<    1   2   3   4   5   6   7   >