RE: [linux-devel] [PATCH 1/3] dts: usb3: Add configure-gfladj property to USB3 nod

2017-08-11 Thread Sriram Dash
>From: linux-devel-boun...@gforge.freescale.net [mailto:linux-devel- >boun...@gforge.freescale.net] On Behalf Of yinbo@nxp.com >Subject: [linux-devel] [PATCH 1/3] dts: usb3: Add configure-gfladj property to >USB3 >nod > >From: "yinbo.zhu" > >Signed-off-by: yinbo.zhu

RE: [PATCH] fsl/usb: Workarourd for USB erratum-A005697

2016-11-24 Thread Sriram Dash
>From: Changming Huang [mailto:jerry.hu...@nxp.com] >As per USB specification, in the Suspend state, the status bit does not change >until >the port is suspended. However, there may be a delay in suspending a port if >there >is a transaction currently in progress on the bus. > >In the USBDR

[PATCH v5 1/6] usb: separate out sysdev pointer from usb_bus

2016-11-17 Thread Sriram Dash
anagement) and a new pointer (used for DMA, DT enumeration and phy lookup) probably covers all that we really need. Signed-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> Tested-by: Baolin Wang <baolin.w...@linaro.org> Cc: Felipe Balbi <fe

[PATCH v5 5/6] usb: dwc3: use bus->sysdev for DMA configuration

2016-11-17 Thread Sriram Dash
From: Arnd Bergmann <a...@arndb.de> The dma ops for dwc3 devices are not set properly. So, use a physical device sysdev, which will be inherited from parent, to set the hardware / firmware parameters like dma. Signed-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Da

[PATCH v5 4/6] usb: xhci: use bus->sysdev for DMA configuration

2016-11-17 Thread Sriram Dash
: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> Tested-by: Baolin Wang <baolin.w...@linaro.org> --- Changes in v5: - No update Changes in v4: - No update Changes in v3: - No update Changes in v2: - Separate out xhci driver changes apart dri

[PATCH v5 3/6] usb: ehci: fsl: use bus->sysdev for DMA configuration

2016-11-17 Thread Sriram Dash
From: Arnd Bergmann <a...@arndb.de> For the dual role ehci fsl driver, sysdev will handle the dma config. Signed-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> --- Changes in v5: - No update Changes in v4: - No update Changes in v

[PATCH v5 2/6] usb: chipidea: use bus->sysdev for DMA configuration

2016-11-17 Thread Sriram Dash
From: Arnd Bergmann <a...@arndb.de> Set the dma for chipidea from sysdev. This is inherited from its parent node. Also, do not set dma mask for child as it is not required now. Signed-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> Ac

[PATCH v5 6/6] usb: dwc3: Do not set dma coherent mask

2016-11-17 Thread Sriram Dash
From: Arnd Bergmann <a...@arndb.de> The dma mask is correctly set up by the DT probe function, no need to override it any more. Signed-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> --- Changes in v5: - No update Changes in v4: -

[PATCH v5 0/6] inherit dma configuration from parent dev

2016-11-17 Thread Sriram Dash
For xhci-hcd platform device, all the DMA parameters are not configured properly, notably dma ops for dwc3 devices. The idea here is that you pass in the parent of_node along with the child device pointer, so it would behave exactly like the parent already does. The difference is that it also

RE: [upstream-release] [PATCH 1/2] drivers: usb: phy: Add qoriq usb 3.0 phy driver support

2016-11-16 Thread Sriram Dash
>From: Scott Wood >On 11/15/2016 06:39 AM, Sriram Dash wrote: >>> From: Scott Wood >>> On 11/13/2016 11:27 PM, Sriram Dash wrote: >>>> diff --git >>>> a/Documentation/devicetree/bindings/phy/phy-qoriq-usb3.txt >>>> b/Documentation/d

RE: [PATCH 1/2] drivers: usb: phy: Add qoriq usb 3.0 phy driver support

2016-11-16 Thread Sriram Dash
>From: Rob Herring [mailto:r...@kernel.org] >On Mon, Nov 14, 2016 at 10:56:54AM +0530, Sriram Dash wrote: >> Adds qoriq usb 3.0 phy driver support for LS1043A platform. >> Describes the qoriq usb 2.0 phy driver binding, currently used for >> LS1043A platform. >>

[PATCH v4 2/6] usb: chipidea: use bus->sysdev for DMA configuration

