[PATCH] usb: dwc3: Set DWC3 context's mode based on selected mode.

2013-03-02 Thread Vivek Gautam
-off-by: Vivek Gautam gautam.vi...@samsung.com --- Changes from RFC patch usb: dwc3: Set GCTL.PrtCapDir based on selected mode - Setting the mode in dwc3 context structure based on selected mode in machine, rather than programming PrtCapDir drivers/usb/dwc3/core.c |7 ++- 1 files

[PATCH v2 02/10] USB: dwc3: Adjust runtime pm to allow autosuspend

2013-03-02 Thread Vivek Gautam
The current code in the dwc3 probe effectively disables runtime pm from ever working because it calls a get() that was never put() until device removal. Change the runtime pm code to match the standard formula and allow runtime pm to function. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com

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

2013-02-28 Thread Vivek Gautam
Hi, On Thu, Jan 31, 2013 at 9:08 PM, Felipe Balbi ba...@ti.com wrote: On Thu, Jan 31, 2013 at 09:00:37PM +0530, Vivek Gautam wrote: Hi Felipe, On Thu, Jan 31, 2013 at 8:55 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Thu, Jan 31, 2013 at 08:53:27PM +0530, Vivek Gautam wrote: Moreover

Re: [PATCH 2/4] USB: dwc3: Adjust runtime pm the dwc3 driver to allow runtime suspend

2013-02-27 Thread Vivek Gautam
Hi Felipe, On Wed, Feb 27, 2013 at 1:36 PM, Felipe Balbi ba...@ti.com wrote: Hi, sorry for the delay That's alright ;-) On Mon, Jan 28, 2013 at 07:06:56PM +0530, Vivek Gautam wrote: Hi Felipe, On Mon, Jan 28, 2013 at 5:15 PM, Felipe Balbi ba...@ti.com wrote: On Mon, Jan 28, 2013

Re: [PATCH RFC] usb: dwc3: Set GCTL.PrtCapDir based on selected mode.

2013-02-25 Thread Vivek Gautam
Hi Balbi, On Mon, Feb 25, 2013 at 1:47 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Tue, Feb 05, 2013 at 07:15:58PM +0530, Vivek Gautam wrote: Now that machines may select the mode of working of DWC3, we can set the Port capability direction based on selected mode. Signed-off-by: Vivek

Re: [PATCH RFC] usb: dwc3: Set GCTL.PrtCapDir based on selected mode.

2013-02-25 Thread Vivek Gautam
On Mon, Feb 25, 2013 at 2:49 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Mon, Feb 25, 2013 at 02:21:46PM +0530, Vivek Gautam wrote: @@ -514,6 +511,14 @@ static int dwc3_probe(struct platform_device *pdev) } dwc-mode = mode; +#if IS_ENABLED(CONFIG_USB_DWC3_HOST

Re: MUSB regression in linux next at least for pandboard

2013-02-06 Thread Vivek Gautam
Hi Tony, On Fri, Oct 5, 2012 at 9:57 PM, Tony Lindgren t...@atomide.com wrote: * Tony Lindgren t...@atomide.com [121004 18:41]: Also on the EHCI port, I've seen issues where unplugging the cable hangs kernel with an infinite loop. But that happens only occasionally, sorry does not

[PATCH RFC] usb: dwc3: Set GCTL.PrtCapDir based on selected mode.

2013-02-05 Thread Vivek Gautam
Now that machines may select the mode of working of DWC3, we can set the Port capability direction based on selected mode. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- drivers/usb/dwc3/core.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers

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 ba...@ti.com 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 gautamvivek1...@gmail.com wrote: Hi Kishon, On Fri, Feb 1, 2013 at 10:51 AM, kishon kis...@ti.com

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

2013-01-31 Thread Vivek Gautam
platform specific device tree node. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- Based on 'usb-next'. drivers/usb/dwc3/core.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 094..75439c0 100644

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

2013-01-31 Thread Vivek Gautam
Hi Kishon, On Thu, Jan 31, 2013 at 5:04 PM, kishon kis...@ti.com wrote: Hi, Thanks for your quick help. On Thursday 31 January 2013 04:50 PM, Vivek Gautam wrote: With device tree support in place for dwc3-core layer, it gets PHY from synopsis-dwc3 node. Some controllers may not have

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

