[PATCH] usb: host: xhci-plat: Prevent an abnormally restrictive PHY init skipping

2019-03-26 Thread Miquel Raynal
le there is not users of both PHY types at the same time, drop this limitation from the xhci-plat.c driver. Note that the tegra driver probably has the same limitation and could definitely benefit from a similar change. Cc: Johan Hovold Cc: Martin Blumenstingl Signed-off-by: Miquel Raynal --- dr

Re: [PATCH] usb: host: xhci-plat: Prevent an abnormally restrictive PHY init skipping

2019-03-29 Thread Miquel Raynal
Hi Martin, Martin Blumenstingl wrote on Tue, 26 Mar 2019 18:29:25 +0100: > Hello Miquel, > > On Tue, Mar 26, 2019 at 9:39 AM Miquel Raynal > wrote: > > > > In the past, USB PHY handling has been moved in the HCD core. Some > > host controller drivers needing

Re: [PATCH] usb: host: xhci-plat: Prevent an abnormally restrictive PHY init skipping

2019-03-30 Thread Miquel Raynal
Hi Martin, Martin Blumenstingl wrote on Sat, 30 Mar 2019 13:53:29 +0100: > Hi Miquel, > > On Fri, Mar 29, 2019 at 4:16 PM Miquel Raynal > wrote: > > > > Hi Martin, > > > > Martin Blumenstingl wrote on Tue, > > 26 Mar 2019 18:29:25 +0100: > >

Question about regulators

2019-04-03 Thread Miquel Raynal
Hello, I am reading the document named "xHCI interoperability testing v0.94" available on usb.org. There is this paragraph: Devices operating at Enhanced SuperSpeed GenX are allowed to draw a maximum configured current of 900mA and unconfigured current of 150mA. Devices op

Re: Question about regulators

2019-04-09 Thread Miquel Raynal
Hello, Adding Greg & Hans just in case they have an idea, or someone else to ping in mind. Miquel Raynal wrote on Wed, 3 Apr 2019 10:13:43 +0200: > Hello, > > I am reading the document named "xHCI interoperability testing v0.94" > available on usb.or

Re: Question about regulators

2019-04-09 Thread Miquel Raynal
Hi Hans, Hans de Goede wrote on Tue, 9 Apr 2019 09:38:01 +0200: > Hi, > > On 09-04-19 09:26, Miquel Raynal wrote: > > Hello, > > > > Adding Greg & Hans just in case they have an idea, or someone else to > > ping in mind. > > > > Miquel Ra

[RESEND PATCH] usb: host: xhci-plat: Prevent an abnormally restrictive PHY init skipping

2019-07-31 Thread Miquel Raynal
le there is not users of both PHY types at the same time, drop this limitation from the xhci-plat.c driver. Note that the tegra driver probably has the same limitation and could definitely benefit from a similar change. Cc: Johan Hovold Cc: Martin Blumenstingl Signed-off-by: Miquel Raynal Acked-by:

[PATCH 2/3] usb: host: xhci: mvebu: add reset on resume quirk

2018-11-23 Thread Miquel Raynal
present on the A3700 SoC. Signed-off-by: Ofer Heifetz [miquel.ray...@bootlin.com: Reword the commit message] Signed-off-by: Miquel Raynal --- drivers/usb/host/Kconfig | 2 +- drivers/usb/host/xhci-mvebu.c | 11 +++ drivers/usb/host/xhci-mvebu.h | 6 ++ drivers/usb/host/xhci-plat.c

[PATCH 0/3] Bring suspend to RAM support to xHCI MVEBU driver

2018-11-23 Thread Miquel Raynal
is updated (patch 3) to reference the PHY. xHCI bindings already document the PHY so no update is needed on this regard. [1] http://code.bulix.org/s2ccd4-511198 [2] http://lists.infradead.org/pipermail/linux-arm-kernel/2018-November/614527.html Thanks, Miquèl Miquel Raynal (2): usb: core

[PATCH 3/3] ARM64: dts: marvell: armada-3720-espressobin: declare USB3 PHY

2018-11-23 Thread Miquel Raynal
The USB3 node is wired to the first PHY of the COMPHY IP. Signed-off-by: Miquel Raynal --- arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts b/arch/arm64/boot/dts/marvell/armada

[PATCH 1/3] usb: core: comply to PHY framework

