[PATCH] usb: chipidea: Properly mark little endian descriptors

2016-09-13 Thread Stephen Boyd
where we're missing conversions. Cc: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/udc.c | 6 +++--- drivers/usb/chipidea/udc.h | 12 ++-- 2 files changed,

Re: [PATCH v4 03/22] usb: ulpi: Support device discovery via DT

2016-09-12 Thread Stephen Boyd
Quoting Stephen Boyd (2016-09-07 14:35:00) > @@ -174,6 +219,21 @@ static int ulpi_register(struct device *dev, struct ulpi > *ulpi) > ulpi->id.product = ulpi_read(ulpi, ULPI_PRODUCT_ID_LOW); > ulpi->id.product |= ulpi_read(ulpi, ULPI_PRODUCT_ID_HIGH) <<

Re: [PATCH 1/7] clk: gxbb: expose USB clocks

2016-09-07 Thread Stephen Boyd
On 09/07, Martin Blumenstingl wrote: > On Wed, Sep 7, 2016 at 2:33 AM, Stephen Boyd <sb...@codeaurora.org> wrote: > > On 09/04, Martin Blumenstingl wrote: > >> USB0_DDR_BRIDGE and USB1_DDR_BRIDGE1 are needed for the related > >> dwc2 usb controller. USB, USB0

[PATCH v4 04/22] usb: chipidea: Only read/write OTGSC from one place

2016-09-07 Thread Stephen Boyd
.com> Fixes: 3ecb3e09b042 ("usb: chipidea: Use extcon framework for VBUS and ID detect") Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci.h | 3 --- drivers/usb/chipidea/core.c | 32 drivers/usb/chipidea/otg.c | 34

[PATCH v4 02/22] of: device: Export of_device_{get_modalias,uvent_modalias} to modules

2016-09-07 Thread Stephen Boyd
The ULPI bus can be built as a module, and it will soon be calling these functions when it supports probing devices from DT. Export them so they can be used by the ULPI module. Cc: Rob Herring <robh...@kernel.org> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boy

[PATCH v4 05/22] usb: chipidea: Handle extcon events properly

2016-09-07 Thread Stephen Boyd
ot;Ivan T. Ivanov" <iivanov...@gmail.com> Fixes: 3ecb3e09b042 ("usb: chipidea: Use extcon framework for VBUS and ID detect") Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/otg.c | 46 +++- include/linux

[PATCH v4 03/22] usb: ulpi: Support device discovery via DT

2016-09-07 Thread Stephen Boyd
Heikki Krogerus <heikki.kroge...@linux.intel.com> Cc: <devicet...@vger.kernel.org> Cc: Rob Herring <robh...@kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- Documentation/devicetree/bindings/usb/ulpi.txt | 20 +++ drivers/usb/common/ul

[PATCH v4 10/22] usb: chipidea: Consolidate extcon notifiers

2016-09-07 Thread Stephen Boyd
pin is pulled low, so we change the name of ->state to ->connected to properly reflect that we're interested in the cable being connected. Cc: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: "Ivan T. Ivanov" <iivanov...@gmail.com> S

[PATCH v4 09/22] usb: chipidea: Add support for ULPI PHY bus

2016-09-07 Thread Stephen Boyd
: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Heikki Krogerus <heikki.kroge...@linux.intel.com> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/Kconfig | 7 +++ drivers/usb/chipidea/Makefile | 1 + drivers/usb/chipidea/ci.h |

[PATCH v4 11/22] usb: chipidea: msm: Mark device as runtime pm active

2016-09-07 Thread Stephen Boyd
; Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci_hdrc_msm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c b/drivers/usb/chipidea/ci_hdrc_msm.c index 3889809fd0c4..89c1a02d69b5 100644 --- a/drivers/usb/chipidea/ci_hdrc_msm.c

[PATCH v4 19/22] usb: chipidea: msm: Handle phy power states

2016-09-07 Thread Stephen Boyd
<peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- drivers/usb/chipidea/ci_hdrc_msm.c | 40 +++--- drivers/usb/chipidea/core.c| 8 ++-- drivers/usb/chipidea/

[PATCH v4 21/22] phy: Add support for Qualcomm's USB HSIC phy

2016-09-07 Thread Stephen Boyd
The HSIC USB controller on qcom SoCs has an integrated all digital phy controlled via the ULPI viewport. Cc: Kishon Vijay Abraham I <kis...@ti.com> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- .../devicetree/bindings/phy/qcom,usb-h

