Re: dwc2 (on Meson8b) doesn't detect "hot-plugged" USB devices

2018-07-04 Thread Martin Blumenstingl
On Wed, Jul 4, 2018 at 4:16 PM Martin Blumenstingl wrote: [...] > unfortunately it seems that plugging in seems to fill the kmsg buffer > instantly, so I cannot (at least I don't know how - do you have any > idea how to get around this?) get the information from the second > where

Re: dwc2 (on Meson8b) doesn't detect "hot-plugged" USB devices

2018-07-04 Thread Martin Blumenstingl
Hello Arthur, Hello Minas, On Wed, Jul 4, 2018 at 1:43 PM Artur Petrosyan wrote: > > Hello Martin, > > On 7/4/2018 01:39, Martin Blumenstingl wrote: > > Hello Minas, > > > > On Thu, May 10, 2018 at 11:44 AM Martin Blumenstingl > > wrote: > >> > &g

Re: dwc2 (on Meson8b) doesn't detect "hot-plugged" USB devices

2018-07-03 Thread Martin Blumenstingl
Hello Minas, On Thu, May 10, 2018 at 11:44 AM Martin Blumenstingl wrote: > > Hello Minas, > > On Mon, May 7, 2018 at 3:27 PM, Minas Harutyunyan > wrote: > > Hi Martin, > > > > On 5/7/2018 12:28 AM, Martin Blumenstingl wrote: > >> Hello, > >>

Re: [PATCH 1/1] usb: chipidea: host: fix disconnection detect issue

2018-06-06 Thread Martin Blumenstingl
to struct usb_hcd") > Cc: Martin Blumenstingl > Reported-by: Mats Karrman > Signed-off-by: Peter Chen Acked-by: Martin Blumenstingl > --- > drivers/usb/chipidea/host.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/us

Re: dwc2 (on Meson8b) doesn't detect "hot-plugged" USB devices

2018-05-10 Thread Martin Blumenstingl
Hello Minas, On Mon, May 7, 2018 at 3:27 PM, Minas Harutyunyan <minas.harutyun...@synopsys.com> wrote: > Hi Martin, > > On 5/7/2018 12:28 AM, Martin Blumenstingl wrote: >> Hello, >> >> I was a bit surprised to see that hot-plugging USB devices on Amlogic &

dwc2 (on Meson8b) doesn't detect "hot-plugged" USB devices

2018-05-06 Thread Martin Blumenstingl
Hello, I was a bit surprised to see that hot-plugging USB devices on Amlogic Meson8b (for example: Odroid-C1) is broken. to be fair: I *think* it worked before, but I cannot guarantee it nor can I say when it broke all examples below are from an Odroid-C1 board with Amlogic Meson8b (S805) SoC.

Re: [PATCH v2 2/2] usb: dwc3: support clocks and resets for DWC3 core

2018-04-28 Thread Martin Blumenstingl
(adding Yixun from Amlogic to this mail) On Sat, Apr 28, 2018 at 4:41 AM, Masahiro Yamada <yamada.masah...@socionext.com> wrote: > Hi Martin, > > > 2018-04-24 2:44 GMT+09:00 Martin Blumenstingl > <martin.blumensti...@googlemail.com>: >> Hello, >> >&

Re: [PATCH v2 2/2] usb: dwc3: support clocks and resets for DWC3 core

2018-04-23 Thread Martin Blumenstingl
Hello, On Thu, Apr 19, 2018 at 1:03 PM, Masahiro Yamada wrote: > Historically, the clocks and resets are handled on the glue layer > side instead of the DWC3 core. For simple cases, dwc3-of-simple.c > takes care of arbitrary number of clocks and resets. The DT

Re: [PATCH usb v6 6/6] usb: core: phy: add the SPDX-License-Identifier and include guard

2018-04-22 Thread Martin Blumenstingl
Hi Greg, On Sun, Apr 22, 2018 at 3:01 PM, Greg KH <gre...@linuxfoundation.org> wrote: > On Wed, Apr 18, 2018 at 09:39:51PM +0200, Martin Blumenstingl wrote: >> This clarifies the license of the code. While here also add an include >> guard to the header file. >> >

Re: [PATCH 0/3] USB: musb: dsps: phy fix and DT-topology support

2018-04-19 Thread Martin Blumenstingl
Hello Johan, On Thu, Apr 19, 2018 at 9:43 AM, Johan Hovold <jo...@kernel.org> wrote: > On Wed, Apr 18, 2018 at 09:18:30PM +0200, Martin Blumenstingl wrote: >> Hi Johan, >> >> On Fri, Apr 13, 2018 at 5:15 PM, Johan Hovold <jo...@kernel.org> wrote: >> > I'

[PATCH usb v6 0/6] usb/core/phy fixes for v4.17

2018-04-18 Thread Martin Blumenstingl
7472.html [8] http://lists.infradead.org/pipermail/linux-amlogic/2018-March/006882.html [9] http://lists.infradead.org/pipermail/linux-amlogic/2018-April/007009.html Martin Blumenstingl (6): usb: core: phy: fix return value of usb_phy_roothub_exit() usb: core: split usb_phy_roothub_{init,al

[PATCH usb v6 6/6] usb: core: phy: add the SPDX-License-Identifier and include guard

2018-04-18 Thread Martin Blumenstingl
This clarifies the license of the code. While here also add an include guard to the header file. Fixes: 07dbff0ddbd86c ("usb: core: add a wrapper for the USB PHYs on the HCD") Suggested-by: Masahiro Yamada <yamada.masah...@socionext.com> Signed-off-by: Martin Blumenstingl &

[PATCH usb v6 4/6] usb: core: phy: make it a no-op if CONFIG_GENERIC_PHY is disabled

2018-04-18 Thread Martin Blumenstingl
is disabled). All existing usb_phy_roothub_* functions are already NULL-safe, so no special handling is required there. Fixes: 07dbff0ddbd8 ("usb: core: add a wrapper for the USB PHYs on the HCD") Reported-by: Stefan Wahren <stefan.wah...@i2se.com> Signed-off-by: Martin Blumenstingl &