2016-11-15 Thread Sriram Dash
From: Arnd Bergmann <a...@arndb.de> Set the dma for chipidea from sysdev. This is inherited from its parent node. Also, do not set dma mask for child as it is not required now. Signed-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> Ac

[PATCH v4 4/6] usb: xhci: use bus->sysdev for DMA configuration

2016-11-15 Thread Sriram Dash
: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> Tested-by: Baolin Wang <baolin.w...@linaro.org> --- Changes in v4: - No update Changes in v3: - No update Changes in v2: - Separate out xhci driver changes apart drivers/usb/host/xhci-mem.c | 12 +

[PATCH v4 3/6] usb: ehci: fsl: use bus->sysdev for DMA configuration

2016-11-15 Thread Sriram Dash
From: Arnd Bergmann <a...@arndb.de> For the dual role ehci fsl driver, sysdev will handle the dma config. Signed-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> --- Changes in v4: - No update Changes in v3: - fix compile errors Chan

[PATCH v4 5/6] usb: dwc3: use bus->sysdev for DMA configuration

2016-11-15 Thread Sriram Dash
From: Arnd Bergmann <a...@arndb.de> The dma ops for dwc3 devices are not set properly. So, use a physical device sysdev, which will be inherited from parent, to set the hardware / firmware parameters like dma. Signed-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Da

[PATCH v4 6/6] usb: dwc3: Do not set dma coherent mask

2016-11-15 Thread Sriram Dash
From: Arnd Bergmann <a...@arndb.de> The dma mask is correctly set up by the DT probe function, no need to override it any more. Signed-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> --- Changes in v4: - No update Changes in v3: -

[PATCH v4 0/6] inherit dma configuration from parent dev

2016-11-15 Thread Sriram Dash
For xhci-hcd platform device, all the DMA parameters are not configured properly, notably dma ops for dwc3 devices. The idea here is that you pass in the parent of_node along with the child device pointer, so it would behave exactly like the parent already does. The difference is that it also

[PATCH v4 1/6] usb: separate out sysdev pointer from usb_bus

2016-11-15 Thread Sriram Dash
anagement) and a new pointer (used for DMA, DT enumeration and phy lookup) probably covers all that we really need. Signed-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> Tested-by: Baolin Wang <baolin.w...@linaro.org> Cc: Felipe Balbi <fe

RE: [PATCH v3 5/6] usb: dwc3: use bus->sysdev for DMA configuration