[PATCH v4 18/22] usb: chipidea: msm: Add reset controller for PHY POR bit

2016-09-07 Thread Stephen Boyd
Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/Kconfig | 1 + drivers/usb/chipidea/ci_hdrc_msm.c | 50 -- 2 files changed, 49 insertions(+), 2 deletions(-) diff --git a/dr

[PATCH v4 12/22] usb: chipidea: msm: Rely on core to override AHBBURST

2016-09-07 Thread Stephen Boyd
to be anything besides 0, we expect the 'ahb-burst-config' dts property to be present. Acked-by: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci_hdrc_msm.c | 4 ++

[PATCH v4 07/22] usb: chipidea: Notify events when switching host mode

2016-09-07 Thread Stephen Boyd
wrapper specific things after the device is stopped. So when we stop the host role, send the stopped event. Acked-by: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ho

[PATCH v4 06/22] usb: chipidea: Add platform flag for wrapper phy management

2016-09-07 Thread Stephen Boyd
. Acked-by: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/core.c | 6 ++ include/linux/usb/chipidea.h | 1 + 2 files changed, 7 insertions(+) diff --git a/dr

[PATCH v4 14/22] usb: chipidea: msm: Add proper clk and reset support

2016-09-07 Thread Stephen Boyd
oah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci_hdrc_msm.c | 72 +++--- 1 file changed, 68 insertions(+), 4 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c b/drivers/usb/

[PATCH v4 22/22] phy: Add support for Qualcomm's USB HS phy

2016-09-07 Thread Stephen Boyd
The high-speed phy on qcom SoCs is controlled via the ULPI viewport. Cc: Kishon Vijay Abraham I <kis...@ti.com> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- .../devicetree/bindings/phy/qcom,usb-hs-phy.txt| 83 ++ d

[PATCH v4 13/22] usb: chipidea: msm: Use hw_write_id_reg() instead of writel

2016-09-07 Thread Stephen Boyd
to delete that file soon. Acked-by: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci_hdrc_msm.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff -

[PATCH v4 16/22] usb: chipidea: msm: Restore wrapper settings after reset

2016-09-07 Thread Stephen Boyd
consolidate the register writes into the wrapper driver instead so that we clearly split the wrapper from the phys. Acked-by: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- dr

[PATCH v4 20/22] usb: chipidea: msm: Be silent on probe defer errors

2016-09-07 Thread Stephen Boyd
If something fails in ci_hdrc_add_device() due to probe defer, we shouldn't print an error message. Be silent in this case as we'll try probe again later. Acked-by: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boy

[PATCH v4 17/22] usb: chipidea: msm: Make platform data driver local instead of global

2016-09-07 Thread Stephen Boyd
of this structure per each device instance so that odd things don't happen. Acked-by: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci_hdrc_msm.c | 23 +

[PATCH v4 15/22] usb: chipidea: msm: Mux over secondary phy at the right time

2016-09-07 Thread Stephen Boyd
phy) after the RESET bit is set in USBCMD. Acked-by: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci_hdrc_msm.c | 62 --

[PATCH v4 08/22] usb: chipidea: Remove locking in ci_udc_start()

2016-09-07 Thread Stephen Boyd
om> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/udc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index 065f5d97aa67..f16be4710cdb

[PATCH v4 00/22] Support qcom's HSIC USB and rewrite USB2 HS support

2016-09-07 Thread Stephen Boyd
https://git.linaro.org/people/stephen.boyd/linux.git/shortlog/refs/heads/usb-hsic-8074 Stephen Boyd (22): of: device: Support loading a module with OF based modalias of: device: Export of_device_{get_modalias,uvent_modalias} to modules usb: ulpi: Support device discovery via DT usb: chipidea: Only r

[PATCH v4 01/22] of: device: Support loading a module with OF based modalias

2016-09-07 Thread Stephen Boyd
to request it with the OF based modalias instead. Add a common function that allows anyone to request a module with the OF based modalias. Cc: Rob Herring <robh...@kernel.org> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/of/d

Re: [PATCH 1/7] clk: gxbb: expose USB clocks

2016-09-07 Thread Stephen Boyd
.com> > Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com> > --- Assuming authorship is resolved: Acked-by: Stephen Boyd <sb...@codeaurora.org> -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH 1/7] clk: gxbb: expose USB clocks