[PATCH usb v6 3/6] usb: core: use phy_exit during suspend if wake up is not supported

2018-04-18 Thread Martin Blumenstingl
;usb: core: hcd: integrate the PHY wrapper into the HCD core") Reported-by: Roger Quadros <rog...@ti.com> Suggested-by: Roger Quadros <rog...@ti.com> Suggested-by: Chunfeng Yun <chunfeng@mediatek.com> Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlema

[PATCH usb v6 5/6] usb: core: phy: add missing forward declaration for "struct device"

2018-04-18 Thread Martin Blumenstingl
include any of the struct device API headers. Fixes: 07dbff0ddbd86c ("usb: core: add a wrapper for the USB PHYs on the HCD") Suggested-by: Masahiro Yamada <yamada.masah...@socionext.com> Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> --- drivers/usb/co

[PATCH usb v6 2/6] usb: core: split usb_phy_roothub_{init,alloc}

2018-04-18 Thread Martin Blumenstingl
if that failed somewhere). This is a preparation step for adding proper suspend support for some hardware that requires phy_exit to be called during suspend and phy_init to be called during resume. Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Tested-by: Chunfeng Yun <

[PATCH usb v6 1/6] usb: core: phy: fix return value of usb_phy_roothub_exit()

2018-04-18 Thread Martin Blumenstingl
: add a wrapper for the USB PHYs on the HCD") Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Signed-off-by: Rishabh Bhatnagar <risha...@codeaurora.org> Tested-by: Keerthy <j-keer...@ti.com> --- drivers/usb/core/phy.c | 2 +- 1 file changed, 1 i

Re: [PATCH 0/3] USB: musb: dsps: phy fix and DT-topology support

2018-04-18 Thread Martin Blumenstingl
Hi Johan, On Fri, Apr 13, 2018 at 5:15 PM, Johan Hovold wrote: > I've been carrying a patch out-of-tree since my work on improving the > USB device-tree support which is needed to be able to describe USB > topologies for musb based controllers. > > This patch, which associates

[PATCH usb v5 6/6] usb: core: phy: add the SPDX-License-Identifier and include guard

2018-04-08 Thread Martin Blumenstingl
This clarifies the license of the code. While here also add an include guard to the header file. Fixes: 07dbff0ddbd86c ("usb: core: add a wrapper for the USB PHYs on the HCD") Suggested-by: Masahiro Yamada <yamada.masah...@socionext.com> Signed-off-by: Martin Blumenstingl &

[PATCH usb v5 4/6] usb: core: phy: make it a no-op if CONFIG_GENERIC_PHY is disabled

2018-04-08 Thread Martin Blumenstingl
is disabled). All existing usb_phy_roothub_* functions are already NULL-safe, so no special handling is required there. Fixes: 07dbff0ddbd8 ("usb: core: add a wrapper for the USB PHYs on the HCD") Reported-by: Stefan Wahren <stefan.wah...@i2se.com> Signed-off-by: Martin Blumenstingl &

[PATCH usb v5 5/6] usb: core: phy: add missing forward declaration for "struct device"

2018-04-08 Thread Martin Blumenstingl
include any of the struct device API headers. Fixes: 07dbff0ddbd86c ("usb: core: add a wrapper for the USB PHYs on the HCD") Suggested-by: Masahiro Yamada <yamada.masah...@socionext.com> Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> --- drivers/usb/co

[PATCH usb v5 0/6] usb/core/phy fixes for v4.17

2018-04-08 Thread Martin Blumenstingl
http://lists.infradead.org/pipermail/linux-amlogic/2018-March/006794.html [5] http://lists.infradead.org/pipermail/linux-amlogic/2018-March/006820.html [6] http://lists.infradead.org/pipermail/linux-amlogic/2018-March/006847.html [7] https://www.spinics.net/lists/linux-usb/msg167472.html [8] http:/

[PATCH usb v5 1/6] usb: core: phy: fix return value of usb_phy_roothub_exit()

2018-04-08 Thread Martin Blumenstingl
: add a wrapper for the USB PHYs on the HCD") Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Signed-off-by: Rishabh Bhatnagar <risha...@codeaurora.org> --- drivers/usb/core/phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/u

[PATCH usb v5 2/6] usb: core: split usb_phy_roothub_{init,alloc}

2018-04-08 Thread Martin Blumenstingl
if that failed somewhere). This is a preparation step for adding proper suspend support for some hardware that requires phy_exit to be called during suspend and phy_init to be called during resume. Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Tested-by: Chunfeng Yun <

[PATCH usb v5 3/6] usb: core: use phy_exit during suspend if wake up is not supported