2016-11-14 Thread Sriram Dash
>From: Peter Chen [mailto:hzpeterc...@gmail.com] >On Fri, Nov 11, 2016 at 09:31:09PM +0100, Arnd Bergmann wrote: >> On Thursday, November 10, 2016 1:02:11 PM CET Felipe Balbi wrote: >> > > @@ -123,8 +119,8 @@ int dwc3_host_init(struct dwc3 *dwc) void >> > > dwc3_host_exit(struct dwc3 *dwc) { >>

[PATCH 1/2] drivers: usb: phy: Add qoriq usb 3.0 phy driver support

2016-11-13 Thread Sriram Dash
Adds qoriq usb 3.0 phy driver support for LS1043A platform. Describes the qoriq usb 2.0 phy driver binding, currently used for LS1043A platform. Signed-off-by: Sriram Dash <sriram.d...@nxp.com> --- .../devicetree/bindings/phy/phy-qoriq-usb3.txt | 36 drivers/phy/K

[PATCH 2/2] arm64: dts: ls1043a: Enable USB 3.0 phy driver

2016-11-13 Thread Sriram Dash
This patch adds entries in dts to enable USB 3.0 PHY driver. Signed-off-by: Sriram Dash <sriram.d...@nxp.com> --- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 33 ++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi

[PATCH 0/2] drivers: usb: phy: Add qoriq usb 3.0 phy driver support

2016-11-13 Thread Sriram Dash
Adds qoriq usb 3.0 phy driver support for LS1043A platform. Describes the qoriq usb 2.0 phy driver binding, currently used for LS1043A platform. Adds entries in dts to enable USB 3.0 phy driver. Sriram Dash (2): drivers: usb: phy: Add qoriq usb 3.0 phy driver support arm64: dts: ls1043a

RE: [PATCH v3 5/6] usb: dwc3: use bus->sysdev for DMA configuration

2016-11-11 Thread Sriram Dash
>From: Baolin Wang [mailto:baolin.w...@linaro.org] > >Hi, > >On 10 November 2016 at 16:20, Sriram Dash <sriram.d...@nxp.com> wrote: >> From: Arnd Bergmann <a...@arndb.de> >> >> The dma ops for dwc3 devices are not set properly. So, use a physical &

RE: [PATCH v3 5/6] usb: dwc3: use bus->sysdev for DMA configuration

2016-11-11 Thread Sriram Dash
>From: Felipe Balbi [mailto:felipe.ba...@linux.intel.com] > > >Hi, Hello Felipe, > >Sriram Dash <sriram.d...@nxp.com> writes: >> From: Arnd Bergmann <a...@arndb.de> >> >> The dma ops for dwc3 devices are not set properly. So, use a physical >&

[PATCH v3 6/6] usb: dwc3: Do not set dma coherent mask

2016-11-10 Thread Sriram Dash
From: Arnd Bergmann <a...@arndb.de> The dma mask is correctly set up by the DT probe function, no need to override it any more. Signed-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> --- Changes in v3: - No update Changes in v2:

[PATCH v3 4/6] usb: xhci: use bus->sysdev for DMA configuration

2016-11-10 Thread Sriram Dash
: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> --- Changes in v3: - No update Changes in v2: - Separate out xhci driver changes apart drivers/usb/host/xhci-mem.c | 12 ++-- drivers/usb/host/xhci-plat.c | 33 ++---

[PATCH v3 2/6] usb: chipidea: use bus->sysdev for DMA configuration

2016-11-10 Thread Sriram Dash
From: Arnd Bergmann <a...@arndb.de> Set the dma for chipidea from sysdev. This is inherited from its parent node. Also, do not set dma mask for child as it is not required now. Signed-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> Ac

[PATCH v3 1/6] usb: separate out sysdev pointer from usb_bus

2016-11-10 Thread Sriram Dash
anagement) and a new pointer (used for DMA, DT enumeration and phy lookup) probably covers all that we really need. Signed-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> Cc: Felipe Balbi <felipe.ba...@linux.intel.com> Cc: Grygorii Strashko &l

[PATCH v3 3/6] usb: ehci: fsl: use bus->sysdev for DMA configuration

2016-11-10 Thread Sriram Dash
From: Arnd Bergmann <a...@arndb.de> For the dual role ehci fsl driver, sysdev will handle the dma config. Signed-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> --- Changes in v3: - fix compile errors Changes in v2: - fix compile warn

[PATCH v3 0/6] inherit dma configuration from parent dev

2016-11-10 Thread Sriram Dash
For xhci-hcd platform device, all the DMA parameters are not configured properly, notably dma ops for dwc3 devices. The idea here is that you pass in the parent of_node along with the child device pointer, so it would behave exactly like the parent already does. The difference is that it also

[PATCH v3 5/6] usb: dwc3: use bus->sysdev for DMA configuration

2016-11-10 Thread Sriram Dash
From: Arnd Bergmann <a...@arndb.de> The dma ops for dwc3 devices are not set properly. So, use a physical device sysdev, which will be inherited from parent, to set the hardware / firmware parameters like dma. Signed-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Da

RE: [PATCH v2 3/6] usb: ehci: fsl: use bus->sysdev for DMA configuration

2016-11-02 Thread Sriram Dash
>From: Sriram Dash [mailto:sriram.d...@nxp.com] >From: Arnd Bergmann <a...@arndb.de> > >For the dual role ehci fsl driver, sysdev will handle the dma config. > >Signed-off-by: Arnd Bergmann <a...@arndb.de> >Signed-off-by: Sriram Dash <sriram.d...@nxp.com>

[PATCH v2 4/6] usb: xhci: use bus->sysdev for DMA configuration

2016-11-02 Thread Sriram Dash
: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> --- Changes in v2: - Separate out xhci driver changes apart drivers/usb/host/xhci-mem.c | 12 ++-- drivers/usb/host/xhci-plat.c | 33 ++--- drivers/usb/hos

[PATCH v2 0/6] inherit dma configuration from parent dev

2016-11-01 Thread Sriram Dash
For xhci-hcd platform device, all the DMA parameters are not configured properly, notably dma ops for dwc3 devices. The idea here is that you pass in the parent of_node along with the child device pointer, so it would behave exactly like the parent already does. The difference is that it also