2018-11-23 Thread Miquel Raynal
Current implementation of the USB core does not take into account the new PHY framework. Correct the situation by adding a call to phy_set_mode() before phy_power_on(). Signed-off-by: Miquel Raynal --- drivers/usb/core/hcd.c | 5 + drivers/usb/core/phy.c | 28

[PATCH v2 06/10] dt-bindings: phy: mvebu-utmi: add UTMI PHY bindings

2019-01-11 Thread Miquel Raynal
Add bindings for Marvell Armada 3700 USB2 UTMI+ PHY. Signed-off-by: Miquel Raynal --- .../bindings/phy/phy-mvebu-utmi.txt | 37 +++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/phy-mvebu-utmi.txt diff --git a/Documentation

[PATCH v2 07/10] MAINTAINERS: phy: fill Armada 3700 PHY drivers entry

2019-01-11 Thread Miquel Raynal
Update the Armada 3700 PHY drivers entry with the recently added UTMI PHY driver. Signed-off-by: Miquel Raynal --- MAINTAINERS | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index abfd80f21b24..2a08a097e107 100644 --- a/MAINTAINERS +++ b

[PATCH v2 00/10] A3700 USB S2RAM support

2019-01-11 Thread Miquel Raynal
the A3700 SoC in the USB Host Kconfig prompt (not only in the help section). * Rebased on top of v5.0-rc1. Miquel Raynal (9): usb: core: comply to PHY framework usb: ehci-orion: avoid double PHY initialization usb: ehci-orion: add S2RAM support phy: add A3700 UTMI PHY driver dt-bindings

[PATCH v2 08/10] ARM64: dts: marvell: armada-37xx: fix USB2 memory region

2019-01-11 Thread Miquel Raynal
the UTMI PHY node. Section 3/ can be accessed by both the USB controller and the PHY because of the miscaellaneous nature of the registers inside so a specific node will be created to cover the area and a handle to it will be added in both the USB controller and the PHY node. Signed-off-by: Miquel

[PATCH v2 05/10] phy: add A3700 UTMI PHY driver

2019-01-11 Thread Miquel Raynal
nd it. Co-developed-by: Igal Liberman Signed-off-by: Miquel Raynal Signed-off-by: Igal Liberman --- drivers/phy/marvell/Kconfig| 9 + drivers/phy/marvell/Makefile | 1 + drivers/phy/marvell/phy-mvebu-a3700-utmi.c | 297 + 3 files changed, 307

[PATCH v2 01/10] usb: core: comply to PHY framework

2019-01-11 Thread Miquel Raynal
Current implementation of the USB core does not take into account the new PHY framework. Correct the situation by adding a call to phy_set_mode() before phy_power_on(). Signed-off-by: Miquel Raynal --- drivers/usb/core/hcd.c | 5 + drivers/usb/core/phy.c | 28

[PATCH v2 03/10] usb: ehci-orion: avoid double PHY initialization

2019-01-11 Thread Miquel Raynal
t than that, the following phy->power_on() at resume time will be also skipped, failing the whole S2RAM operation. Signed-off-by: Miquel Raynal --- drivers/usb/host/ehci-orion.c | 26 +++--- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/drivers/usb/host/

[PATCH v2 09/10] ARM64: dts: marvell: armada-37xx: declare USB2 UTMI PHYs

2019-01-11 Thread Miquel Raynal
PHY node. Signed-off-by: Miquel Raynal --- arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 26 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi index 5cfd1b920f31..d87db3d4cc3d 100644

[PATCH v2 10/10] ARM64: dts: marvell: armada-37xx: link USB hosts with their PHYs

2019-01-11 Thread Miquel Raynal
Reference the PHY nodes from the USB controller nodes. The USB3 host controller is wired to: * the first PHY of the COMPHY IP * the OTG-capable UTMI PHY The USB2 host controller is wired to: * the host-only UTMI PHY Signed-off-by: Miquel Raynal --- arch/arm64/boot/dts/marvell/armada

[PATCH v2 02/10] usb: host: xhci: mvebu: add reset on resume quirk

2019-01-11 Thread Miquel Raynal
present on the A3700 SoC. Signed-off-by: Ofer Heifetz [miquel.ray...@bootlin.com: Reword the commit message] Signed-off-by: Miquel Raynal --- drivers/usb/host/Kconfig | 4 ++-- drivers/usb/host/xhci-mvebu.c | 11 +++ drivers/usb/host/xhci-mvebu.h | 6 ++ drivers/usb/host/xhci