2018-04-08 Thread Martin Blumenstingl
;usb: core: hcd: integrate the PHY wrapper into the HCD core") Reported-by: Roger Quadros <rog...@ti.com> Suggested-by: Roger Quadros <rog...@ti.com> Suggested-by: Chunfeng Yun <chunfeng@mediatek.com> Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlema

Re: [PATCH] Usb: core: Correct self assignment in phy.c

2018-04-07 Thread Martin Blumenstingl
Hello, thank you for finding this! On Sat, Apr 7, 2018 at 1:04 AM, Rishabh Bhatnagar wrote: > In file drivers/usb/core/phy.c line 114, ret variable is assigned to > itself. The following error was observed: > > kernel/drivers/usb/core/phy.c:114:8: warning: explicitly

Re: [usb-next PATCH v11 3/8] usb: core: add a wrapper for the USB PHYs on the HCD

2018-04-05 Thread Martin Blumenstingl
On Fri, Apr 6, 2018 at 5:48 AM, Masahiro Yamada <yamada.masah...@socionext.com> wrote: > 2018-04-06 5:04 GMT+09:00 Martin Blumenstingl > <martin.blumensti...@googlemail.com>: >> Hello, >> >> (great to hear that this might be useful on Socionext SoCs as well :))

Re: [PATCH usb-next v4 0/2] fix HCD PHY suspend handling

2018-04-05 Thread Martin Blumenstingl
Hi Greg, On Thu, Apr 5, 2018 at 3:38 PM, Greg KH <gre...@linuxfoundation.org> wrote: > On Thu, Apr 05, 2018 at 11:47:11AM +0300, Roger Quadros wrote: >> Greg, >> >> On 28/03/18 00:26, Martin Blumenstingl wrote: >> > This is a follow-up to my previou

Re: [usb-next PATCH v11 3/8] usb: core: add a wrapper for the USB PHYs on the HCD

2018-04-05 Thread Martin Blumenstingl
Hello, (great to hear that this might be useful on Socionext SoCs as well :)) On Wed, Apr 4, 2018 at 2:10 PM, Masahiro Yamada <yamada.masah...@socionext.com> wrote: > 2018-03-04 6:43 GMT+09:00 Martin Blumenstingl > <martin.blumensti...@googlemail.com>: >> Many SoC platfor

Re: [PATCH] usb: core: phy: Fix usb_phy_roothub_add_phy if GENERIC_PHY=n

2018-03-31 Thread Martin Blumenstingl
Hello Stefan, On Sat, Mar 31, 2018 at 9:28 PM, Stefan Wahren wrote: > If the generic PHY support is disabled the stub of devm_of_phy_get_by_index > returns ENOSYS. This corner case isn't handled properly by > usb_phy_roothub_add_phy and at least breaks USB support on

[PATCH usb-next v4 1/2] usb: core: split usb_phy_roothub_{init,alloc}

2018-03-27 Thread Martin Blumenstingl
if that failed somewhere). This is a preparation step for adding proper suspend support for some hardware that requires phy_exit to be called during suspend and phy_init to be called during resume. Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Tested-by: Chunfeng Yun <

[PATCH usb-next v4 2/2] usb: core: use phy_exit during suspend if wake up is not supported

2018-03-27 Thread Martin Blumenstingl
;usb: core: hcd: integrate the PHY wrapper into the HCD core") Reported-by: Roger Quadros <rog...@ti.com> Suggested-by: Roger Quadros <rog...@ti.com> Suggested-by: Chunfeng Yun <chunfeng@mediatek.com> Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlema

[PATCH usb-next v4 0/2] fix HCD PHY suspend handling

2018-03-27 Thread Martin Blumenstingl
h/006819.html [4] http://lists.infradead.org/pipermail/linux-amlogic/2018-March/006794.html [5] http://lists.infradead.org/pipermail/linux-amlogic/2018-March/006820.html [6] http://lists.infradead.org/pipermail/linux-amlogic/2018-March/006847.html Martin Blumenstingl (2): usb: core: split usb_phy

[RFC usb-next v3 2/2] usb: core: use phy_exit during suspend if wake up is not supported

2018-03-26 Thread Martin Blumenstingl
;usb: core: hcd: integrate the PHY wrapper into the HCD core") Reported-by: Roger Quadros <rog...@ti.com> Suggested-by: Roger Quadros <rog...@ti.com> Suggested-by: Chunfeng Yun <chunfeng@mediatek.com> Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlem

[RFC usb-next v3 0/2] fix HCD PHY suspend handling

2018-03-26 Thread Martin Blumenstingl
x-amlogic/2018-March/006737.html [2] http://lists.infradead.org/pipermail/linux-amlogic/2018-March/006758.html [3] http://lists.infradead.org/pipermail/linux-amlogic/2018-March/006819.html [4] http://lists.infradead.org/pipermail/linux-amlogic/2018-March/006794.html [5] http://lists.infradead.org/piper

[RFC usb-next v3 1/2] usb: core: split usb_phy_roothub_{init,alloc}

2018-03-26 Thread Martin Blumenstingl
if that failed somewhere). This is a preparation step for adding proper suspend support for some hardware that requires phy_exit to be called during suspend and phy_init to be called during resume. Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> --- drivers/usb/core/hcd.

Re: [RFC usb-next v2 1/2] usb: core: split usb_phy_roothub_{init,alloc}