2016-09-06 Thread Stephen Boyd
On 09/04, Martin Blumenstingl wrote: > USB0_DDR_BRIDGE and USB1_DDR_BRIDGE1 are needed for the related > dwc2 usb controller. USB, USB0 and USB1 are needed for the PHYs. > Expose these clocks to DT and comment out in clk driver. > > Signed-off-by: Jerome Brunet >

Re: [PATCH v3 10/22] usb: chipidea: Consolidate extcon notifiers

2016-09-06 Thread Stephen Boyd
On Sun, Sep 4, 2016 at 7:39 PM, Peter Chen <hzpeterc...@gmail.com> wrote: > On Fri, Sep 02, 2016 at 06:03:06PM -0700, Stephen Boyd wrote: >> On Thu, Sep 1, 2016 at 8:17 PM, Peter Chen <hzpeterc...@gmail.com> wrote: >> > On Wed, Aug 31, 2016 at 05:40:

Re: [PATCH v3 03/22] usb: ulpi: Support device discovery via device properties

2016-09-02 Thread Stephen Boyd
On Fri, Sep 2, 2016 at 7:09 AM, Heikki Krogerus <heikki.kroge...@linux.intel.com> wrote: > Hi, > > On Wed, Aug 31, 2016 at 05:40:17PM -0700, Stephen Boyd wrote: >> @@ -174,14 +219,37 @@ static int ulpi_register(struct device *dev, struct >> ulpi *ulpi) >>

Re: [PATCH v3 10/22] usb: chipidea: Consolidate extcon notifiers

2016-09-02 Thread Stephen Boyd
On Thu, Sep 1, 2016 at 8:17 PM, Peter Chen <hzpeterc...@gmail.com> wrote: > On Wed, Aug 31, 2016 at 05:40:24PM -0700, Stephen Boyd wrote: >> >> >> if (cable->state) >> - val |= OTGSC_ID; >> +

[PATCH v3 03/22] usb: ulpi: Support device discovery via device properties

2016-08-31 Thread Stephen Boyd
before it's powered up and avoid this problem. Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Heikki Krogerus <heikki.kroge...@linux.intel.com> Cc: <devicet...@vger.kernel.org> Cc: Rob Herring <robh...@kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@lin

[PATCH v3 02/22] of: device: Export of_device_{get_modalias,uvent_modalias} to modules

2016-08-31 Thread Stephen Boyd
The ULPI bus can be built as a module, and it will soon be calling these functions when it supports probing devices from DT. Export them so they can be used by the ULPI module. Cc: Rob Herring <robh...@kernel.org> Cc: <devicet...@vger.kernel.or Signed-off-by: Stephen Boyd <stephen.b..

[PATCH v3 00/22] Support qcom's HSIC USB and rewrite USB2 HS phy support

2016-08-31 Thread Stephen Boyd
//lkml.org/lkml/2016/2/22/7 [2] http://lkml.kernel.org/g/1449621618-11900-1-git-send-email-tim.b...@sonymobile.com [3] https://git.linaro.org/people/stephen.boyd/linux.git/shortlog/refs/heads/usb-hsic-8074 Stephen Boyd (22): of: device: Support loading a module with OF based modalias

[PATCH v3 05/22] usb: chipidea: Handle extcon events properly

2016-08-31 Thread Stephen Boyd
ot;Ivan T. Ivanov" <iivanov...@gmail.com> Fixes: 3ecb3e09b042 ("usb: chipidea: Use extcon framework for VBUS and ID detect") Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/otg.c | 46 +++- include/linux

[PATCH v3 11/22] usb: chipidea: msm: Mark device as runtime pm active

2016-08-31 Thread Stephen Boyd
; Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci_hdrc_msm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c b/drivers/usb/chipidea/ci_hdrc_msm.c index 3889809fd0c4..89c1a02d69b5 100644 --- a/drivers/usb/chipidea/ci_hdrc_msm.c

[PATCH v3 04/22] usb: chipidea: Only read/write OTGSC from one place

2016-08-31 Thread Stephen Boyd
t; Fixes: 3ecb3e09b042 ("usb: chipidea: Use extcon framework for VBUS and ID detect") Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci.h | 3 --- drivers/usb/chipidea/core.c | 32 drivers/usb/chipidea/otg.c | 34