[PATCH v2 04/10] usb: ehci-orion: add S2RAM support

2019-01-11 Thread Miquel Raynal
Add suspend/resume callbacks to reset the host controller properly during S2RAM operation. Signed-off-by: Miquel Raynal --- drivers/usb/host/ehci-orion.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/usb/host/ehci-orion.c b/drivers/usb/host/ehci-orion.c

Re: [PATCH v2 06/10] dt-bindings: phy: mvebu-utmi: add UTMI PHY bindings

2019-01-16 Thread Miquel Raynal
Hi Rob, Rob Herring wrote on Tue, 15 Jan 2019 15:44:29 -0600: > On Fri, Jan 11, 2019 at 02:31:29PM +0100, Miquel Raynal wrote: > > Add bindings for Marvell Armada 3700 USB2 UTMI+ PHY. > > > > Signed-off-by: Miquel Raynal > > --- > > .../bindings/phy/

Re: [PATCH v2 03/10] usb: ehci-orion: avoid double PHY initialization

2019-01-21 Thread Miquel Raynal
Hi Gregory, Gregory CLEMENT wrote on Fri, 18 Jan 2019 17:25:30 +0100: > Hi Miquel, > > On ven., janv. 11 2019, Miquel Raynal wrote: > > > No need to initialize the PHY from the driver's probe. It is done by > > the core automatically and doing it twice woul

Re: [PATCH v2 03/10] usb: ehci-orion: avoid double PHY initialization

2019-01-21 Thread Miquel Raynal
Hi Sergei, Sergei Shtylyov wrote on Fri, 11 Jan 2019 21:03:01 +0300: > Hello! > > On 01/11/2019 04:31 PM, Miquel Raynal wrote: > > > No need to initialize the PHY from the driver's probe. It is done by > > the core automatically and doing it twice would incr

Re: [PATCH v2 05/10] phy: add A3700 UTMI PHY driver

2019-01-21 Thread Miquel Raynal
Hi Gregory, Gregory CLEMENT wrote on Fri, 18 Jan 2019 17:36:36 +0100: > Hi Miquel, > > I have only a few smallish remarks: > > On ven., janv. 11 2019, Miquel Raynal wrote: > > > Marvell Armada 3700 SoC has two USB controllers, each of them being > > wired

Re: [PATCH v2 05/10] phy: add A3700 UTMI PHY driver

2019-01-21 Thread Miquel Raynal
Hi Kishon, Chunfeng, Kishon Vijay Abraham I wrote on Wed, 16 Jan 2019 14:50:58 +0530: > Hi, > > On 15/01/19 8:10 AM, Chunfeng Yun wrote: > > Hi, > > On Fri, 2019-01-11 at 14:31 +0100, Miquel Raynal wrote: > >> Marvell Armada 3700 SoC has two USB controllers, ea

Re: [PATCH v2 02/10] usb: host: xhci: mvebu: add reset on resume quirk

2019-01-21 Thread Miquel Raynal
Hi Gregory, Gregory CLEMENT wrote on Fri, 18 Jan 2019 17:04:01 +0100: > Hi Miquel, > > On ven., janv. 11 2019, Miquel Raynal wrote: > > > From: Ofer Heifetz > > > > The mvebu xHCI host driver does not have suspend/resume support. Use of > > the XHCI_R

[PATCH v3 03/10] usb: ehci-orion: avoid double PHY initialization

2019-01-21 Thread Miquel Raynal
e than that, the following phy->power_on() at resume time will also be skipped, failing the whole S2RAM operation. Signed-off-by: Miquel Raynal --- drivers/usb/host/ehci-orion.c | 26 +++--- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/drivers/usb/host/

[PATCH v3 10/10] ARM64: dts: marvell: armada-37xx: link USB hosts with their PHYs

2019-01-21 Thread Miquel Raynal
Reference the PHY nodes from the USB controller nodes. The USB3 host controller is wired to: * the first PHY of the COMPHY IP * the OTG-capable UTMI PHY The USB2 host controller is wired to: * the host-only UTMI PHY Signed-off-by: Miquel Raynal --- arch/arm64/boot/dts/marvell/armada

[PATCH v3 00/10] A3700 USB S2RAM support