2018-03-26 Thread Martin Blumenstingl
Hi Chunfeng, On Mon, Mar 26, 2018 at 5:37 AM, Chunfeng Yun <chunfeng@mediatek.com> wrote: > On Sat, 2018-03-24 at 15:21 +0100, Martin Blumenstingl wrote: >> Before this patch usb_phy_roothub_init served two purposes (from a >> caller's point of view - like hcd.c):

Re: [PATCH usb-next v1] usb: core: phy: fix return value of usb_phy_roothub_exit()

2018-03-26 Thread Martin Blumenstingl
Hi Chunfeng, On Mon, Mar 26, 2018 at 5:43 AM, Chunfeng Yun <chunfeng@mediatek.com> wrote: > On Sat, 2018-03-24 at 14:56 +0100, Martin Blumenstingl wrote: >> usb_phy_roothub_exit() should return the error code from the phy_exit() >> call if exiting the PHY failed. >

[RFC usb-next v2 1/2] usb: core: split usb_phy_roothub_{init,alloc}

2018-03-24 Thread Martin Blumenstingl
if that failed somewhere). This is a preparation step for adding proper suspend support for some hardware that requires phy_exit to be called during suspend and phy_init to be called during resume. Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> --- drivers/usb/core/hcd.

[RFC usb-next v2 0/2] fix HCD PHY suspend handling

2018-03-24 Thread Martin Blumenstingl
4] http://lists.infradead.org/pipermail/linux-amlogic/2018-March/006794.html Martin Blumenstingl (2): usb: core: split usb_phy_roothub_{init,alloc} usb: core: use phy_exit during suspend if wake up is not supported drivers/usb/core/hcd.c | 18 +++ drivers/usb/core/phy.c | 88 ++

[RFC usb-next v2 2/2] usb: core: use phy_exit during suspend if wake up is not supported

2018-03-24 Thread Martin Blumenstingl
the PHY wrapper into the HCD core") Reported-by: Roger Quadros <rog...@ti.com> Suggested-by: Roger Quadros <rog...@ti.com> Suggested-by: Chunfeng Yun <chunfeng@mediatek.com> Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> --- drivers/usb/core/hcd.

[PATCH usb-next v1] usb: core: phy: fix return value of usb_phy_roothub_exit()

2018-03-24 Thread Martin Blumenstingl
() to the "ret" variable to propagate the error correctly. Fixes: 07dbff0ddbd86c ("usb: core: add a wrapper for the USB PHYs on the HCD") Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> --- drivers/usb/core/phy.c | 2 +- 1 file changed, 1 inserti

Re: [PATCH usb-next v10 3/8] usb: core: add a wrapper for the USB PHYs on the HCD

2018-03-24 Thread Martin Blumenstingl
Hi Roger, On Wed, Mar 21, 2018 at 12:30 PM, Roger Quadros <rog...@ti.com> wrote: > Martin, > > On 21/03/18 00:01, Martin Blumenstingl wrote: >> Hi Roger, Hi Chunfeng, >> >> On Tue, Mar 20, 2018 at 1:04 PM, Chunfeng Yun <chunfeng@mediatek.com> >>

Re: [PATCH usb-next v10 3/8] usb: core: add a wrapper for the USB PHYs on the HCD

2018-03-20 Thread Martin Blumenstingl
Hi Roger, Hi Chunfeng, On Tue, Mar 20, 2018 at 1:04 PM, Chunfeng Yun <chunfeng@mediatek.com> wrote: > Hi Martin & Roger: > > On Mon, 2018-03-19 at 17:12 +0100, Martin Blumenstingl wrote: >> Hi Roger, >> >> On Mon, Mar 19, 2018 at 9:49 AM, Roger Q

Re: [PATCH usb-next v10 3/8] usb: core: add a wrapper for the USB PHYs on the HCD

2018-03-20 Thread Martin Blumenstingl
Hello Kishon, On Tue, Mar 20, 2018 at 12:27 PM, Kishon Vijay Abraham I <kis...@ti.com> wrote: > Hi, > > On Monday 19 March 2018 09:42 PM, Martin Blumenstingl wrote: >> Hi Roger, >> >> On Mon, Mar 19, 2018 at 9:49 AM, Roger Quadros <rog...@ti.com> wrote: &g

Re: [PATCH usb-next v10 3/8] usb: core: add a wrapper for the USB PHYs on the HCD

2018-03-19 Thread Martin Blumenstingl
Hi Roger, On Mon, Mar 19, 2018 at 9:49 AM, Roger Quadros <rog...@ti.com> wrote: > Hi, > > On 19/03/18 00:29, Martin Blumenstingl wrote: >> Hi Roger, >> >> On Fri, Mar 16, 2018 at 3:32 PM, Roger Quadros <rog...@ti.com> wrote: >>> +some TI folks >

Re: [PATCH usb-next v10 3/8] usb: core: add a wrapper for the USB PHYs on the HCD

2018-03-18 Thread Martin Blumenstingl
Hi Roger, On Fri, Mar 16, 2018 at 3:32 PM, Roger Quadros <rog...@ti.com> wrote: > +some TI folks > > Hi Martin, > > On 18/02/18 20:44, Martin Blumenstingl wrote: >> Many SoC platforms have separate devices for the USB PHY which are >> registered through the gener

Re: [PATCH usb-next v2 0/3] DWC3 support for Amlogic Meson AXG and GXL SoCs

