Re: [RFC 04/10] clk: samsung: Remove support for Exynos5440

2018-05-01 Thread Stephen Boyd
lt;k...@kernel.org> > --- Acked-by: Stephen Boyd <sb...@kernel.org> -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v3 03/16] phy: qcom-qmp: Power-on PHY before initialization

2017-11-22 Thread Stephen Boyd
On 11/21/2017 01:23 AM, Manu Gautam wrote: > PHY must be powered on before turning ON clocks and > attempting to initialize it. Driver is exposing > separate init and power_on routines for this. > Apparently USB dwc3 core driver performs power-on after > init. Also, poweron and init for QMP PHY

Re: [PATCH v3 10/16] phy: qcom-qmp: Move register offsets to header file

2017-11-22 Thread Stephen Boyd
On 11/21/2017 01:23 AM, Manu Gautam wrote: > New revision (v3) of QMP PHY uses different offsets > for almost all of the registers. Hence, move these > definitions to header file so that updated offsets > can be added for QMP v3. > > Signed-off-by: Manu Gautam > --- Why?

[PATCH] usb: ulpi: Add missing of_node_get() in ulpi_of_register()

2017-11-10 Thread Stephen Boyd
("usb: ulpi: Support device discovery via DT") Reported-by: Peter Robinson <pbrobin...@gmail.com> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- drivers/usb/common/ulpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/common/ulpi.

Re: [PATCH 1/2] mux: add mux_control_get_optional() API

2017-09-20 Thread Stephen Boyd
Quoting Hans de Goede (2017-09-19 11:35:50) > Hi, > > On 09/08/2017 05:54 PM, Peter Rosin wrote: > > On 2017-09-08 17:45, Peter Rosin wrote: > >> From: Stephen Boyd <stephen.b...@linaro.org> > >> > >> Sometimes drivers only use muxes under certa

Re: [PATCH v2 3/3] arm64: dts: qcom: Collapse usb support into one node

2017-08-30 Thread Stephen Boyd
Quoting Shawn Guo (2017-08-16 23:43:49) > Hi Stephen, > > On Fri, Jul 14, 2017 at 02:40:05PM -0700, Stephen Boyd wrote: > > We currently have three device nodes for the same USB hardware > > block, as evident by the reuse of the same reg address multiple > > times. N

Re: [PATCH] usb: dwc3: of-simple: remove include of clk-provider.h

2017-08-17 Thread Stephen Boyd
a clk API for consumers. > > Let's replace of_clk_get_parent_count() with of_count_phandle_with_args() > call, so that we can remove the include of clk-provider.h. > > Signed-off-by: Shawn Guo <shawn@linaro.org> > --- Acked-by: Stephen Boyd <sb...@codeaurora.org

Re: [PATCH v2 2/3] usb: chipidea: Hook into mux framework to toggle usb switch

2017-08-11 Thread Stephen Boyd
Quoting Peter Rosin (2017-08-08 05:46:30) > On 2017-08-08 03:51, Stephen Boyd wrote: > > > It looked like we paired the start/stop ops with > > each other so that the mux is properly managed across these ops. >

Re: [PATCH v2 2/3] usb: chipidea: Hook into mux framework to toggle usb switch