2019-01-21 Thread Miquel Raynal
the A3700 SoC. * Updates to the OHCI Orion driver to avoid doing the PHY initialization twice. * Upgrade of the OHCI Orion driver with S2RAM callbacks. * Added a reference to the A3700 SoC in the USB Host Kconfig prompt (not only in the help section). * Rebased on top of v5.0-rc1. Miquel Rayna

[PATCH v3 08/10] ARM64: dts: marvell: armada-37xx: fix USB2 memory region

2019-01-21 Thread Miquel Raynal
the UTMI PHY node. Section 3/ can be accessed by both the USB controller and the PHY because of the miscaellaneous nature of the registers inside so a specific node will be created to cover the area and a handle to it will be added in both the USB controller and the PHY node. Signed-off-by: Miquel

[PATCH v3 07/10] MAINTAINERS: phy: fill Armada 3700 PHY drivers entry

2019-01-21 Thread Miquel Raynal
Update the Armada 3700 PHY drivers entry with the recently added UTMI PHY driver. Signed-off-by: Miquel Raynal --- MAINTAINERS | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index abfd80f21b24..2a08a097e107 100644 --- a/MAINTAINERS +++ b

[PATCH v3 09/10] ARM64: dts: marvell: armada-37xx: declare USB2 UTMI PHYs

2019-01-21 Thread Miquel Raynal
PHY node. Signed-off-by: Miquel Raynal --- arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi index 5cfd1b920f31..aeb2681428b3 100644

[PATCH v3 04/10] usb: ehci-orion: add S2RAM support

2019-01-21 Thread Miquel Raynal
Add suspend/resume callbacks to reset the host controller properly during S2RAM operation. Signed-off-by: Miquel Raynal --- drivers/usb/host/ehci-orion.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/usb/host/ehci-orion.c b/drivers/usb/host/ehci-orion.c

[PATCH v3 02/10] usb: host: xhci: mvebu: add reset on resume quirk

2019-01-21 Thread Miquel Raynal
present on the A3700 SoC. Signed-off-by: Ofer Heifetz [miquel.ray...@bootlin.com: Reword the commit message] Signed-off-by: Miquel Raynal Reviewed-by: Gregory CLEMENT --- drivers/usb/host/Kconfig | 4 ++-- drivers/usb/host/xhci-mvebu.c | 11 +++ drivers/usb/host/xhci-mvebu.h | 6

[PATCH v3 01/10] usb: core: comply to PHY framework

2019-01-21 Thread Miquel Raynal
Current implementation of the USB core does not take into account the new PHY framework. Correct the situation by adding a call to phy_set_mode() before phy_power_on(). Signed-off-by: Miquel Raynal --- drivers/usb/core/hcd.c | 5 + drivers/usb/core/phy.c | 28

[PATCH v3 05/10] phy: add A3700 UTMI PHY driver

2019-01-21 Thread Miquel Raynal
nd it. Co-developed-by: Igal Liberman Signed-off-by: Miquel Raynal Signed-off-by: Igal Liberman --- drivers/phy/marvell/Kconfig| 9 + drivers/phy/marvell/Makefile | 1 + drivers/phy/marvell/phy-mvebu-a3700-utmi.c | 278 + 3 files changed, 288

[PATCH v3 06/10] dt-bindings: phy: mvebu-utmi: add UTMI PHY bindings

2019-01-21 Thread Miquel Raynal
Add bindings for Marvell Armada 3700 USB2 UTMI+ PHY. Signed-off-by: Miquel Raynal --- .../bindings/phy/phy-mvebu-utmi.txt | 38 +++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/phy-mvebu-utmi.txt diff --git a/Documentation

Re: [PATCH v3 06/10] dt-bindings: phy: mvebu-utmi: add UTMI PHY bindings

2019-01-22 Thread Miquel Raynal
Hello, Rob Herring wrote on Tue, 22 Jan 2019 10:08:41 -0600: > On Mon, Jan 21, 2019 at 9:49 AM Gregory CLEMENT > wrote: > > > > Hi Rob, > > > > On lun., janv. 21 2019, Rob Herring wrote: > > > > > On Mon, 21 Jan 2019 12:23:32 +0100, Miquel Ra

Re: [PATCH v3 06/10] dt-bindings: phy: mvebu-utmi: add UTMI PHY bindings

2019-01-22 Thread Miquel Raynal
Hi Thomas, Thomas Petazzoni wrote on Tue, 22 Jan 2019 18:38:33 +0100: > Hello, > > On Mon, 21 Jan 2019 12:23:32 +0100, Miquel Raynal wrote: > > > +- compatible: Should be one of: > > + * "marvell,a3700-utmi-host-phy" for the PHY connected to