[PATCH v2 6/6] usb: dwc3: Do not set dma coherent mask

2016-11-01 Thread Sriram Dash
From: Arnd Bergmann <a...@arndb.de> The dma mask is correctly set up by the DT probe function, no need to override it any more. Signed-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> --- Changes in v2: - club the cleanup for dma cohere

[PATCH v2 2/6] usb: chipidea: use bus->sysdev for DMA configuration

2016-11-01 Thread Sriram Dash
From: Arnd Bergmann <a...@arndb.de> Set the dma for chipidea from sysdev. This is inherited from its parent node. Also, do not set dma mask for child as it is not required now. Signed-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Dash <sriram.d...@nxp.com>

[PATCH v2 5/6] usb: dwc3: use bus->sysdev for DMA configuration

2016-11-01 Thread Sriram Dash
From: Arnd Bergmann <a...@arndb.de> The dma ops for dwc3 devices are not set properly. So, use a physical device sysdev, which will be inherited from parent, to set the hardware / firmware parameters like dma. Signed-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Da

[PATCH v2 1/6] usb: separate out sysdev pointer from usb_bus

2016-11-01 Thread Sriram Dash
anagement) and a new pointer (used for DMA, DT enumeration and phy lookup) probably covers all that we really need. Signed-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> Cc: Felipe Balbi <felipe.ba...@linux.intel.com> Cc: Grygorii Strashko &l

[PATCH v2 3/6] usb: ehci: fsl: use bus->sysdev for DMA configuration

2016-11-01 Thread Sriram Dash
From: Arnd Bergmann <a...@arndb.de> For the dual role ehci fsl driver, sysdev will handle the dma config. Signed-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> --- Changes in v2: - fix compile warnings drivers/usb/host/ehci-fsl.

RE: [PATCH 3/3] usb: dwc3: host: Do not use dma_coerce_mask_and_coherent

2016-10-27 Thread Sriram Dash
>From: Arnd Bergmann [mailto:a...@arndb.de] >On Tuesday, October 25, 2016 4:26:28 PM CEST Sriram Dash wrote: >> Do not use dma_coerce_mask_and_coherent for hcd. >> >> Signed-off-by: Arnd Bergmann <a...@arndb.de> > >The patch is good, but please follow th

RE: [PATCH 2/3] usb: dwc3: host: Do not use dma_set_coherent_mask

2016-10-26 Thread Sriram Dash
>From: Arnd Bergmann [mailto:a...@arndb.de] >On Tuesday, October 25, 2016 4:26:27 PM CEST Sriram Dash wrote: >> Do not require dma_set_coherent_mask for hcd >> >> Signed-off-by: Arnd Bergmann <a...@arndb.de> > >Aside from the comments I had for patch 3, you

RE: [PATCH v2] usb: xhci: Don't drive port 2.0 reset while resuming

2016-10-26 Thread Sriram Dash
>From: Mathias Nyman [mailto:mathias.ny...@linux.intel.com] >On 25.10.2016 13:45, Sriram Dash wrote: >> For the USB3.0 controller, USB 2.0 reset not driven while port is in >> Resume state. So, do not program the USB 2.0 reset >> (PORTSC[PR]=1) while in Resume state. &g

[PATCH 1/3] usb: dwc3: host: inherit dma configuration from parent dev

2016-10-25 Thread Sriram Dash
ned-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> Cc: Felipe Balbi <felipe.ba...@linux.intel.com> Cc: Grygorii Strashko <grygorii.stras...@ti.com> Cc: Sinjan Kumar <sinj...@codeaurora.org> Cc: David Fisher <david.fish.

[PATCH 0/3] inherit dma configuration from parent dev

2016-10-25 Thread Sriram Dash
handles all the other attributes besides the mask. Sriram Dash (3): usb: dwc3: host: inherit dma configuration from parent dev usb: dwc3: host: Do not use dma_set_coherent_mask usb: dwc3: host: Do not use dma_coerce_mask_and_coherent drivers/usb/chipidea/core.c| 3 --- drivers/usb

[PATCH 2/3] usb: dwc3: host: Do not use dma_set_coherent_mask

2016-10-25 Thread Sriram Dash
Do not require dma_set_coherent_mask for hcd Signed-off-by: Arnd Bergmann --- drivers/usb/chipidea/core.c | 3 --- drivers/usb/dwc3/core.c | 6 -- drivers/usb/dwc3/dwc3-st.c | 1 - drivers/usb/dwc3/host.c | 4 4 files changed, 14 deletions(-) diff --git