2018-03-03 Thread Martin Blumenstingl
Hello Felipe, Hello Greg, On Tue, Feb 20, 2018 at 11:39 PM, Martin Blumenstingl <martin.blumensti...@googlemail.com> wrote: > Hello Felipe, > > On Sun, Feb 11, 2018 at 10:15 PM, Martin Blumenstingl > <martin.blumensti...@googlemail.com> wrote: >> Amlogic Meson AXG

[usb-next PATCH v11 3/8] usb: core: add a wrapper for the USB PHYs on the HCD

2018-03-03 Thread Martin Blumenstingl
to be initialized (if one of the USB PHYs it not initialized then none of USB port works at all). Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Tested-by: Yixun Lan <yixun@amlogic.com> Cc: Neil Armstrong <narmstr...@baylibre.com> Cc: Chunfeng Yun <chun

[usb-next PATCH v11 5/8] usb: host: xhci-mtk: remove custom USB PHY handling

2018-03-03 Thread Martin Blumenstingl
-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> --- drivers/usb/host/xhci-mtk.c | 98 + 1 file changed, 2 insertions(+), 96 deletions(-) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index b0ab4d5e2751..7334da

[usb-next PATCH v11 1/8] dt-bindings: usb: add the documentation for USB HCDs

2018-03-03 Thread Martin Blumenstingl
A USB HCD may have several PHYs which need to be configured before the the HCD starts working. This adds the documentation for such a USB HCD as well as a reference to the new "usb-hcd.txt" from all bindings that implement a USB HCD which support one USB PHY per port. Signed-off-

[usb-next PATCH v11 4/8] usb: core: hcd: integrate the PHY wrapper into the HCD core

2018-03-03 Thread Martin Blumenstingl
ot;multiple PHY" handling is disabled for drivers that opted out of the management logic of a single PHY. Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Acked-by: Alan Stern <st...@rowland.harvard.edu> Acked-by: Chunfeng Yun <chunfeng@mediat

[usb-next PATCH v11 6/8] usb: host: ehci-platform: remove custom USB PHY handling

2018-03-03 Thread Martin Blumenstingl
this. Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Acked-by: Alan Stern <st...@rowland.harvard.edu> --- drivers/usb/host/ehci-platform.c | 55 +++- 1 file changed, 4 insertions(+), 51 deletions(-) diff --git a/drivers/usb/host/ehci-

[usb-next PATCH v11 8/8] usb: core: hcd: remove support for initializing a single PHY

2018-03-03 Thread Martin Blumenstingl
With the new PHY wrapper in place we can now handle multiple PHYs. Remove the code which handles only one generic PHY as this is now covered (with support for multiple PHYs as well as suspend/resume support) by the new PHY wrapper. Signed-off-by: Martin Blumenstingl <martin.blumen

[usb-next PATCH v11 7/8] usb: host: ohci-platform: remove custom USB PHY handling

2018-03-03 Thread Martin Blumenstingl
this. Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Acked-by: Alan Stern <st...@rowland.harvard.edu> --- drivers/usb/host/ohci-platform.c | 56 1 file changed, 5 insertions(+), 51 deletions(-) diff --git a/drivers/usb/host/ohci-

[usb-next PATCH v11 2/8] usb: add a flag to skip PHY initialization to struct usb_hcd

2018-03-03 Thread Martin Blumenstingl
of the PHY management provided by the USB HCD core driver. This means that for these drivers the new "multiple PHY" handling (which will be added in a follow-up patch) will be disabled as well. Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Acked-by: Peter Chen <pet

[usb-next PATCH v11 0/8] initialize (multiple) PHYs for a HCD

2018-03-03 Thread Martin Blumenstingl
ic/2017-October/005192.html [10] http://lists.infradead.org/pipermail/linux-amlogic/2018-January/006274.html [11] https://marc.info/?l=linux-usb=151683941207898=2 [12] http://lists.infradead.org/pipermail/linux-amlogic/2018-February/006412.html [13] http://lists.infradead.org/pipermail/linux-amlogic/2018-Februar

Re: [PATCH usb-next v2 0/3] DWC3 support for Amlogic Meson AXG and GXL SoCs

2018-02-20 Thread Martin Blumenstingl
Hello Felipe, On Sun, Feb 11, 2018 at 10:15 PM, Martin Blumenstingl <martin.blumensti...@googlemail.com> wrote: > Amlogic Meson AXG and GXL SoCs can use the dwc3-of-simple with little > modifications. These SoCs use: > - a gate clock for the USB components (DWC3, USB PHYs) > -

[PATCH usb-next v10 2/8] usb: add a flag to skip PHY initialization to struct usb_hcd

2018-02-18 Thread Martin Blumenstingl
of the PHY management provided by the USB HCD core driver. This means that for these drivers the new "multiple PHY" handling (which will be added in a follow-up patch) will be disabled as well. Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> --- drivers/usb/chipidea/host.c

[PATCH usb-next v10 7/8] usb: host: ohci-platform: remove custom USB PHY handling

2018-02-18 Thread Martin Blumenstingl
this. Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Acked-by: Alan Stern <st...@rowland.harvard.edu> --- drivers/usb/host/ohci-platform.c | 56 1 file changed, 5 insertions(+), 51 deletions(-) diff --git a/drivers/usb/host/ohci-

[PATCH usb-next v10 5/8] usb: host: xhci-mtk: remove custom USB PHY handling

2018-02-18 Thread Martin Blumenstingl
-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> --- drivers/usb/host/xhci-mtk.c | 98 + 1 file changed, 2 insertions(+), 96 deletions(-) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index b0ab4d5e2751..7334da