2013-01-31 Thread Vivek Gautam
Hi Felipe, On Thu, Jan 31, 2013 at 8:55 PM, Felipe Balbi ba...@ti.com wrote: Hi, 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_dev(), and not using

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

2013-01-31 Thread Vivek Gautam
Hi Kishon, On Fri, Feb 1, 2013 at 10:51 AM, kishon kis...@ti.com wrote: Hi, On Thursday 31 January 2013 09:08 PM, Felipe Balbi wrote: On Thu, Jan 31, 2013 at 09:00:37PM +0530, Vivek Gautam wrote: Hi Felipe, On Thu, Jan 31, 2013 at 8:55 PM, Felipe Balbi ba...@ti.com wrote: Hi

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

2013-01-31 Thread Vivek Gautam
Hi Balbi, On Fri, Feb 1, 2013 at 11:52 AM, Vivek Gautam gautamvivek1...@gmail.com wrote: Hi Kishon, On Fri, Feb 1, 2013 at 10:51 AM, kishon kis...@ti.com wrote: Hi, On Thursday 31 January 2013 09:08 PM, Felipe Balbi wrote: On Thu, Jan 31, 2013 at 09:00:37PM +0530, Vivek Gautam wrote

[PATCH 0/4] usb: dwc3/xhci: Enable runtime power management

2013-01-28 Thread Vivek Gautam
: Add PHY support for USB 3.0 controller Vivek Gautam (4): usb: xhci: Enable runtime pm in xhci-plat USB: dwc3: Adjust runtime pm the dwc3 driver to allow runtime suspend usb: dwc3: exynos: Enable runtime power management usb: phy: samsung: Enable runtime power management on samsung-usb3

[PATCH 1/4] usb: xhci: Enable runtime pm in xhci-plat