2017-08-07 Thread Stephen Boyd
Quoting Peter Rosin (2017-07-31 03:33:22) > On 2017-07-14 23:40, Stephen Boyd wrote: > > @@ -1964,16 +1965,26 @@ void ci_hdrc_gadget_destroy(struct ci_hdrc *ci) > > > > static int udc_id_switch_for_device(struct ci_hdrc *ci) > > { > > + int ret =

Re: [PATCH v1 6/6] usb: dwc3: core: Notify USB3 PHY as well for DRD modes

2017-07-21 Thread Stephen Boyd
On 07/21/2017 04:02 AM, Manu Gautam wrote: > Driver currently notifies only USB3 PHY for mode change. > Extend this to USB3 PHY so that driver based on the mode > can release system resources - clocks, regulators etc. > and can even turn off PHY during runtime suspend. > > Signed-off-by: Manu

Re: [PATCH v2 1/3] mux: Add mux_control_get_optional() API

2017-07-19 Thread Stephen Boyd
Quoting Peter Rosin (2017-07-19 00:15:38) > On 2017-07-19 04:08, Stephen Boyd wrote: > > Quoting Peter Rosin (2017-07-17 01:20:14) > >> On 2017-07-14 23:40, Stephen Boyd wrote: > >>> @@ -441,6 +447,8 @@ struct mux_control *mux_control_get(struct device &g

Re: [PATCH v2 1/3] mux: Add mux_control_get_optional() API

2017-07-18 Thread Stephen Boyd
Quoting Peter Rosin (2017-07-17 01:20:14) > On 2017-07-14 23:40, Stephen Boyd wrote: > > diff --git a/drivers/mux/mux-core.c b/drivers/mux/mux-core.c > > index 90b8995f07cb..a0e5bf16f02f 100644 > > --- a/drivers/mux/mux-core.c > > +++ b/drivers/mux/mux-

Re: [PATCH v2 2/3] usb: chipidea: Hook into mux framework to toggle usb switch

2017-07-18 Thread Stephen Boyd
Quoting Peter Chen (2017-07-17 21:41:11) > On Fri, Jul 14, 2017 at 02:40:04PM -0700, Stephen Boyd wrote: > > > > @@ -175,6 +176,10 @@ static int host_start(struct ci_hdrc *ci) > > if (ci_otg_is_fsm_mode(ci)) { > >

[PATCH v2 1/3] mux: Add mux_control_get_optional() API

2017-07-14 Thread Stephen Boyd
that allows the driver to differentiate errors getting the mux from there not being a mux for the driver to use at all. Cc: Jonathan Cameron <ji...@kernel.org> Cc: Philipp Zabel <p.za...@pengutronix.de> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- Documentation/driver-mod

[PATCH v2 0/3] USB Mux support for Chipidea

2017-07-14 Thread Stephen Boyd
: 1. The userspace side of things is murky. What is expected to go and toggle the host/gadget side of things in userspace at this very specific location for chipidea devices? Stephen Boyd (3): mux: Add mux_control_get_optional() API usb: chipidea: Hook into mux framework to toggle usb

[PATCH v2 2/3] usb: chipidea: Hook into mux framework to toggle usb switch

2017-07-14 Thread Stephen Boyd
mentation/raw/master/ConsumerEdition/DragonBoard-410c/HardwareDocs/Schematics_DragonBoard.pdf Cc: Peter Rosin <p...@axentia.se> Cc: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boyd

[PATCH v2 3/3] arm64: dts: qcom: Collapse usb support into one node

2017-07-14 Thread Stephen Boyd
of the hardware. Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 38 ++- arch/arm64/boot/dts/qcom/msm8916.dtsi | 62 +++ 2 files changed, 50 insertions(+), 50 deletions(-) diff --git a/arch/arm64/bo

Re: [PATCH 0/3] USB Mux support for Chipidea

2017-07-14 Thread Stephen Boyd
Quoting Stephen Boyd (2017-07-13 15:35:02) > Quoting Peter Rosin (2017-07-11 22:04:46) > > > > Maybe no need for a compatible update either, if it works to do something > > like this in the DT? > > > > usb_switch: usb-switch { > >

Re: [PATCH 0/3] USB Mux support for Chipidea

2017-07-13 Thread Stephen Boyd
Quoting Peter Rosin (2017-07-11 22:04:46) > On 2017-07-12 03:02, Stephen Boyd wrote: > > This patchset adds support for the TC7USB40MU usb mux found on > > db410c 96boards platforms via the new multiplexer framework and > > hooks that into the chipidea driver. This

Re: [PATCH 2/3] usb: chipidea: Hook into mux framework to toggle usb switch

2017-07-13 Thread Stephen Boyd
Quoting Peter Rosin (2017-07-11 23:45:24) > On 2017-07-12 03:02, Stephen Boyd wrote: > > @@ -102,4 +107,7 @@ Example: > > rx-burst-size-dword = <0x10>; > > extcon = <0>, <_id>; > > phy-clkgate-delay-us = <

[PATCH 1/3] usb: misc: Add a driver for TC7USB40MU

2017-07-11 Thread Stephen Boyd
[1] https://toshiba.semicon-storage.com/ap-en/product/logic/bus-switch/detail.TC7USB40MU.html Cc: Peter Rosin <p...@axentia.se> Cc: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: <devicet...@vger.kernel.org> Signed-off-by: Step

[PATCH 0/3] USB Mux support for Chipidea

2017-07-11 Thread Stephen Boyd
because we may want to support the "S" pin on the TC7USB40MU one day that shuts off both mux outputs. 4. The userspace side of things is murky. What is expected to go and toggle the host/gadget side of things in userspace at this very specific location for chipidea devic

[PATCH 3/3] arm64: dts: qcom: Collapse usb support into one node

2017-07-11 Thread Stephen Boyd
of the hardware. Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- Should go through arm-soc via Andy. arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 39 ++- arch/arm64/boot/dts/qcom/msm8916.dtsi | 62 +++ 2 files changed, 51 insertions(+), 50 del

[PATCH 2/3] usb: chipidea: Hook into mux framework to toggle usb switch

2017-07-11 Thread Stephen Boyd
mentation/raw/master/ConsumerEdition/DragonBoard-410c/HardwareDocs/Schematics_DragonBoard.pdf Cc: Peter Rosin <p...@axentia.se> Cc: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boyd

Re: [PATCH 1/5] clk: hisilicon: add usb2 clocks for hi3798cv200 SoC

2017-06-21 Thread Stephen Boyd
On 06/21, Jiancheng Xue wrote: > Add usb2 clocks for hi3798cv200 SoC. > > Signed-off-by: Jiancheng Xue > Reviewed-by: Daniel Thompson > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a

Re: [RFC] usb-phy-generic: Add support to SMSC USB3315

2017-06-02 Thread Stephen Boyd
On 05/26, Fabien Lahoudere wrote: > Hello > > I modify ci_hrdc_imx_probe to bypass "data->phy = > devm_usb_get_phy_by_phandle(>dev, > "fsl,usbphy", 0);". Everything works as expected and call ci_ulpi_init. > > The problem is that in ci_ulpi_init, before calling "ci->ulpi = >

Re: [RFC] usb-phy-generic: Add support to SMSC USB3315

2017-05-23 Thread Stephen Boyd
On 05/23, Fabien Lahoudere wrote: > Hi, > > We investigate on the topic and now our device tree look like: > > in imx53.dtsi: > > usbh2: usb@53f80400 { > compatible = "fsl,imx53-usb", "fsl,imx27-usb"; > reg = <0x53f80400 0x0200>; > interrupts = <16>; > clocks = <

Re: [PATCH V7 4/4] phy: qcom-qmp: new qmp phy driver for qcom-chipsets

2017-04-05 Thread Stephen Boyd
eaurora.org> > Tested-by: Srinivas Kandagatla <srinivas.kandaga...@linaro.org> > --- Reviewed-by: Stephen Boyd <sb...@codeaurora.org> -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this

Re: [PATCH V7 3/4] dt-bindings: phy: Add support for QMP phy

2017-04-05 Thread Stephen Boyd
Acked-by: Rob Herring <r...@kernel.org> > --- Reviewed-by: Stephen Boyd <sb...@codeaurora.org> -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in t

Re: [PATCH V7 1/4] dt-bindings: phy: Add support for QUSB2 phy

2017-04-05 Thread Stephen Boyd
Herring <r...@kernel.org> > --- Reviewed-by: Stephen Boyd <sb...@codeaurora.org> -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a me

Re: [PATCH v6 1/4] dt-bindings: phy: Add support for QUSB2 phy

2017-04-04 Thread Stephen Boyd
On 03/20, Vivek Gautam wrote: > diff --git a/Documentation/devicetree/bindings/phy/qcom-qusb2-phy.txt > b/Documentation/devicetree/bindings/phy/qcom-qusb2-phy.txt > new file mode 100644 > index ..a6d19acde9e0 > --- /dev/null > +++

[PATCH v8 2/3] phy: Add support for Qualcomm's USB HSIC phy

2017-01-25 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> Acked-by: Rob Herring <r...@kernel.org> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org

[PATCH v8 0/3] Support qcom's HSIC USB and rewrite USB2 HS support

2017-01-25 Thread Stephen Boyd
/people/stephen.boyd/linux.git/log/?h=usb-hsic-8074 [2] https://patchwork.kernel.org/patch/9319527/ [3] https://lkml.kernel.org/r/20160914014246.31847-1-stephen.b...@linaro.org Stephen Boyd (3): usb: chipidea: Configure phy for appropriate mode phy: Add support for Qualcomm's USB HSIC ph

[PATCH v8 1/3] usb: chipidea: Configure phy for appropriate mode

2017-01-25 Thread Stephen Boyd
here. 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 | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/drivers/usb

Re: [PATCH -next] usb: chipidea: msm: Fix return value check in ci_hdrc_msm_probe()

2017-01-25 Thread Stephen Boyd
; Fixes: 2fc305be364e ("usb: chipidea: msm: Mux over secondary phy at the > right time") > Signed-off-by: Wei Yongjun <weiyongj...@huawei.com> Thanks. Reviewed-by: Stephen Boyd <stephen.b...@linaro.org> -- To unsubscribe from this list: send the line &qu

Re: [PATCH v7 3/5] phy: Add set_vbus callback

2017-01-23 Thread Stephen Boyd
Quoting Kishon Vijay Abraham I (2017-01-22 00:46:21) > Hi, > > On Saturday 21 January 2017 12:20 AM, Stephen Boyd wrote: > > Some USB PHYs need to be told about vbus changing state > > explicitly. For example the qcom USB HS PHY needs to toggle a bit > > when

[PATCH v7 1/5] phy: Add support for Qualcomm's USB HSIC phy

2017-01-20 Thread Stephen Boyd
The HSIC USB controller on qcom SoCs has an integrated all digital phy controlled via the ULPI viewport. Acked-by: Rob Herring <r...@kernel.org> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- No changes. .../devicetree/bindings

[PATCH v7 0/5] Support qcom's HSIC USB and rewrite USB2 HS support

2017-01-20 Thread Stephen Boyd
n.boyd/linux.git/log/?h=usb-hsic-8074 [2] https://patchwork.kernel.org/patch/9319527/ [3] https://lkml.kernel.org/r/20160914014246.31847-1-stephen.b...@linaro.org Stephen Boyd (5): phy: Add support for Qualcomm's USB HSIC phy usb: chipidea: msm: Configure phy for appropriate mode phy: Add set

[PATCH v7 2/5] usb: chipidea: msm: Configure phy for appropriate mode

2017-01-20 Thread Stephen Boyd
ure for. Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- Made this msm specific because of how msm handles phy powerup. drivers/usb/chipidea/ci.h | 7 +-- drivers/usb/chipidea/ci_hdrc_msm.c | 4 2 f

[PATCH v7 4/5] usb: chipidea: Signal vbus state to phy

2017-01-20 Thread Stephen Boyd
ppropriate phy_set_vbus() call here to signal vbus state changes to the phy. Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- New patch drivers/usb/chipidea/otg.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) di

[PATCH v7 5/5] phy: Add support for Qualcomm's USB HS phy

2017-01-20 Thread Stephen Boyd
The high-speed phy on qcom SoCs is controlled via the ULPI viewport. Cc: <devicet...@vger.kernel.org> Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- phy_set_mode() hook split up to toggle two bits independently with n

[PATCH v7 3/5] phy: Add set_vbus callback

2017-01-20 Thread Stephen Boyd
gnal isn't routed to the PHY this "session valid" signal won't ever toggle, so we have to toggle it explicitly. This callback is used to do that. Cc: Peter Chen <peter.c...@nxp.com> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- New patch drivers/phy/phy-core.c | 1

Re: [PATCH v6 23/25] usb: chipidea: Pullup D+ in device mode via phy APIs

2017-01-18 Thread Stephen Boyd
Quoting Peter Chen (2017-01-17 23:34:32) > On Tue, Jan 17, 2017 at 09:58:33AM -0800, Stephen Boyd wrote: > > Quoting Peter Chen (2017-01-15 19:45:51) > > > > > > At include/linux/usb/phy.h, we have .set_vbus interface, maybe you need > > > to port it to gener

[PATCH v6 07/25] usb: chipidea: Notify events when switching host mode

2016-12-28 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 v6 08/25] usb: chipidea: Remove locking in ci_udc_start()

2016-12-28 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 cf132f057137..732b281485de

[PATCH v6 03/25] usb: ulpi: Support device discovery via DT

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

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

2016-12-28 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 v6 04/25] usb: chipidea: Only read/write OTGSC from one place

2016-12-28 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 v6 06/25] usb: chipidea: Add platform flag for wrapper phy management

2016-12-28 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 v6 02/25] of: device: Export of_device_{get_modalias,uvent_modalias} to modules