[PATCH usb-next v10 1/8] dt-bindings: usb: add the documentation for USB HCDs

2018-02-18 Thread Martin Blumenstingl
A USB HCD may have several PHYs which need to be configured before the the HCD starts working. This adds the documentation for such a USB HCD as well as a reference to the new "usb-hcd.txt" from all bindings that implement a USB HCD which support one USB PHY per port. Signed-off-

[PATCH usb-next v10 3/8] usb: core: add a wrapper for the USB PHYs on the HCD

2018-02-18 Thread Martin Blumenstingl
to be initialized (if one of the USB PHYs it not initialized then none of USB port works at all). Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Tested-by: Yixun Lan <yixun@amlogic.com> Cc: Neil Armstrong <narmstr...@baylibre.com> Cc: Chunfeng Yun <chun

[PATCH usb-next v10 8/8] usb: core: hcd: remove support for initializing a single PHY

2018-02-18 Thread Martin Blumenstingl
With the new PHY wrapper in place we can now handle multiple PHYs. Remove the code which handles only one generic PHY as this is now covered (with support for multiple PHYs as well as suspend/resume support) by the new PHY wrapper. Signed-off-by: Martin Blumenstingl <martin.blumen

[PATCH usb-next v10 0/8] initialize (multiple) PHYs for a HCD

2018-02-18 Thread Martin Blumenstingl
ttp://lists.infradead.org/pipermail/linux-amlogic/2017-October/005124.html [9] http://lists.infradead.org/pipermail/linux-amlogic/2017-October/005192.html [10] http://lists.infradead.org/pipermail/linux-amlogic/2018-January/006274.html [11] https://marc.info/?l=linux-usb=151683941207898=2 [12] http://lists.

[PATCH usb-next v10 4/8] usb: core: hcd: integrate the PHY wrapper into the HCD core

2018-02-18 Thread Martin Blumenstingl
ot;multiple PHY" handling is disabled for drivers that opted out of the management logic of a single PHY. Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Acked-by: Alan Stern <st...@rowland.harvard.edu> Acked-by: Chunfeng Yun <chunfeng@mediat

[PATCH usb-next v10 6/8] usb: host: ehci-platform: remove custom USB PHY handling

2018-02-18 Thread Martin Blumenstingl
this. Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Acked-by: Alan Stern <st...@rowland.harvard.edu> --- drivers/usb/host/ehci-platform.c | 55 +++- 1 file changed, 4 insertions(+), 51 deletions(-) diff --git a/drivers/usb/host/ehci-

Re: [PATCH usb-next v9 2/8] usb: add a flag to skip PHY initialization to struct usb_hcd

2018-02-12 Thread Martin Blumenstingl
Hi Alan, On Mon, Feb 12, 2018 at 4:15 PM, Alan Stern <st...@rowland.harvard.edu> wrote: > On Sun, 11 Feb 2018, Martin Blumenstingl wrote: > >> The USB HCD core driver parses the device-tree node for "phys" and >> "usb-phys" properties. I

[PATCH usb-next v2 2/3] usb: dwc3: of-simple: add support for shared and pulsed reset lines

2018-02-11 Thread Martin Blumenstingl
. For now this falls back to the old defaults, which are: - reset lines are exclusive - level resets are being used Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Tested-by: Yixun Lan <yixun@amlogic.com> --- drivers/usb/dwc3/dwc3-of-simple.c | 23 ++

[PATCH usb-next v2 3/3] usb: dwc3: of-simple: add support for the Amlogic Meson GXL and AXG SoCs

2018-02-11 Thread Martin Blumenstingl
a level reset (reset_control_{assert,deassert}). Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Tested-by: Yixun Lan <yixun@amlogic.com> --- drivers/usb/dwc3/dwc3-of-simple.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/dwc3/dwc3-of

[PATCH usb-next v2 0/3] DWC3 support for Amlogic Meson AXG and GXL SoCs

2018-02-11 Thread Martin Blumenstingl
on AXG SoC [0] http://lists.infradead.org/pipermail/linux-amlogic/2018-January/006274.html [1] http://lists.infradead.org/pipermail/linux-amlogic/2018-January/006286.html Martin Blumenstingl (3): dt-bindings: usb: add support for dwc3 controller on Amlogic Meson GX usb: dwc3: of-simple: a

[PATCH usb-next v2 1/3] dt-bindings: usb: add support for dwc3 controller on Amlogic Meson GX

2018-02-11 Thread Martin Blumenstingl
Amlogic Meson GX SoCs (GXL and AXG) come with a (host-only) dwc3 USB controller. This requires a clock to be enabled and a reset line to be pulsed to get the hardware into a known state. Add the documentation for this IP block, similar to "qcom,dwc3.txt". Signed-off-by: Martin Bl

[PATCH usb-next v9 5/8] usb: host: xhci-mtk: remove custom USB PHY handling

2018-02-11 Thread Martin Blumenstingl
-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> --- drivers/usb/host/xhci-mtk.c | 98 + 1 file changed, 2 insertions(+), 96 deletions(-) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index b0ab4d5e2751..7334da

[PATCH usb-next v9 6/8] usb: host: ehci-platform: remove custom USB PHY handling

2018-02-11 Thread Martin Blumenstingl
this. Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Acked-by: Alan Stern <st...@rowland.harvard.edu> --- drivers/usb/host/ehci-platform.c | 55 +++- 1 file changed, 4 insertions(+), 51 deletions(-) diff --git a/drivers/usb/host/ehci-