Re: [PATCH v3 04/10] usb: ehci-orion: add S2RAM support

2019-01-25 Thread Miquel Raynal
Hi Alan, Alan Stern wrote on Wed, 23 Jan 2019 14:58:44 -0500 (EST): > On Mon, 21 Jan 2019, Miquel Raynal wrote: > > > Add suspend/resume callbacks to reset the host controller properly > > during S2RAM operation. > > > > Signed-off-by: Miquel Raynal > > --

[PATCH v4 02/10] usb: host: xhci: mvebu: add reset on resume quirk

2019-01-25 Thread Miquel Raynal
present on the A3700 SoC. Signed-off-by: Ofer Heifetz [miquel.ray...@bootlin.com: Reword the commit message] Signed-off-by: Miquel Raynal Reviewed-by: Gregory CLEMENT --- drivers/usb/host/Kconfig | 4 ++-- drivers/usb/host/xhci-mvebu.c | 11 +++ drivers/usb/host/xhci-mvebu.h | 6

[PATCH v4 01/10] usb: core: comply to PHY framework

2019-01-25 Thread Miquel Raynal
Current implementation of the USB core does not take into account the new PHY framework. Correct the situation by adding a call to phy_set_mode() before phy_power_on(). Signed-off-by: Miquel Raynal --- drivers/usb/core/hcd.c | 5 + drivers/usb/core/phy.c | 28

[PATCH v4 00/10] A3700 USB S2RAM support

2019-01-25 Thread Miquel Raynal
on twice. * Upgrade of the OHCI Orion driver with S2RAM callbacks. * Added a reference to the A3700 SoC in the USB Host Kconfig prompt (not only in the help section). * Rebased on top of v5.0-rc1. Miquel Raynal (9): usb: core: comply to PHY framework usb: ehci-orion: avoid double PHY

[PATCH v4 06/10] dt-bindings: phy: mvebu-utmi: add UTMI PHY bindings

2019-01-25 Thread Miquel Raynal
Add bindings for Marvell Armada 3700 USB2 UTMI+ PHY. Signed-off-by: Miquel Raynal Reviewed-by: Rob Herring --- .../bindings/phy/phy-mvebu-utmi.txt | 38 +++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/phy-mvebu-utmi.txt

[PATCH v4 05/10] phy: add A3700 UTMI PHY driver

2019-01-25 Thread Miquel Raynal
nd it. Co-developed-by: Igal Liberman Signed-off-by: Miquel Raynal Signed-off-by: Igal Liberman --- drivers/phy/marvell/Kconfig| 9 + drivers/phy/marvell/Makefile | 1 + drivers/phy/marvell/phy-mvebu-a3700-utmi.c | 278 + 3 files changed, 288

[PATCH v4 03/10] usb: ehci-orion: avoid double PHY initialization

2019-01-25 Thread Miquel Raynal
e than that, the following phy->power_on() at resume time will also be skipped, failing the whole S2RAM operation. Signed-off-by: Miquel Raynal Acked-by: Alan Stern --- drivers/usb/host/ehci-orion.c | 26 +++--- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git

[PATCH v4 07/10] MAINTAINERS: phy: fill Armada 3700 PHY drivers entry

2019-01-25 Thread Miquel Raynal
Update the Armada 3700 PHY drivers entry with the recently added UTMI PHY driver. Signed-off-by: Miquel Raynal --- MAINTAINERS | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index abfd80f21b24..2a08a097e107 100644 --- a/MAINTAINERS +++ b

[PATCH v4 04/10] usb: ehci-orion: add S2RAM support

2019-01-25 Thread Miquel Raynal
Add suspend/resume callbacks to reset the host controller properly during S2RAM operation. Signed-off-by: Miquel Raynal --- drivers/usb/host/ehci-orion.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/usb/host/ehci-orion.c b/drivers/usb/host/ehci-orion.c index

[PATCH v4 09/10] ARM64: dts: marvell: armada-37xx: declare USB2 UTMI PHYs

2019-01-25 Thread Miquel Raynal
PHY node. Signed-off-by: Miquel Raynal --- arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi index 5cfd1b920f31..d2d8ef00c592 100644

[PATCH v4 08/10] ARM64: dts: marvell: armada-37xx: fix USB2 memory region