2016-12-28 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. Acked-by: Rob Herring <r...@kernel.org> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boy

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

2016-12-28 Thread Stephen Boyd
e/stephen.boyd/linux.git/log/?h=usb-hsic-8074 [2] https://patchwork.kernel.org/patch/9319527/ [3] https://lkml.kernel.org/r/20160914014246.31847-1-stephen.b...@linaro.org Peter Chen (1): usb: chipidea: vbus event may exist before starting gadget Stephen Boyd (24): of: device: Support

[PATCH v6 11/25] usb: chipidea: vbus event may exist before starting gadget

2016-12-28 Thread Stephen Boyd
lready been there after stopping host but before starting gadget. Signed-off-by: Peter Chen <peter.c...@nxp.com> Tested-by: Stephen Boyd <stephen.b...@linaro.org> Reviewed-by: Stephen Boyd <stephen.b...@linaro.org> [sb...@codeaurora.org: Modify comment text per list discussion] Sig

[PATCH v6 16/25] usb: chipidea: msm: Mux over secondary phy at the right time

2016-12-28 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 v6 22/25] usb: chipidea: Drop lock across event_notify during gadget stop

2016-12-28 Thread Stephen Boyd
; Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/usb/chipidea/udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index 0db56fb7e9e9..0d532a724d48 100644 --- a/drivers/usb/chipidea/udc.c +++ b/dr

