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

2016-10-17 Thread Stephen Boyd
d ID detect") Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci.h | 3 --- drivers/usb/chipidea/core.c | 32 drivers/usb/chipidea/otg.c | 34 ++ 3 files changed, 30 insertions(+), 39 deletions(-) diff --git a/drive

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

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 > Signed-off-by: Bjorn Andersson > --- > > Hi Peter, > > After (once more) debugging why USB

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 > > > wrote: > > >

[PATCH 0/9] Change return type of of_clk_get_parent_count() to unsigned

2016-02-22 Thread Stephen Boyd
dez Cc: Maxime Ripard Cc: Chen-Yu Tsai Cc: Tero Kristo Cc: Felipe Balbi Cc: Cc: Hans de Goede Cc: Jean-Christophe Plagniol-Villard Cc: Tomi Valkeinen Cc: Stephen Boyd (9): clk: Make of_clk_get_parent_count() return unsigned ints clk: at91: Remove impossible checks for of_clk_g

[PATCH 8/9] usb: dwc3: Remove impossible check for of_clk_get_parent_count() < 0

2016-02-22 Thread Stephen Boyd
The check for < 0 is impossible now that of_clk_get_parent_count() returns an unsigned int. Simplify the code and update the types. Cc: Felipe Balbi Cc: Signed-off-by: Stephen Boyd --- Please ack so this can go through clk tree along with patch 1. drivers/usb/dwc3/dwc3-of-simple.c

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

2016-07-07 Thread Stephen Boyd
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 of: device: Export of_devic