2013-01-28 Thread Vivek Gautam
By enabling runtime pm in this driver is allows users of xhci-plat to enter into runtime pm. This is not full runtime pm support (AKA xhci-plat doesn't actually power anything off when in runtime suspend mode) but just basic enablement. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com Signed

[PATCH 2/4] USB: dwc3: Adjust runtime pm the dwc3 driver to allow runtime suspend

2013-01-28 Thread Vivek Gautam
on the DWC3 device in that the port isn't put into a lower power mode when not used. However it does allow users of dwc3 (like dwc3-exynos) to do some amount of runtime power management. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com Signed-off-by: Doug Anderson diand...@chromium.org --- drivers

[PATCH 3/4] usb: dwc3: exynos: Enable runtime power management

2013-01-28 Thread Vivek Gautam
Enabling runtime power management on dwc3-exynos to save power and allow its PHY's power to be managed at runtime. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- drivers/usb/dwc3/dwc3-exynos.c | 47 1 files changed, 47 insertions(+), 0

[PATCH 4/4] usb: phy: samsung: Enable runtime power management on samsung-usb3

2013-01-28 Thread Vivek Gautam
Enabling runtime power management support on samsung-usb3 phy and further adding support to turn off the PHY ref_clk PLL. It thereby requires PHY ref_clk to be switched between internal core clock and external PLL clock. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- drivers/usb/phy

Re: [PATCH 3/4] usb: dwc3: exynos: Enable runtime power management

2013-01-28 Thread Vivek Gautam
Hi Balbi, On Mon, Jan 28, 2013 at 5:17 PM, Felipe Balbi ba...@ti.com wrote: On Mon, Jan 28, 2013 at 05:12:27PM +0530, Vivek Gautam wrote: Enabling runtime power management on dwc3-exynos to save power and allow its PHY's power to be managed at runtime. Signed-off-by: Vivek Gautam gautam.vi

Re: [PATCH 3/4] usb: dwc3: exynos: Enable runtime power management

2013-01-28 Thread Vivek Gautam
On Mon, Jan 28, 2013 at 5:42 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Mon, Jan 28, 2013 at 05:28:30PM +0530, Vivek Gautam wrote: +static int dwc3_exynos_runtime_resume(struct device *dev) +{ + struct dwc3_exynos *exynos = dev_get_drvdata(dev); + struct platform_device

Re: [PATCH 4/4] usb: phy: samsung: Enable runtime power management on samsung-usb3

2013-01-28 Thread Vivek Gautam
Hi Felipe, On Mon, Jan 28, 2013 at 5:39 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Mon, Jan 28, 2013 at 05:12:28PM +0530, Vivek Gautam wrote: Enabling runtime power management support on samsung-usb3 phy and further adding support to turn off the PHY ref_clk PLL. It thereby requires PHY

Re: [PATCH 4/4] usb: phy: samsung: Enable runtime power management on samsung-usb3

2013-01-28 Thread Vivek Gautam
Hi Felipe, On Mon, Jan 28, 2013 at 6:37 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Mon, Jan 28, 2013 at 06:34:15PM +0530, Vivek Gautam wrote: @@ -65,7 +67,22 @@ static u32 samsung_usb3_phy_set_refclk(struct samsung_usbphy *sphy) return reg; } -static int

Re: [PATCH 2/4] USB: dwc3: Adjust runtime pm the dwc3 driver to allow runtime suspend

2013-01-28 Thread Vivek Gautam
Hi Felipe, On Mon, Jan 28, 2013 at 5:15 PM, Felipe Balbi ba...@ti.com wrote: On Mon, Jan 28, 2013 at 05:12:26PM +0530, Vivek Gautam wrote: The current code in the dwc3 probe effectively disables runtime pm from ever working because it calls a get() that was never put() until device removal

[PATCH 0/2] usb: dwc3: Change platform device IDs to AUTO

2013-01-25 Thread Vivek Gautam
of Felipe Balbi's usb tree. Vivek Gautam (2): usb: dwc3: exynos/omap: Change platform device IDs for no_op_xceive to AUTO usb: dwc3: host: Change platform device ID for xhci-hcd to AUTO drivers/usb/dwc3/dwc3-exynos.c |4 ++-- drivers/usb/dwc3/dwc3-omap.c |4 ++-- drivers/usb/dwc3

[PATCH 1/2] usb: dwc3: exynos/omap: Change platform device IDs for no_op_xceive to AUTO

2013-01-25 Thread Vivek Gautam
Multiple dwc3 probe calls try to allocate no_op_xceive platform device. Having static IDs for these will throw sysfs error -EEXIST. Changing these static platform device IDs to AUTO to enable multiple dwc3 controller support on a SoC. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com

[PATCH 2/2] usb: dwc3: host: Change platform device ID for xhci-hcd to AUTO

2013-01-25 Thread Vivek Gautam
Multiple dwc3 controllers will try to allocate multiple xhci-hcd interfaces. Changing platform device IDs from NONE to AUTO to support such cases. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- drivers/usb/dwc3/host.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[PATCH] usb: phy: samsung: Remove __devinit, __devexit_p and __exit annotations

2013-01-21 Thread Vivek Gautam
Dropping __devinit, __devexit_p, __exit annotations since they are nop and no longer supported. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- drivers/usb/phy/samsung-usbphy.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/phy/samsung-usbphy.c

Re: [RFC PATCH 2/6] ARM: OMAP: USB: Add phy binding information

2013-01-17 Thread Vivek Gautam
Hi Kishon, On Wed, Jan 16, 2013 at 8:30 PM, Kishon Vijay Abraham I kis...@ti.com wrote: This is in preparation for 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

Re: [RFC PATCH 2/6] ARM: OMAP: USB: Add phy binding information

2013-01-17 Thread Vivek Gautam
Hi Kishon, Thanks for the explanation. On Thu, Jan 17, 2013 at 6:01 PM, kishon kis...@ti.com wrote: Hi, On Thursday 17 January 2013 05:41 PM, Vivek Gautam wrote: Hi Kishon, On Wed, Jan 16, 2013 at 8:30 PM, Kishon Vijay Abraham I kis...@ti.com wrote: This is in preparation

[PATCH] usb: dwc3: Remove dwc3 dependency on host AND gadget.

2013-01-15 Thread Vivek Gautam
are enabled. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com CC: Doug Anderson diand...@chromium.org --- This patch is outcome of discussion happened on: [PATCH RFC] usb: dwc3: Remove dwc3 dependency on gadget http://comments.gmane.org/gmane.linux.ports.arm.omap/91328 Changes from RFC

Re: [PATCH RFC] usb: dwc3: Remove dwc3 dependency on gadget.

2013-01-14 Thread Vivek Gautam
Hi Felipe, On Mon, Jan 14, 2013 at 1:27 PM, Felipe Balbi ba...@ti.com wrote: On Fri, Jan 11, 2013 at 07:58:23PM +0530, Vivek Gautam wrote: Hi, On Fri, Jan 11, 2013 at 7:29 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Fri, Jan 11, 2013 at 07:13:55PM +0530, Vivek Gautam wrote: On Thu

Re: [PATCH RFC] usb: dwc3: Remove dwc3 dependency on gadget.

2013-01-11 Thread Vivek Gautam
Hi Felipe, On Thu, Jan 10, 2013 at 6:32 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Mon, Dec 24, 2012 at 07:28:33PM +0530, Vivek Gautam wrote: DWC3 controller curretly depends on CONFIG_USB and CONFIG_USB_GADGET. Some hardware may like to use only host feature on dwc3. So, removing

Re: [PATCH RFC] usb: dwc3: Remove dwc3 dependency on gadget.

2013-01-11 Thread Vivek Gautam
Hi, On Fri, Jan 11, 2013 at 7:29 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Fri, Jan 11, 2013 at 07:13:55PM +0530, Vivek Gautam wrote: On Thu, Jan 10, 2013 at 6:32 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Mon, Dec 24, 2012 at 07:28:33PM +0530, Vivek Gautam wrote: DWC3 controller

[PATCH RFC] usb: dwc3: Remove dwc3 dependency on gadget.

2012-12-24 Thread Vivek Gautam
DWC3 controller curretly depends on CONFIG_USB and CONFIG_USB_GADGET. Some hardware may like to use only host feature on dwc3. So, removing the dependency of USB_DWC3 on USB_GADGET and further modulating the dwc3 core to enable gadget features only with USB_GADGET. Signed-off-by: Vivek Gautam

[PATCH v3 0/2] USB: dwc3-exynos: Adding device tree support

2012-11-03 Thread Vivek Gautam
Changes from v2: - Respined for 'dwc3' branch on Felipe's usb tree. Changes from v1: - Removed setting-up of dev.coherent_dma_mask, since of/platform.c itself takes care of it. Vivek Gautam (2): USB: dwc3-exynos: Add support for device tree USB: DWC3: EXYNOS: Remove platform data

[PATCH v3 1/2] USB: dwc3-exynos: Add support for device tree

2012-11-03 Thread Vivek Gautam
This patch adds support to parse probe data for dwc3-exynos driver using device tree. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- drivers/usb/dwc3/dwc3-exynos.c | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/drivers/usb/dwc3/dwc3

[PATCH v3 2/2] USB: DWC3: EXYNOS: Remove platform data for dwc3-exynos

2012-11-03 Thread Vivek Gautam
We are removing plat data which was used till now to init and exit phy. We no longer need this since dwc3-core takes care of initializing and shutting-down the phy using usb_phy_init() and usb_phy_shutdown(). Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- drivers/usb/dwc3/dwc3-exynos.c

Re: [PATCH v2 2/2] USB: DWC3: EXYNOS: Remove platform data for dwc3-exynos

2012-10-31 Thread Vivek Gautam
Hi all, On Tue, Oct 16, 2012 at 2:15 PM, Vivek Gautam gautam.vi...@samsung.com wrote: We are removing plat data which was used till now to init and exit phy. We no longer need this since dwc3-core takes care of initializing and shutting-down the phy using usb_phy_init() and usb_phy_shutdown

Re: [PATCH v2 1/2] USB: dwc3-exynos: Add support for device tree

2012-10-31 Thread Vivek Gautam
Hi Felipe, On Wed, Oct 31, 2012 at 7:08 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Tue, Oct 16, 2012 at 02:15:56PM +0530, Vivek Gautam wrote: This patch adds support to parse probe data for dwc3-exynos driver using device tree. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com does

Re: [PATCH v2 1/2] USB: dwc3-exynos: Add support for device tree

2012-10-25 Thread Vivek Gautam
Hi, On Tue, Oct 16, 2012 at 3:38 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Tue, Oct 16, 2012 at 03:36:43PM +0530, kishon wrote: Hi, On Tuesday 16 October 2012 03:23 PM, Felipe Balbi wrote: On Tue, Oct 16, 2012 at 02:15:56PM +0530, Vivek Gautam wrote: This patch adds support to parse

[PATCH v2 0/2] USB: dwc3-exynos: Adding device tree support

2012-10-16 Thread Vivek Gautam
Changes from v1: - Removed setting-up of dev.coherent_dma_mask, since of/platform.c itself takes care of it. Vivek Gautam (2): USB: dwc3-exynos: Add support for device tree USB: DWC3: EXYNOS: Remove platform data for dwc3-exynos drivers/usb/dwc3/dwc3-exynos.c | 36

[PATCH v2 2/2] USB: DWC3: EXYNOS: Remove platform data for dwc3-exynos

2012-10-16 Thread Vivek Gautam
We are removing plat data which was used till now to init and exit phy. We no longer need this since dwc3-core takes care of initializing and shutting-down the phy using usb_phy_init() and usb_phy_shutdown(). Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- drivers/usb/dwc3/dwc3-exynos.c

[PATCH v2 1/2] USB: dwc3-exynos: Add support for device tree

2012-10-16 Thread Vivek Gautam
This patch adds support to parse probe data for dwc3-exynos driver using device tree. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- drivers/usb/dwc3/dwc3-exynos.c | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/drivers/usb/dwc3/dwc3

Re: [PATCH] USB: DWC3: Shutdown usb_phy when removing the device

2012-10-15 Thread Vivek Gautam
Hi Felipe, On Mon, Oct 15, 2012 at 5:44 PM, Felipe Balbi ba...@ti.com wrote: On Sat, Oct 13, 2012 at 07:20:18PM +0530, Vivek Gautam wrote: We do usb_phy_init() while doing core_init() in probe, so adding usb_phy_shutdown() when we do core_exit() while removing the device. Signed-off

Re: [PATCH] USB: DWC3: Shutdown usb_phy when removing the device

2012-10-15 Thread Vivek Gautam
Hi, On Mon, Oct 15, 2012 at 6:54 PM, Felipe Balbi ba...@ti.com wrote: On Mon, Oct 15, 2012 at 06:56:13PM +0530, Vivek Gautam wrote: Hi Felipe, On Mon, Oct 15, 2012 at 5:44 PM, Felipe Balbi ba...@ti.com wrote: On Sat, Oct 13, 2012 at 07:20:18PM +0530, Vivek Gautam wrote: We do usb_phy_init

[PATCH 0/2] USB: dwc3-exynos: Adding device tree support

2012-10-13 Thread Vivek Gautam
This patchset adds support to parse the dwc3-exynos device using device tree. It also removes the platform data and phy_init() or phy_exit() calls which is no longer needed. Based and tested on 'usb-next' branch of greg's tree. Vivek Gautam (2): USB: dwc3-exynos: Add support for device tree

[PATCH 1/2] USB: dwc3-exynos: Add support for device tree

2012-10-13 Thread Vivek Gautam
This patch adds support to parse probe data for dwc3 driver for exynos using device tree Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- drivers/usb/dwc3/dwc3-exynos.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/drivers/usb/dwc3/dwc3

[PATCH 2/2] USB: DWC3: EXYNOS: Remove platform data for dwc3-exynos

2012-10-13 Thread Vivek Gautam
We are removing plat data which was used till now to init and exit phy. We no longer need this since dwc3-core takes care of initializing and shutting-down the phy using usb_phy_init() and usb_phy_shutdown(). Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- drivers/usb/dwc3/dwc3-exynos.c

[PATCH] USB: DWC3: Shutdown usb_phy when removing the device

2012-10-13 Thread Vivek Gautam
We do usb_phy_init() while doing core_init() in probe, so adding usb_phy_shutdown() when we do core_exit() while removing the device. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- drivers/usb/dwc3/core.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git

<    1   2