[PATCH v3 01/22] of: device: Support loading a module with OF based modalias

2016-08-31 Thread Stephen Boyd
to request it with the OF based modalias instead. Add a common function that allows anyone to request a module with the OF based modalias. Cc: Rob Herring <robh...@kernel.org> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/of/d

[PATCH v3 06/22] usb: chipidea: Add platform flag for wrapper phy management

2016-08-31 Thread Stephen Boyd
. Acked-by: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/core.c | 6 ++ include/linux/usb/chipidea.h | 1 + 2 files changed, 7 insertions(+) diff --git a/dr

[PATCH v3 12/22] usb: chipidea: msm: Rely on core to override AHBBURST

2016-08-31 Thread Stephen Boyd
to be anything besides 0, we expect the 'ahb-burst-config' dts property to be present. Acked-by: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci_hdrc_msm.c | 4 ++

[PATCH v3 10/22] usb: chipidea: Consolidate extcon notifiers

2016-08-31 Thread Stephen Boyd
pin is pulled low. Cc: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: "Ivan T. Ivanov" <iivanov...@gmail.com> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/core.c | 41 ++

[PATCH v3 07/22] usb: chipidea: Notify events when switching host mode

2016-08-31 Thread Stephen Boyd
wrapper specific things after the device is stopped. So when we stop the host role, send the stopped event. Acked-by: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ho

[PATCH v3 09/22] usb: chipidea: Add support for ULPI PHY bus

2016-08-31 Thread Stephen Boyd
Kroah-Hartman <gre...@linuxfoundation.org> Cc: Heikki Krogerus <heikki.kroge...@linux.intel.com> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/Kconfig | 7 +++ drivers/usb/chipidea/Makefile | 1 + drivers/usb/chipidea/ci.h | 21 ++

[PATCH v3 21/22] phy: Add support for Qualcomm's USB HSIC phy

2016-08-31 Thread Stephen Boyd
The HSIC USB controller on qcom SoCs has an integrated all digital phy controlled via the ULPI viewport. Cc: Kishon Vijay Abraham I <kis...@ti.com> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- .../devicetree/bindings/phy/qcom,usb-h

[PATCH v3 22/22] phy: Add support for Qualcomm's USB HS phy

2016-08-31 Thread Stephen Boyd
The high-speed phy on qcom SoCs is controlled via the ULPI viewport. Cc: Kishon Vijay Abraham I <kis...@ti.com> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- .../devicetree/bindings/phy/qcom,usb-hs-phy.txt| 83 ++ d

[PATCH v3 13/22] usb: chipidea: msm: Use hw_write_id_reg() instead of writel

2016-08-31 Thread Stephen Boyd
to delete that file soon. Acked-by: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci_hdrc_msm.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff -

[PATCH v3 20/22] usb: chipidea: msm: Be silent on probe defer errors

2016-08-31 Thread Stephen Boyd
If something fails in ci_hdrc_add_device() due to probe defer, we shouldn't print an error message. Be silent in this case as we'll try probe again later. Acked-by: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boy

[PATCH v3 14/22] usb: chipidea: msm: Add proper clk and reset support

2016-08-31 Thread Stephen Boyd
oah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci_hdrc_msm.c | 72 +++--- 1 file changed, 68 insertions(+), 4 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c b/drivers/usb/

[PATCH v3 19/22] usb: chipidea: msm: Handle phy power states

2016-08-31 Thread Stephen Boyd
<peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- drivers/usb/chipidea/ci_hdrc_msm.c | 40 +++--- drivers/usb/chipidea/core.c| 8 ++-- drivers/usb/chipidea/

[PATCH v3 18/22] usb: chipidea: msm: Add reset controller for PHY POR bit

2016-08-31 Thread Stephen Boyd
artman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/Kconfig | 1 + drivers/usb/chipidea/ci_hdrc_msm.c | 50 -- 2 files changed, 49 insertions(+), 2 deletions(-) diff --git a/drivers/us

[PATCH v3 17/22] usb: chipidea: msm: Make platform data driver local instead of global

2016-08-31 Thread Stephen Boyd
of this structure per each device instance so that odd things don't happen. Acked-by: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci_hdrc_msm.c | 23 +

[PATCH v3 16/22] usb: chipidea: msm: Restore wrapper settings after reset