[PATCH v6 20/25] usb: chipidea: msm: Handle phy power states

2016-12-28 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 | 40 +++--- drivers/usb/chipidea/core.c| 8 ++-- drivers/u

[PATCH v6 18/25] usb: chipidea: msm: Make platform data driver local instead of global

2016-12-28 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 v6 09/25] usb: chipidea: Add support for ULPI PHY bus

2016-12-28 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 v6 10/25] usb: chipidea: Consolidate extcon notifiers

2016-12-28 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. Acked-by: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: "Ivan T. Ivanov" <iivanov...@gmai

[PATCH v6 12/25] usb: chipidea: msm: Mark device as runtime pm active

2016-12-28 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 v6 17/25] usb: chipidea: msm: Restore wrapper settings after reset

2016-12-28 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 v6 14/25] usb: chipidea: msm: Use hw_write_id_reg() instead of writel

2016-12-28 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 v6 15/25] usb: chipidea: msm: Add proper clk and reset support

2016-12-28 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 v6 13/25] usb: chipidea: msm: Rely on core to override AHBBURST

2016-12-28 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 v6 23/25] usb: chipidea: Pullup D+ in device mode via phy APIs

2016-12-28 Thread Stephen Boyd
If the phy supports it, call phy_set_mode() to pull up D+ when required by setting the mode to PHY_MODE_USB_DEVICE. If we want to remove the pullup, set the mode to PHY_MODE_USB_HOST. Cc: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off