[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 --- drivers/of/device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/of

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

2016-07-07 Thread Stephen Boyd
Krogerus Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/Kconfig | 7 +++ drivers/usb/chipidea/Makefile | 1 + drivers/usb/chipidea/ci.h | 22 drivers/usb/chipidea/core.c | 31 +--- drivers/usb/chipidea/ulpi.c | 113 ++ 5

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

2016-07-07 Thread Stephen Boyd
ad the hardware before it's powered up and avoid this problem. Cc: Greg Kroah-Hartman Cc: Heikki Krogerus Cc: Cc: Rob Herring Signed-off-by: Stephen Boyd --- Documentation/devicetree/bindings/usb/ulpi.txt | 35 drivers/usb/common/ulpi.c | 74

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

2016-07-07 Thread Stephen Boyd
ace. Let's consolidate the register writes into the wrapper driver instead so that we clearly split the wrapper from the phys. Cc: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 39 ++ 1 file changed

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

2016-07-07 Thread Stephen Boyd
o 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 Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- driv

[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 Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 67 +++--- 1 file changed, 62 insertions(+), 5 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c b

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

2016-07-07 Thread Stephen Boyd
: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- 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/drivers/usb/chipidea/ci_hdrc_msm.c index 89c1a02d69b5..719b20caf88e 100644 --- a/drivers/usb

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

2016-07-07 Thread Stephen Boyd
on to reset the controller and wrapper logic and other "housekeeping" things. This clk was removed in later revisions of the hardware because the reset methodology no longer required clks to be enabled to propagate resets. Cc: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boy

[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 Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 3 ++- 1 file

[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 Cc: Signed-off-by: Stephen Boyd --- .../devicetree/bindings/phy/qcom,usb-hs-phy.txt| 83 ++ drivers/phy/Kconfig| 8 + drivers/phy/Makefile

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

2016-07-07 Thread Stephen Boyd
we're going to delete that file soon. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c b/drivers/usb/chipidea/ci_hdrc_msm.

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

2016-07-07 Thread Stephen Boyd
py of this structure per each device instance so that odd things don't happen. Cc: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/drive

[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 Cc: G

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

2016-07-07 Thread Stephen Boyd
The MSM chipidea wrapper has two bits that are used to reset the first or second phy. Add support for these bits via the reset controller framework, so that phy drivers can reset their hardware at the right time during initialization. Cc: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen

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

2016-07-07 Thread Stephen Boyd
anage. Cc: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/core.c | 6 ++ include/linux/usb/chipidea.h | 1 + 2 files changed, 7 insertions(+) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 01390e02ee53..532085a096d9 1

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

2016-07-07 Thread Stephen Boyd
o any wrapper specific things after the device is stopped. So when we stop the host role, send the stopped event. Cc: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/host.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/chipidea/hos

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

2016-07-07 Thread Stephen Boyd
D detect") Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci.h | 3 --- drivers/usb/chipidea/core.c | 32 drivers/usb/chipidea/otg.c | 34 ++ 3 files changed, 30 insertions(+), 39 deletions(-) diff --git a/drivers/u

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

2016-07-07 Thread Stephen Boyd
ed 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 Cc: Signed-off-by: Stephen Boyd --- drivers/of/device.c | 23 +++ include/linux/of_device.h | 6 ++ 2

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

2016-07-07 Thread Stephen Boyd
Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- 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 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/udc.c @@ -1719,7

[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 Cc: Signed-off-by: Stephen Boyd --- .../devicetree/bindings/phy/qcom,usb-hsic-phy.txt | 72 + drivers/phy/Kconfig| 7

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

2016-07-07 Thread Stephen Boyd
e09b042 ("usb: chipidea: Use extcon framework for VBUS and ID detect") Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/otg.c | 46 +++- include/linux/usb/chipidea.h | 2 ++ 2 files changed, 43 insertions(+), 5 deletions(-) diff --git a/driv

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

2016-07-07 Thread Stephen Boyd
Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- 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 interrupts and the otgsc register. drivers/usb/chipidea/otg_fsm.c | 17 ++

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) > struc

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 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 IS_ENABLED(CONFIG_USB_CHIPIDEA_UL

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 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 >> --- a/drivers/usb/chip

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 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_platform_data pdata; >>

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 let the common driver get pa

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 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 >> > device_driver *driver) &

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 wrote: > Quoting Rob Herring (2016-07-17 19:23:55) >> On Thu, Jul 07, 2016 at 03:20:54PM -0700, Stephen Boyd wrote: >> > +--- >> > + >> > +usb { >> > + compatible = "vendor,usb-controller

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 wrote: > On Tue, Aug 23, 2016 at 3:00 PM, Stephen Boyd wrote: >> On Fri, Aug 5, 2016 at 2:40 PM, Stephen Boyd wrote: >>> Quoting Rob Herring (2016-07-17 19:23:55) >>>> On Thu, Jul 07, 2016 at 03:20:

[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 Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 62 -- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c

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

2016-08-31 Thread Stephen Boyd
ace. Let's consolidate the register writes into the wrapper driver instead so that we clearly split the wrapper from the phys. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 39 ++ 1 f

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

2016-08-31 Thread Stephen Boyd
py of this structure per each device instance so that odd things don't happen. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 23 +-- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/drive

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

2016-08-31 Thread Stephen Boyd
The MSM chipidea wrapper has two bits that are used to reset the first or second phy. Add support for these bits via the reset controller framework, so that phy drivers can reset their hardware at the right time during initialization. Cc: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen

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

2016-08-31 Thread Stephen Boyd
Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 40 +++--- drivers/usb/chipidea/core.c| 8 ++-- drivers/usb/chipidea/host.c| 8 ++-- include/linux/usb/chipidea.h | 2 +- 4 files ch

[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 Cc: Signed-off-by: Stephen Boyd --- .../devicetree/bindings/phy/qcom,usb-hs-phy.txt| 83 ++ drivers/phy/Kconfig| 8 + drivers/phy/Makefile

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

2016-08-31 Thread Stephen Boyd
we're going to delete that file soon. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c b/drivers/usb/chipidea/ci_hdrc_msm.

[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 Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 3 ++- 1 file

[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 Cc: Signed-off-by: Stephen Boyd --- .../devicetree/bindings/phy/qcom,usb-hsic-phy.txt | 65 + drivers/phy/Kconfig| 7

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

2016-08-31 Thread Stephen Boyd
on to reset the controller and wrapper logic and other "housekeeping" things. This clk was removed in later revisions of the hardware because the reset methodology no longer required clks to be enabled to propagate resets. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Signed-off-b

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

2016-08-31 Thread Stephen Boyd
Krogerus Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/Kconfig | 7 +++ drivers/usb/chipidea/Makefile | 1 + drivers/usb/chipidea/ci.h | 21 drivers/usb/chipidea/core.c | 31 +--- drivers/usb/chipidea/ulpi.c | 113 ++ 5

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

2016-08-31 Thread Stephen Boyd
is pulled low. Cc: Peter Chen Cc: Greg Kroah-Hartman Cc: "Ivan T. Ivanov" Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/core.c | 41 ++--- drivers/usb/chipidea/otg.c | 4 ++-- 2 files changed, 12 insertions(+), 33 deletions(-) diff --git

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

2016-08-31 Thread Stephen Boyd
o any wrapper specific things after the device is stopped. So when we stop the host role, send the stopped event. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/host.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/chipidea/hos

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

2016-08-31 Thread Stephen Boyd
Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- 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 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/udc.c

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

2016-08-31 Thread Stephen Boyd
D detect") Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci.h | 3 --- drivers/usb/chipidea/core.c | 32 drivers/usb/chipidea/otg.c | 34 ++ 3 files changed, 30 insertions(+), 39 deletions(-) diff --git a/drivers/u

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

2016-08-31 Thread Stephen Boyd
ed 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 Cc: Signed-off-by: Stephen Boyd --- drivers/of/device.c | 23 +++ include/linux/of_device.h | 6 ++ 2

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

2016-08-31 Thread Stephen Boyd
anage. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/core.c | 6 ++ include/linux/usb/chipidea.h | 1 + 2 files changed, 7 insertions(+) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 01390e02ee53..532085a

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

2016-08-31 Thread Stephen Boyd
e09b042 ("usb: chipidea: Use extcon framework for VBUS and ID detect") Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/otg.c | 46 +++- include/linux/usb/chipidea.h | 2 ++ 2 files changed, 43 insertions(+), 5 deletions(-) diff --git a/driv

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

2016-08-31 Thread Stephen Boyd
o 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. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen B

[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 Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/us

[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 Cc: --- drivers/of/device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/of/device.c

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

2016-08-31 Thread Stephen Boyd
orks properly on that board. [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 (22): of: device: Support l

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

2016-08-31 Thread Stephen Boyd
without having to read the hardware before it's powered up and avoid this problem. Cc: Greg Kroah-Hartman Cc: Heikki Krogerus Cc: Cc: Rob Herring Signed-off-by: Stephen Boyd --- Documentation/devicetree/bindings/usb/ulpi.txt | 20 +++ drivers/usb/common/ulpi.c

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 wrote: > On Wed, Aug 31, 2016 at 05:40:24PM -0700, Stephen Boyd wrote: >> >> >> if (cable->state) >> - val |= OTGSC_ID; >> + val &= ~OTGSC_

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 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) >> ulpi->id.product = ulpi_

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 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 wrote: >> > On Wed, Aug 31, 2016 at 05:40:24PM -0700, Stephen Boyd wrote: >> >> >> >

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 > Signed-off-by: Martin Blumensting

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

2016-09-07 Thread Stephen Boyd
ned-off-by: Martin Blumenstingl > --- Assuming authorship is resolved: Acked-by: Stephen Boyd -- 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

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

2016-09-07 Thread Stephen Boyd
ed 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 Cc: Signed-off-by: Stephen Boyd --- drivers/of/device.c | 23 +++ include/linux/of_device.h | 6 ++ 2

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

2016-09-07 Thread Stephen Boyd
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 modules usb: ulpi: Support de

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

2016-09-07 Thread Stephen Boyd
Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- 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 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/udc.c

[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 Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 62 -- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c

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

2016-09-07 Thread Stephen Boyd
py of this structure per each device instance so that odd things don't happen. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 23 +-- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/drive

[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 Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 3 ++- 1 file

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

2016-09-07 Thread Stephen Boyd
we're going to delete that file soon. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c b/drivers/usb/chipidea/ci_hdrc_msm.

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

2016-09-07 Thread Stephen Boyd
o any wrapper specific things after the device is stopped. So when we stop the host role, send the stopped event. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/host.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/chipidea/hos

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

2016-09-07 Thread Stephen Boyd
anage. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/core.c | 6 ++ include/linux/usb/chipidea.h | 1 + 2 files changed, 7 insertions(+) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 01390e02ee53..532085a

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

2016-09-07 Thread Stephen Boyd
ace. Let's consolidate the register writes into the wrapper driver instead so that we clearly split the wrapper from the phys. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 39 ++ 1 f

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

2016-09-07 Thread Stephen Boyd
on to reset the controller and wrapper logic and other "housekeeping" things. This clk was removed in later revisions of the hardware because the reset methodology no longer required clks to be enabled to propagate resets. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Signed-off-b

[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 Cc: Signed-off-by: Stephen Boyd --- .../devicetree/bindings/phy/qcom,usb-hs-phy.txt| 83 ++ drivers/phy/Kconfig| 8 + drivers/phy/Makefile

[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 Cc: Signed-off-by: Stephen Boyd --- .../devicetree/bindings/phy/qcom,usb-hsic-phy.txt | 65 + drivers/phy/Kconfig| 7

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

2016-09-07 Thread Stephen Boyd
: Stephen Boyd --- drivers/usb/chipidea/Kconfig | 1 + drivers/usb/chipidea/ci_hdrc_msm.c | 50 -- 2 files changed, 49 insertions(+), 2 deletions(-) diff --git a/drivers/usb/chipidea/Kconfig b/drivers/usb/chipidea/Kconfig index 19c20eaa23f2..fc96f5cdcb5c

[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 Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/us

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

2016-09-07 Thread Stephen Boyd
Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 40 +++--- drivers/usb/chipidea/core.c| 8 ++-- drivers/usb/chipidea/host.c| 8 ++-- include/linux/usb/chipidea.h | 2 +- 4 files ch

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

2016-09-07 Thread Stephen Boyd
: Heikki Krogerus Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/Kconfig | 7 +++ drivers/usb/chipidea/Makefile | 1 + drivers/usb/chipidea/ci.h | 21 drivers/usb/chipidea/core.c | 31 +--- drivers/usb/chipidea/ulpi.c | 113

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

2016-09-07 Thread Stephen Boyd
o 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. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen B

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

2016-09-07 Thread Stephen Boyd
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 Cc: Greg Kroah-Hartman Cc: "Ivan T. Ivanov" Signed-off-by: Stephen Boyd --- drivers/u

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

2016-09-07 Thread Stephen Boyd
e09b042 ("usb: chipidea: Use extcon framework for VBUS and ID detect") Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/otg.c | 46 +++- include/linux/usb/chipidea.h | 2 ++ 2 files changed, 43 insertions(+), 5 deletions(-) diff --git a/driv

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

2016-09-07 Thread Stephen Boyd
ikki Krogerus Cc: Cc: Rob Herring Signed-off-by: Stephen Boyd --- Documentation/devicetree/bindings/usb/ulpi.txt | 20 +++ drivers/usb/common/ulpi.c | 77 -- 2 files changed, 92 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetre

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

2016-09-07 Thread Stephen Boyd
d ID detect") Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci.h | 3 --- drivers/usb/chipidea/core.c | 32 drivers/usb/chipidea/otg.c | 34 ++ 3 files changed, 30 insertions(+), 39 deletions(-) diff --git a/drive

[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 Cc: Signed-off-by: Stephen Boyd --- drivers/of/device.c | 2 ++ 1 file changed, 2 insertions

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 wrote: > > 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 PHY

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 > +++ b/Documentation/devicetree/bindings/phy/qcom-qusb2-phy.

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

2017-04-05 Thread Stephen Boyd
On 04/05, Vivek Gautam wrote: > Qualcomm chipsets have QUSB2 phy controller that provides > HighSpeed functionality for DWC3 controller. > Adding dt binding information for the same. > > Signed-off-by: Vivek Gautam > Acked-by: Rob Herring > --- Reviewed-by: Stephe

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

2017-04-05 Thread Stephen Boyd
On 04/05, Vivek Gautam wrote: > Qualcomm chipsets have QMP phy controller that provides > support to a number of controller, viz. PCIe, UFS, and USB. > Adding dt binding information for the same. > > Signed-off-by: Vivek Gautam > Acked-by: Rob Herring > --- Revi

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

2017-04-05 Thread Stephen Boyd
: Srinivas Kandagatla > --- Reviewed-by: Stephen Boyd -- 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 message to majord...@vger.kerne

[PATCH 00/12] Convert MSM to common clock framework

2013-06-04 Thread Stephen Boyd
also removes some custom clock APIs that MSM provides and finally moves the proc_comm clock code to the common struct clk. This patch series will be used as the foundation of the MSM 8660/8960 clock code that I plan to send out after this series. Stephen Boyd (12): msm_serial: Convert to

[PATCH 03/12] usb: otg: msm: Convert to clk_prepare/unprepare

2013-06-04 Thread Stephen Boyd
Add calls to clk_prepare and unprepare so that MSM can migrate to the common clock framework. Cc: Felipe Balbi Signed-off-by: Stephen Boyd --- drivers/usb/phy/phy-msm-usb.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/usb

[PATCH/RESEND 03/12] usb: otg: msm: Convert to clk_prepare/unprepare

2013-06-17 Thread Stephen Boyd
Add calls to clk_prepare and unprepare so that MSM can migrate to the common clock framework. Acked-by: Felipe Balbi Signed-off-by: Stephen Boyd --- drivers/usb/phy/phy-msm-usb.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a

sleeping while atomic in dwc3_gadget_start

2013-06-26 Thread Stephen Boyd
Hi, I'm getting the folllowing BUG message on bootup with 3.10-rc5 BUG: sleeping function called from invalid context at mm/slub.c:926 in_atomic(): 1, irqs_disabled(): 128, pid: 1, name: swapper/0 CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.10.0-rc5-gee3e35b-09316-ge78f3b35 #643 [] (unwind_backt

Re: sleeping while atomic in dwc3_gadget_start

2013-06-27 Thread Stephen Boyd
On 06/26/13 23:58, Felipe Balbi wrote: > On Wed, Jun 26, 2013 at 02:52:56PM -0700, Stephen Boyd wrote: >> Hi, >> >> I'm getting the folllowing BUG message on bootup with 3.10-rc5 >> >> BUG: sleeping function called from invalid context at mm/slub.c:926 >&g

Re: sleeping while atomic in dwc3_gadget_start

2013-06-28 Thread Stephen Boyd
On 06/28/13 03:58, Felipe Balbi wrote: > Hi, > > On Thu, Jun 27, 2013 at 09:57:52AM -0700, Stephen Boyd wrote: >> On 06/26/13 23:58, Felipe Balbi wrote: >>> On Wed, Jun 26, 2013 at 02:52:56PM -0700, Stephen Boyd wrote: >>>> Hi, >>>> >>>>

Re: [PATCH v3 3/3] usb: dwc3: Add Qualcomm DWC3 glue layer driver

2013-08-14 Thread Stephen Boyd
On 08/14/13 05:59, Ivan T. Ivanov wrote: > +} > + > +static const struct of_device_id of_dwc3_matach[] = { match? Maybe you can make it all one line too { .compatible = "qcom,dwc3" } > + { > + .compatible = "qcom,dwc3", > + }, > + { }, > +}; > +MODULE_DEVICE_TABLE(of, of_d

<    1   2   3   >