2016-08-31 Thread Stephen Boyd
consolidate the register writes into the wrapper driver instead so that we clearly split the wrapper from the phys. Acked-by: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- dr

[PATCH v3 15/22] usb: chipidea: msm: Mux over secondary phy at the right time

2016-08-31 Thread Stephen Boyd
phy) after the RESET bit is set in USBCMD. Acked-by: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci_hdrc_msm.c | 62 --

Re: [PATCH v2 03/22] usb: ulpi: Support device discovery via device properties

2016-08-23 Thread Stephen Boyd
On Tue, Aug 23, 2016 at 4:06 PM, Rob Herring <r...@kernel.org> wrote: > On Tue, Aug 23, 2016 at 3:00 PM, Stephen Boyd <stephen.b...@linaro.org> wrote: >> On Fri, Aug 5, 2016 at 2:40 PM, Stephen Boyd <stephen.b...@linaro.org> wrote: >>> Quoting Rob Herring (2016

Re: [PATCH v2 03/22] usb: ulpi: Support device discovery via device properties

2016-08-23 Thread Stephen Boyd
On Fri, Aug 5, 2016 at 2:40 PM, Stephen Boyd <stephen.b...@linaro.org> wrote: > Quoting Rob Herring (2016-07-17 19:23:55) >> On Thu, Jul 07, 2016 at 03:20:54PM -0700, Stephen Boyd wrote: >> > +--- >> > + >> > +usb { >> > + compatibl

Re: [PATCH v2 03/22] usb: ulpi: Support device discovery via device properties

2016-08-23 Thread Stephen Boyd
On Fri, Aug 5, 2016 at 2:27 PM, Stephen Boyd <stephen.b...@linaro.org> wrote: > Quoting Peter Chen (2016-07-08 02:04:58) >> On Thu, Jul 07, 2016 at 03:20:54PM -0700, Stephen Boyd wrote: >> > @@ -39,6 +42,10 @@ static int ulpi_match(struct device *dev, struct &g

Re: [PATCH v5 5/6] usb: chipidea: let chipidea core device of_node equal's glue layer device of_node

2016-08-09 Thread Stephen Boyd
Quoting Peter Chen (2016-08-08 01:52:10) > From: Peter Chen > > At device tree, we have no device node for chipidea core, > the glue layer's node is the parent node for host and udc > device. But in related driver, the parent device is chipidea > core. So, in order to

Re: [PATCH v2 18/22] usb: chipidea: msm: Add reset controller for PHY POR bit

2016-07-11 Thread Stephen Boyd
On 10 July 2016 at 22:32, Peter Chen <hzpeterc...@gmail.com> wrote: > On Thu, Jul 07, 2016 at 03:21:09PM -0700, Stephen Boyd wrote: >> @@ -40,11 +43,38 @@ struct ci_hdrc_msm { >> struct clk *iface_clk; >> struct clk *fs_clk; >> struct ci_hdrc_pla

Re: [PATCH v2 15/22] usb: chipidea: msm: Mux over secondary phy at the right time

2016-07-11 Thread Stephen Boyd
On 10 July 2016 at 21:43, Peter Chen <hzpeterc...@gmail.com> wrote: > On Thu, Jul 07, 2016 at 03:21:06PM -0700, Stephen Boyd wrote: >> diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c >> b/drivers/usb/chipidea/ci_hdrc_msm.c >> index 7e870a253f55..7708bee3ff3e 100644 &g

Re: [PATCH v2 10/22] usb: chipidea: Add support for ULPI PHY bus

2016-07-11 Thread Stephen Boyd
On 10 July 2016 at 20:10, Peter Chen <hzpeterc...@gmail.com> wrote: > On Thu, Jul 07, 2016 at 03:21:01PM -0700, Stephen Boyd wrote: >> @@ -418,6 +427,17 @@ static inline bool ci_otg_is_fsm_mode(struct ci_hdrc >> *ci) >> #endif >> } >> >> +#if

Re: [PATCH 5/6] usb: chipidea: host: let the hcd know's parent device node

2016-07-07 Thread Stephen Boyd
Quoting Peter Chen (2016-07-07 02:14:51) > diff --git a/drivers/usb/chipidea/host.c b/drivers/usb/chipidea/host.c > index 053bac9..55120ef 100644 > --- a/drivers/usb/chipidea/host.c > +++ b/drivers/usb/chipidea/host.c > @@ -109,15 +109,25 @@ static int host_start(struct ci_hdrc *ci) >

[PATCH v2 01/22] of: device: Support loading a module with OF based modalias

2016-07-07 Thread Stephen Boyd
to request it with the OF based modalias instead. Add a common function that allows anyone to request a module with the OF based modalias. Cc: Rob Herring <robh...@kernel.org> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/of/d

[PATCH v2 08/22] usb: chipidea: Remove locking in ci_udc_start()

2016-07-07 Thread Stephen Boyd
Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/udc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index 065f5d97aa67..f16be4710cdb 100

[PATCH v2 21/22] phy: Add support for Qualcomm's USB HSIC phy

2016-07-07 Thread Stephen Boyd
The HSIC USB controller on qcom SoCs has an integrated all digital phy controlled via the ULPI viewport. Cc: Kishon Vijay Abraham I <kis...@ti.com> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- .../devicetree/bindings/phy/qcom,usb-h

[PATCH v2 05/22] usb: chipidea: Handle extcon events properly

2016-07-07 Thread Stephen Boyd
ot;Ivan T. Ivanov" <iivanov...@gmail.com> Fixes: 3ecb3e09b042 ("usb: chipidea: Use extcon framework for VBUS and ID detect") Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/otg.c | 46 +++- include/linux

[PATCH v2 09/22] usb: chipidea: Kick OTG state machine for AVVIS with vbus extcon

2016-07-07 Thread Stephen Boyd
r.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- I think this was rejected last time around but I've kept it in the series to continue discussion on how we're supposed to be emulating vbus an id pin interr

[PATCH v2 07/22] usb: chipidea: Notify events when switching host mode

2016-07-07 Thread Stephen Boyd
wrapper specific things after the device is stopped. So when we stop the host role, send the stopped event. Cc: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/host.c

[PATCH v2 04/22] usb: chipidea: Only read/write OTGSC from one place

2016-07-07 Thread Stephen Boyd
t; Fixes: 3ecb3e09b042 ("usb: chipidea: Use extcon framework for VBUS and ID detect") Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci.h | 3 --- drivers/usb/chipidea/core.c | 32 drivers/usb/chipidea/otg.c | 34

[PATCH v2 18/22] usb: chipidea: msm: Add reset controller for PHY POR bit

2016-07-07 Thread Stephen Boyd
artman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/Kconfig | 1 + drivers/usb/chipidea/ci_hdrc_msm.c | 45 -- 2 files changed, 44 insertions(+), 2 deletions(-) diff --git a/drivers/us

[PATCH v2 06/22] usb: chipidea: Add platform flag for wrapper phy management

2016-07-07 Thread Stephen Boyd
. Cc: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/core.c | 6 ++ include/linux/usb/chipidea.h | 1 + 2 files changed, 7 insertions(+) diff --git a/dr

[PATCH v2 17/22] usb: chipidea: msm: Make platform data driver local instead of global

2016-07-07 Thread Stephen Boyd
of this structure per each device instance so that odd things don't happen. Cc: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci_hdrc_msm.c | 20

[PATCH v2 19/22] usb: chipidea: msm: Handle phy power states

2016-07-07 Thread Stephen Boyd
The ULPI phy on qcom platforms needs to be initialized and powered on after a USB reset and before we toggle the run/stop bit. Otherwise, the phy locks up and doesn't work properly. Hook the phy initialization into the RESET event and the phy power off into the STOPPED event. Cc: Peter Chen

[PATCH v2 12/22] usb: chipidea: msm: Rely on core to override AHBBURST

2016-07-07 Thread Stephen Boyd
<peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci_hdrc_msm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c b/dr

[PATCH v2 14/22] usb: chipidea: msm: Add proper clk and reset support

2016-07-07 Thread Stephen Boyd
oah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci_hdrc_msm.c | 72 +++--- 1 file changed, 68 insertions(+), 4 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c b/drivers/usb/chipidea/ci_h

[PATCH v2 20/22] usb: chipidea: msm: Be silent on probe defer errors

2016-07-07 Thread Stephen Boyd
If something fails in ci_hdrc_add_device() due to probe defer, we shouldn't print an error message. Be silent in this case as we'll try probe again later. Cc: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.

[PATCH v2 22/22] phy: Add support for Qualcomm's USB HS phy

2016-07-07 Thread Stephen Boyd
The high-speed phy on qcom SoCs is controlled via the ULPI viewport. Cc: Kishon Vijay Abraham I <kis...@ti.com> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- .../devicetree/bindings/phy/qcom,usb-hs-phy.txt| 83 ++ d

[PATCH v2 13/22] usb: chipidea: msm: Use hw_write_id_reg() instead of writel

2016-07-07 Thread Stephen Boyd
to delete that file soon. Acked-by: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci_hdrc_msm.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff -

[PATCH v2 15/22] usb: chipidea: msm: Mux over secondary phy at the right time

2016-07-07 Thread Stephen Boyd
phy) after the RESET bit is set in USBCMD. Cc: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci_hdrc_msm.c | 67 +++--- 1 file chan

[PATCH v2 11/22] usb: chipidea: msm: Mark device as runtime pm active

2016-07-07 Thread Stephen Boyd
and disable the power domain to match the 'inactive' state of the device. Let's mark the device as active so that runtime PM doesn't improperly power down this device when it's actually active. Cc: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off

[PATCH v2 16/22] usb: chipidea: msm: Restore wrapper settings after reset

2016-07-07 Thread Stephen Boyd
consolidate the register writes into the wrapper driver instead so that we clearly split the wrapper from the phys. Cc: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chip

[PATCH v2 03/22] usb: ulpi: Support device discovery via device properties

2016-07-07 Thread Stephen Boyd
up and avoid this problem. Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Heikki Krogerus <heikki.kroge...@linux.intel.com> Cc: <devicet...@vger.kernel.org> Cc: Rob Herring <robh...@kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- Documen

[PATCH v2 02/22] of: device: Export of_device_{get_modalias,uvent_modalias} to modules

2016-07-07 Thread Stephen Boyd
The ULPI bus can be built as a module, and it will soon be calling these functions when it supports probing devices from DT. Export them so they can be used by the ULPI module. Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/of/device.c | 2 ++ 1 file changed, 2 inse

[PATCH v2 10/22] usb: chipidea: Add support for ULPI PHY bus

2016-07-07 Thread Stephen Boyd
Kroah-Hartman <gre...@linuxfoundation.org> Cc: Heikki Krogerus <heikki.kroge...@linux.intel.com> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/Kconfig | 7 +++ drivers/usb/chipidea/Makefile | 1 + drivers/usb/chipidea/ci.h | 22 ++

[PATCH v2 00/22] Support qcom's HSIC USB and rewrite USB2 HS phy support

2016-07-07 Thread Stephen Boyd
9621618-11900-1-git-send-email-tim.b...@sonymobile.com [3] https://git.linaro.org/people/stephen.boyd/linux.git/shortlog/refs/heads/usb-hsic-8074 Stephen Boyd (22): of: device: Support loading a module with OF based modalias of: device: Export of_device_{get_modalias,uvent_modalias} to modul

Re: [PATCH 16/21] usb: chipidea: msm: Restore wrapper settings after reset

2016-06-30 Thread Stephen Boyd
On 30 June 2016 at 01:54, Peter Chen <hzpeterc...@gmail.com> wrote: > On Wed, Jun 29, 2016 at 12:13:45PM -0700, Stephen Boyd wrote: >> Quoting Peter Chen (2016-06-29 01:26:48 >> > Why not using ci->platdata->vbus_extcon directly? >> >> Because ci->plat

Re: [PATCH 20/21] phy: Add support for Qualcomm's USB HSIC phy

2016-06-29 Thread Stephen Boyd
Quoting Neil Armstrong (2016-06-29 02:16:51) > On 06/28/2016 11:58 PM, Stephen Boyd wrote: > > Quoting Neil Armstrong (2016-06-28 01:49:37) > >> On 06/26/2016 09:28 AM, Stephen Boyd wrote: > >>> + uphy->cal_sleep_clk = clk = devm_clk_get(>dev, &quo

Re: [PATCH 20/21] phy: Add support for Qualcomm's USB HSIC phy

2016-06-28 Thread Stephen Boyd
Quoting Neil Armstrong (2016-06-28 01:49:37) > On 06/26/2016 09:28 AM, Stephen Boyd wrote: > > + uphy->cal_sleep_clk = clk = devm_clk_get(>dev, "cal_sleep"); > > + if (IS_ERR(clk)) > > + return PTR_ERR(clk); > > Hi Stephen, > >

[PATCH] usb: otg-fsm: Cancel HNP polling work when not used

2016-06-27 Thread Stephen Boyd
n <gre...@linuxfoundation.org> Fixes: ae57e97a9521 ("usb: common: otg-fsm: add HNP polling support") Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/common/usb-otg-fsm.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/usb/common

RE: [PATCH 04/21] usb: chipidea: Only read/write OTGSC from one place

2016-06-27 Thread Stephen Boyd
Quoting Jun Li (2016-06-27 01:04:39) > > diff --git a/drivers/usb/chipidea/otg.c b/drivers/usb/chipidea/otg.c index > > 03b6743461d1..763a8332b009 100644 > > --- a/drivers/usb/chipidea/otg.c > > +++ b/drivers/usb/chipidea/otg.c > > @@ -104,7 +104,32 @@ void ci_handle_vbus_change(struct ci_hdrc

[PATCH 00/21] Support qcom's HSIC USB and rewrite USB2 HS phy support

2016-06-26 Thread Stephen Boyd
[1] https://lkml.org/lkml/2016/2/22/7 [2] http://lkml.kernel.org/g/1449621618-11900-1-git-send-email-tim.b...@sonymobile.com [3] https://git.linaro.org/people/stephen.boyd/linux.git/shortlog/refs/heads/usb-hsic-8074 Stephen Boyd (21): of: device: Support loading a module with OF based modalias

[PATCH 01/21] of: device: Support loading a module with OF based modalias

2016-06-26 Thread Stephen Boyd
to request it with the OF based modalias instead. Add a common function that allows anyone to request a module with the OF based modalias. Cc: Rob Herring <robh...@kernel.org> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/of/d

[PATCH 16/21] usb: chipidea: msm: Restore wrapper settings after reset

2016-06-26 Thread Stephen Boyd
consolidate the register writes into the wrapper driver instead so that we clearly split the wrapper from the phys. Cc: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chip

[PATCH 02/21] usb: ulpi: Support device discovery via DT

2016-06-26 Thread Stephen Boyd
.kernel.org> Cc: Rob Herring <robh...@kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- Documentation/devicetree/bindings/usb/ulpi.txt | 20 + drivers/usb/common/ulpi.c | 56 +- 2 files changed, 74 insertions(+

[PATCH 15/21] usb: chipidea: msm: Mux over secondary phy at the right time

2016-06-26 Thread Stephen Boyd
phy) after the RESET bit is set in USBCMD. Cc: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci_hdrc_msm.c | 78 +++--- 1 file chan

[PATCH 04/21] usb: chipidea: Only read/write OTGSC from one place

2016-06-26 Thread Stephen Boyd
t; Fixes: 3ecb3e09b042 ("usb: chipidea: Use extcon framework for VBUS and ID detect") Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/core.c | 32 drivers/usb/chipidea/otg.c | 35 +++ 2 f

[PATCH 20/21] phy: Add support for Qualcomm's USB HSIC phy

2016-06-26 Thread Stephen Boyd
The HSIC USB controller on qcom SoCs has an integrated all digital phy controlled via the ULPI viewport. Cc: Kishon Vijay Abraham I <kis...@ti.com> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- .../devicetree/bindings/phy/qcom,usb-h

[PATCH 05/21] usb: chipidea: Handle extcon events properly

2016-06-26 Thread Stephen Boyd
Ivanov" <iivanov...@gmail.com> Fixes: 3ecb3e09b042 ("usb: chipidea: Use extcon framework for VBUS and ID detect") Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/otg.c | 46 +++- include/linux

[PATCH 19/21] usb: chipidea: msm: Be silent on probe defer errors

2016-06-26 Thread Stephen Boyd
If something fails in ci_hdrc_add_device() due to probe defer, we shouldn't print an error message. Be silent in this case as we'll try probe again later. Cc: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.

[PATCH 18/21] usb: chipidea: msm: Add reset controller for PHY POR bit

2016-06-26 Thread Stephen Boyd
artman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci_hdrc_msm.c | 43 +- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c b/drivers/usb/chip

[PATCH 06/21] usb: chipidea: Initialize and reinitialize phy later

2016-06-26 Thread Stephen Boyd
is properly managed across role switches. Cc: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/ci.h | 3 ++- drivers/usb/chipidea/core.c | 23 ++- dr

<    1   2   3   >