[PATCH usb-next v9 7/8] usb: host: ohci-platform: remove custom USB PHY handling

2018-02-11 Thread Martin Blumenstingl
this. Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Acked-by: Alan Stern <st...@rowland.harvard.edu> --- drivers/usb/host/ohci-platform.c | 56 1 file changed, 5 insertions(+), 51 deletions(-) diff --git a/drivers/usb/host/ohci-

[PATCH usb-next v9 1/8] dt-bindings: usb: add the documentation for USB HCDs

2018-02-11 Thread Martin Blumenstingl
A USB HCD may have several PHYs which need to be configured before the the HCD starts working. This adds the documentation for such a USB HCD as well as a reference to the new "usb-hcd.txt" from all bindings that implement a USB HCD which support one USB PHY per port. Signed-off-

[PATCH usb-next v9 4/8] usb: core: hcd: integrate the PHY wrapper into the HCD core

2018-02-11 Thread Martin Blumenstingl
ot;multiple PHY" handling is disabled for drivers that opted out of the management logic of a single PHY. Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Acked-by: Alan Stern <st...@rowland.harvard.edu> Acked-by: Chunfeng Yun <chunfeng@mediat

[PATCH usb-next v9 2/8] usb: add a flag to skip PHY initialization to struct usb_hcd

2018-02-11 Thread Martin Blumenstingl
se the new flag if they want to opt out of the PHY management provided by the USB HCD core driver. This means that for these drivers the new "multiple PHY" handling (which will be added in a follow-up patch) will be disabled as well. Signed-off-by: Martin Blumenstingl <martin.blumensti..

[PATCH usb-next v9 8/8] usb: core: hcd: remove support for initializing a single PHY

2018-02-11 Thread Martin Blumenstingl
With the new PHY wrapper in place we can now handle multiple PHYs. Remove the code which handles only one generic PHY as this is now covered (with support for multiple PHYs as well as suspend/resume support) by the new PHY wrapper. Signed-off-by: Martin Blumenstingl <martin.blumen

[PATCH usb-next v9 0/8] initialize (multiple) PHYs for a HCD

2018-02-11 Thread Martin Blumenstingl
ctober/005121.html [8] http://lists.infradead.org/pipermail/linux-amlogic/2017-October/005124.html [9] http://lists.infradead.org/pipermail/linux-amlogic/2017-October/005192.html [10] http://lists.infradead.org/pipermail/linux-amlogic/2018-January/006274.html [11] https://marc.info/?l=linux-usb=1516839

[PATCH usb-next v9 3/8] usb: core: add a wrapper for the USB PHYs on the HCD

2018-02-11 Thread Martin Blumenstingl
to be initialized (if one of the USB PHYs it not initialized then none of USB port works at all). Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Tested-by: Yixun Lan <yixun@amlogic.com> Cc: Neil Armstrong <narmstr...@baylibre.com> Cc: Chunfeng Yun <chun

Re: [RFC/RFT usb-next v1 5/6] usb: chipidea: do not set the "phy" field in struct usb_hcd

2018-02-04 Thread Martin Blumenstingl
gt;> Remove the code which sets struct usb_hcd's phy field from the >> >> chipidea driver as this field will go away soon. >> >> >> >> Signed-off-by: Martin Blumenstingl >> >> <martin.blumensti...@googlemail.com> >> >> --- >> &g

Re: [PATCH 2/3] usb: dwc3: of-simple: add support for shared and pulsed reset lines

2018-02-03 Thread Martin Blumenstingl
Hi Felipe, On Mon, Jan 29, 2018 at 9:18 AM, Felipe Balbi <ba...@kernel.org> wrote: > > Hi, > > Martin Blumenstingl <martin.blumensti...@googlemail.com> writes: >> Some SoCs (such as Amlogic Meson GXL for example) share the reset line >> with other componen

[PATCH 0/3] DWC3 support for Amlogic Meson AXG and GXL SoCs

2018-01-28 Thread Martin Blumenstingl
/pipermail/linux-amlogic/2018-January/006274.html Martin Blumenstingl (3): dt-bindings: usb: add support for dwc3 controller on Amlogic Meson GX usb: dwc3: of-simple: add support for shared and pulsed reset lines usb: dwc3: of-simple: add support for the Amlogic Meson GXL and AX

[PATCH 1/3] dt-bindings: usb: add support for dwc3 controller on Amlogic Meson GX

2018-01-28 Thread Martin Blumenstingl
Amlogic Meson GX SoCs (GXL and AXG) come with a (host-only) dwc3 USB controller. This requires a clock to be enabled and a reset line to be pulsed to get the hardware into a known state. Add the documentation for this IP block, similar to "qcom,dwc3.txt". Signed-off-by: Martin Bl

[PATCH 3/3] usb: dwc3: of-simple: add support for the Amlogic Meson GXL and AXG SoCs

2018-01-28 Thread Martin Blumenstingl
a level reset (reset_control_{assert,deassert}). Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> --- drivers/usb/dwc3/dwc3-of-simple.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-si

[PATCH 2/3] usb: dwc3: of-simple: add support for shared and pulsed reset lines

2018-01-28 Thread Martin Blumenstingl
an internal per-of_device_id struct which can be used to configure whether the reset lines are shared and whether they use level or pulse resets. For now this falls back to the old defaults, which are: - reset lines are exclusive - level resets are being used Signed-off-by: Martin Blumenstingl