[PATCH v6 24/25] phy: Add support for Qualcomm's USB HSIC phy

2016-12-28 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> Acked-by: Rob Herring <r...@kernel.org> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org

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

2016-12-28 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 v6 25/25] phy: Add support for Qualcomm's USB HS phy

2016-12-28 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> Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- .../devicetree/bindings

[PATCH v6 19/25] usb: chipidea: msm: Add reset controller for PHY POR bit

2016-12-28 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 v6 01/25] of: device: Support loading a module with OF based modalias

2016-12-28 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. Acked-by: Rob Herring <r...@kernel.org> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/of/d

Re: [PATCH v5 02/23] of: device: Export of_device_{get_modalias, uvent_modalias} to modules

2016-11-04 Thread Stephen Boyd
Quoting Peter Chen (2016-10-24 18:16:32) > On Mon, Oct 24, 2016 at 12:48:24PM -0700, Stephen Boyd wrote: > > Quoting Chen-Yu Tsai (2016-10-24 05:19:05) > > > Hi, > > > > > > On Tue, Oct 18, 2016 at 9:56 AM, Stephen Boyd <stephen.b...@linaro.org> >

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

2016-10-21 Thread Stephen Boyd
() fail on some platforms (e.g. arm64). This patch solves > this by assigning the dma_mem and dma_ops based on the parent's DeviceTree > node. > > Cc: Stephen Boyd <sb...@codeaurora.org> > Signed-off-by: Bjorn Andersson <bjorn.anders...@linaro.org> > --- > >

Re: [PATCH v5 23/23] phy: Add support for Qualcomm's USB HS phy

2016-10-20 Thread Stephen Boyd
Quoting Stephen Boyd (2016-10-17 18:56:36) > + > +static int > +qcom_usb_hs_phy_vbus_notifier(struct notifier_block *nb, unsigned long event, > + void *ptr) > +{ > + struct qcom_usb_hs_phy *uphy; > + int is_host; > + u8

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

2016-10-17 Thread Stephen Boyd
t/shortlog/refs/heads/usb-hsic-8074 [3] https://patchwork.kernel.org/patch/9319527/ [4] https://lkml.kernel.org/r/20160914014246.31847-1-stephen.b...@linaro.org Stephen Boyd (23): of: device: Support loading a module with OF based modalias of: device: Export of_device_{get_modalias,uvent_mo

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

2016-10-17 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 v5 03/23] usb: ulpi: Support device discovery via DT