[PATCH v2] usb: xhci: Don't drive port 2.0 reset while resuming

2016-10-25 Thread Sriram Dash
For the USB3.0 controller, USB 2.0 reset not driven while port is in Resume state. So, do not program the USB 2.0 reset (PORTSC[PR]=1) while in Resume state. Signed-off-by: Rajat Srivastava <rajat.srivast...@nxp.com> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> Signed-off-by: R

[PATCH 3/3] usb: dwc3: host: Do not use dma_coerce_mask_and_coherent

2016-10-25 Thread Sriram Dash
Do not use dma_coerce_mask_and_coherent for hcd. Signed-off-by: Arnd Bergmann --- drivers/usb/dwc3/dwc3-exynos.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c index 2f1fb7e..e27899b 100644 ---

RE: [PATCH] usb: xhci: Workaround for erratum-A010129

2016-10-23 Thread Sriram Dash
>From: Alan Stern [mailto:st...@rowland.harvard.edu] >On Fri, 21 Oct 2016, Sriram Dash wrote: > >> For the USB3.0 controller, USB 2.0 reset not driven while port is in >> Resume state. So, do not program the USB 2.0 reset >> (PORTSC[PR]=1) while in Resume state.

RE: [RESEND PATCH] usb: chipidea: Configure DMA properties and ops from DT

2016-10-22 Thread Sriram Dash
>From: Stephen Boyd [mailto:sb...@codeaurora.org] >On 10/21, Bjorn Andersson wrote: >> hcd_alloc_coherent() and usb_alloc_coherent() ends up allocating >> coherent memory on behalf of ci_hdrc driver. But as the ci_hdrc is >> instantiated manually it will not have any dma_mem or dma_ops >>

[PATCH] usb: xhci: Workaround for erratum-A010129

2016-10-21 Thread Sriram Dash
For the USB3.0 controller, USB 2.0 reset not driven while port is in Resume state. So, do not program the USB 2.0 reset (PORTSC[PR]=1) while in Resume state. Signed-off-by: Rajat Srivastava <rajat.srivast...@nxp.com> Signed-off-by: Sriram Dash <sriram.d...@nxp.com> Signed-off-by: R

RE: [PATCH] usb: dwc3: host: inherit dma configuration from parent dev

2016-09-22 Thread Sriram Dash
>From: Arnd Bergmann [mailto:a...@arndb.de] >On Wednesday, September 21, 2016 11:43:59 AM CEST Sriram Dash wrote: >> >From: Arnd Bergmann [mailto:a...@arndb.de] On Wednesday, September >> >21, 2016 11:06:47 A

RE: [PATCH] usb: dwc3: host: inherit dma configuration from parent dev

2016-09-21 Thread Sriram Dash
>From: Arnd Bergmann [mailto:a...@arndb.de] >On Wednesday, September 21, 2016 11:06:47 AM CEST Sriram Dash wrote: >> >> Hello Arnd, >> >> We tried this patch on NXP platforms (ls2085 and ls1043) which use >> dwc3 controller without any glue layer. On first

RE: [PATCH] usb: dwc3: host: inherit dma configuration from parent dev

2016-09-21 Thread Sriram Dash
>From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb-ow...@vger.kernel.org] >On Wednesday, September 7, 2016 1:24:07 PM CEST Felipe Balbi wrote: >> >> Hi, >> >> Arnd Bergmann writes: >> >> [...] >> >> > Regarding the DMA configuration that you mention in >> >

[PATCH] drivers/usb : Port USB EHCI host driver for LS102xA

2015-12-18 Thread Sriram Dash
Change Power architecture specific APIs such as in_be32/out_be32 for registers read/write. Instead using ioread/writebe32 which are defined for power as well as arm architecture Signed-off-by: Nikhil Badola <nikhil.bad...@freescale.com> Signed-off-by: Sriram Dash <sriram.d...@free

[PATCH] drivers/usb : Set DMA_MASK of usb platform device

2015-12-17 Thread Sriram Dash
Set DMA_MASK of usb platform device properly. Signed-off-by: Sriram Dash <sriram.d...@freescale.com> Signed-off-by: Ramneek Mehresh <ramneek.mehr...@freescale.com> --- drivers/usb/host/fsl-mph-dr-of.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/