2019-01-25 Thread Miquel Raynal
the UTMI PHY node. Section 3/ can be accessed by both the USB controller and the PHY because of the miscaellaneous nature of the registers inside so a specific node will be created to cover the area and a handle to it will be added in both the USB controller and the PHY node. Signed-off-by: Miquel

[PATCH v4 10/10] ARM64: dts: marvell: armada-37xx: link USB hosts with their PHYs

2019-01-25 Thread Miquel Raynal
Reference the PHY nodes from the USB controller nodes. The USB3 host controller is wired to: * the first PHY of the COMPHY IP * the OTG-capable UTMI PHY The USB2 host controller is wired to: * the host-only UTMI PHY Signed-off-by: Miquel Raynal --- arch/arm64/boot/dts/marvell/armada

Re: [PATCH v4 04/10] usb: ehci-orion: add S2RAM support

2019-01-28 Thread Miquel Raynal
Hi Alan, Alan Stern wrote on Fri, 25 Jan 2019 21:56:27 -0500 (EST): > On Fri, 25 Jan 2019, Miquel Raynal wrote: > > > Add suspend/resume callbacks to reset the host controller properly > > during S2RAM operation. > > > > Signed-off-by: Miquel Raynal > > --

Re: [PATCH v4 04/10] usb: ehci-orion: add S2RAM support

2019-01-28 Thread Miquel Raynal
Hi Alan, Alan Stern wrote on Mon, 28 Jan 2019 10:27:53 -0500 (EST): > On Mon, 28 Jan 2019, Miquel Raynal wrote: > > > Hi Alan, > > > > Alan Stern wrote on Fri, 25 Jan 2019 > > 21:56:27 -0500 (EST): > > > > > On Fri, 25 Jan 2019, Miquel Rayn

[PATCH v5 3/4] usb: ehci-orion: avoid double PHY initialization

2019-01-29 Thread Miquel Raynal
e than that, the following phy->power_on() at resume time will also be skipped, failing the whole S2RAM operation. Signed-off-by: Miquel Raynal Acked-by: Alan Stern --- drivers/usb/host/ehci-orion.c | 26 +++--- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git

[PATCH v5 0/4] A3700 USB S2RAM support

2019-01-29 Thread Miquel Raynal
doing the PHY initialization twice. * Upgrade of the OHCI Orion driver with S2RAM callbacks. * Added a reference to the A3700 SoC in the USB Host Kconfig prompt (not only in the help section). * Rebased on top of v5.0-rc1. Miquel Raynal (3): usb: core: comply to PHY framework usb: ehci-orion:

[PATCH v5 4/4] usb: ehci-orion: add S2RAM support

2019-01-29 Thread Miquel Raynal
Add suspend/resume callbacks to reset the host controller properly during S2RAM operation. Signed-off-by: Miquel Raynal Acked-by: Alan Stern --- drivers/usb/host/ehci-orion.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/usb/host/ehci-orion.c b/drivers/usb

[PATCH v5 1/4] usb: core: comply to PHY framework

2019-01-29 Thread Miquel Raynal
Current implementation of the USB core does not take into account the new PHY framework. Correct the situation by adding a call to phy_set_mode() before phy_power_on(). Signed-off-by: Miquel Raynal --- drivers/usb/core/hcd.c | 5 + drivers/usb/core/phy.c | 28

[PATCH v5 2/4] usb: host: xhci: mvebu: add reset on resume quirk

2019-01-29 Thread Miquel Raynal
present on the A3700 SoC. Signed-off-by: Ofer Heifetz [miquel.ray...@bootlin.com: Reword the commit message] Signed-off-by: Miquel Raynal Reviewed-by: Gregory CLEMENT --- drivers/usb/host/Kconfig | 4 ++-- drivers/usb/host/xhci-mvebu.c | 11 +++ drivers/usb/host/xhci-mvebu.h | 6

Re: regression from commit "usb: host: xhci-plat: Prevent an abnormally restrictive PHY init skipping"

2019-09-28 Thread Miquel Raynal
Hi Marek, Marek Behun wrote on Sat, 28 Sep 2019 04:29:50 +0200: > Hi Miquel, > > I am encountering a regression caused by your commit eb6c2eb6c7fb > "usb: host: xhci-plat: Prevent an abnormally restrictive PHY init > skipping" [1] Sorry for the regression. > > In the Turris Mox device tree,