2016-10-17 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 v5 02/23] of: device: Export of_device_{get_modalias,uvent_modalias} to modules

2016-10-17 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. Acked-by: Rob Herring <r...@kernel.org> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boy

[PATCH v5 17/23] usb: chipidea: msm: Restore wrapper settings after reset

2016-10-17 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 v5 18/23] usb: chipidea: msm: Make platform data driver local instead of global

2016-10-17 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 v5 11/23] usb: chipidea: Emulate OTGSC interrupt enable path

2016-10-17 Thread Stephen Boyd
e enabling "device" mode. 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 | 2 ++ drivers/usb/chipidea/core.c | 23 +-- drivers/us

[PATCH v5 12/23] usb: chipidea: msm: Mark device as runtime pm active

2016-10-17 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 v5 15/23] usb: chipidea: msm: Add proper clk and reset support

2016-10-17 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 v5 22/23] phy: Add support for Qualcomm's USB HSIC phy

2016-10-17 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> Acked-by: Rob Herring <r...@kernel.org> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org

[PATCH v5 14/23] usb: chipidea: msm: Use hw_write_id_reg() instead of writel

2016-10-17 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 v5 16/23] usb: chipidea: msm: Mux over secondary phy at the right time

2016-10-17 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 v5 05/23] usb: chipidea: Handle extcon events properly

2016-10-17 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 v5 13/23] usb: chipidea: msm: Rely on core to override AHBBURST

2016-10-17 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 v5 21/23] usb: chipidea: msm: Be silent on probe defer errors

2016-10-17 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 v5 10/23] usb: chipidea: Consolidate extcon notifiers

2016-10-17 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. Acked-by: Peter Chen <peter.c...@nxp.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: "Ivan T. Ivanov" <iivanov...@gmai

[PATCH v5 23/23] phy: Add support for Qualcomm's USB HS phy

2016-10-17 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> Cc: Rob Herring <robh...@kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- .../devicetree/bindings/phy/qcom

[PATCH v5 19/23] usb: chipidea: msm: Add reset controller for PHY POR bit

2016-10-17 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 v5 09/23] usb: chipidea: Add support for ULPI PHY bus

2016-10-17 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 v5 08/23] usb: chipidea: Remove locking in ci_udc_start()

2016-10-17 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 661f43fe0f9e..145b1fd86f58

[PATCH v5 20/23] usb: chipidea: msm: Handle phy power states

2016-10-17 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 | 40 +++--- drivers/usb/chipidea/core.c| 8 ++-- drivers/u

[PATCH v5 06/23] usb: chipidea: Add platform flag for wrapper phy management

2016-10-17 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 v5 07/23] usb: chipidea: Notify events when switching host mode

2016-10-17 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 v5 01/23] of: device: Support loading a module with OF based modalias

2016-10-17 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. Acked-by: Rob Herring <r...@kernel.org> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- drivers/of/d

Re: [RFC/PATCH] usb: misc: Add a driver for TC7USB40MU

2016-09-14 Thread Stephen Boyd
Quoting Stephen Boyd (2016-09-13 18:42:46) > On the db410c 96boards platform we have a TC7USB40MU[1] on the > board to mux the D+/D- lines from the SoC between a micro usb > "device" port and a USB hub for "host" roles. Upon a role switch, > we need to change thi

[PATCH/REBASED] 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> --- Peter Chen wrote: > > I am afraid I can't apply for testing > > Applying: usb: chipide

[RFC/PATCH] usb: misc: Add a driver for TC7USB40MU

2016-09-13 Thread Stephen Boyd
oshiba.semicon-storage.com/ap-en/product/logic/bus-switch/detail.TC7USB40MU.html Cc: MyungJoo Ham <myungjoo@samsung.com> Cc: Chanwoo Choi <cw00.c...@samsung.com> Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- Should I make the e

[RFC/PATCH] usb: chipidea: Emulate OTGSC interrupt enable path

2016-09-13 Thread Stephen Boyd
le enabling "device" mode. Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.b...@linaro.org> --- This is on top of my patch series that modifies how we handle the extcon events here. The extcon handling looks racy in this driver even after th

  1   2   3   >