Re: [RFC/RFT usb-next v1 5/6] usb: chipidea: do not set the "phy" field in struct usb_hcd

2018-01-26 Thread Martin Blumenstingl
hcd's phy field from the chipidea >> driver as >> this field will go away soon. >> >> Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> >> --- >> drivers/usb/chipidea/host.c | 4 +--- >> 1 file changed, 1 insertion(+), 3 deletions(-) &

Re: [RFC/RFT usb-next v1 1/6] usb: mtu3: remove custom USB PHY handling

2018-01-25 Thread Martin Blumenstingl
Hi, On Thu, Jan 25, 2018 at 3:47 AM, Chunfeng Yun <chunfeng@mediatek.com> wrote: > Hi, > > On Thu, 2018-01-25 at 01:16 +0100, Martin Blumenstingl wrote: >> The new PHY wrapper is now wired up in the core HCD code. This means >> that PHYs are now controlled (ini

[RFC/RFT usb-next v1 5/6] usb: chipidea: do not set the "phy" field in struct usb_hcd

2018-01-24 Thread Martin Blumenstingl
Now that usb_add_hcd parses all generic PHYs anyways the code which skips initialization of a single PHY will go away. Remove the code which sets struct usb_hcd's phy field from the chipidea driver as this field will go away soon. Signed-off-by: Martin Blumenstingl <martin.blumen

[RFC/RFT usb-next v1 6/6] usb: core: hcd: remove support for initializing a single PHY

2018-01-24 Thread Martin Blumenstingl
With the new PHY wrapper in place we can now handle multiple PHYs. Remove the code which handles only one generic PHY as this is now covered (with support for multiple PHYs as well as suspend/resume support) by the new PHY wrapper. Signed-off-by: Martin Blumenstingl <martin.blumen

[RFC/RFT usb-next v1 4/6] usb: host: ohci-platform: remove custom USB PHY handling

2018-01-24 Thread Martin Blumenstingl
this. Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> --- drivers/usb/host/ohci-platform.c | 56 1 file changed, 5 insertions(+), 51 deletions(-) diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c

[RFC/RFT usb-next v1 0/6] remove driver-specific "multiple PHY" handling

2018-01-24 Thread Martin Blumenstingl
than one PHY) preconditions for testing this series: all patches from [0] need to be applied. disclaimer: I don't have any hardware that uses any of the affected drivers! [0] http://lists.infradead.org/pipermail/linux-amlogic/2018-January/006274.html Martin Blumenstingl (6): usb: mtu3: remo

[RFC/RFT usb-next v1 3/6] usb: host: ehci-platform: remove custom USB PHY handling

2018-01-24 Thread Martin Blumenstingl
this. Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> --- drivers/usb/host/ehci-platform.c | 55 +++- 1 file changed, 4 insertions(+), 51 deletions(-) diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c

[RFC/RFT usb-next v1 1/6] usb: mtu3: remove custom USB PHY handling

2018-01-24 Thread Martin Blumenstingl
-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> --- drivers/usb/mtu3/mtu3_plat.c | 101 --- 1 file changed, 101 deletions(-) diff --git a/drivers/usb/mtu3/mtu3_plat.c b/drivers/usb/mtu3/mtu3_plat.c index 628d5ce356ca..a894ddf25bcd

[RFC/RFT usb-next v1 2/6] usb: host: xhci-mtk: remove custom USB PHY handling

2018-01-24 Thread Martin Blumenstingl
-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> --- drivers/usb/host/xhci-mtk.c | 98 + 1 file changed, 2 insertions(+), 96 deletions(-) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index b0ab4d5e2751..7334da

[RFC usb-next v8 3/3] usb: core: hcd: integrate the PHY wrapper into the HCD core

2018-01-24 Thread Martin Blumenstingl
the dwc3 driver internally creates a xhci-hcd which then registers a HCD which then triggers our new PHY wrapper. Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Acked-by: Alan Stern <st...@rowland.harvard.edu> Acked-by: Chunfeng Yun <chunfeng@mediatek.com>

[RFC usb-next v8 0/3] initialize (multiple) PHYs for a HCD

2018-01-24 Thread Martin Blumenstingl
] http://lists.infradead.org/pipermail/linux-amlogic/2017-October/004924.html [6] http://lists.infradead.org/pipermail/linux-amlogic/2017-October/005049.html [7] http://lists.infradead.org/pipermail/linux-amlogic/2017-October/005121.html [8] http://lists.infradead.org/pipermail/linux-amlogic/2017-O

[RFC usb-next v8 1/3] dt-bindings: usb: add the documentation for USB HCDs

2018-01-24 Thread Martin Blumenstingl
A USB HCD may have several PHYs which need to be configured before the the HCD starts working. This adds the documentation for such a USB HCD as well as a reference to the new "usb-hcd.txt" from all bindings that implement a USB HCD which support one USB PHY per port. Signed-off-

[RFC usb-next v8 2/3] usb: core: add a wrapper for the USB PHYs on the HCD

2018-01-24 Thread Martin Blumenstingl
to be initialized (if one of the USB PHYs it not initialized then none of USB port works at all). Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> Cc: Neil Armstrong <narmstr...@baylibre.com> Cc: Chunfeng Yun <chunfeng@mediatek.com> --- drivers/usb/c

  1   2   3   >