Re: [PATCH v3 09/12] EXAMPLE CODE: usb: port: Parse pwrseq phandle from Device Tree

2016-06-01 Thread Stephen Boyd
Quoting Krzysztof Kozlowski (2016-06-01 01:02:18) > Parse usb-pwrseq property from Device Tree to get the phandle to pwrseq > device. The pwrseq device will be used by USB hub to cycle the power > before activating ports. > > Signed-off-by: Krzysztof Kozlowski Drive by review comment. I was ho

Re: [PATCH v3 09/12] EXAMPLE CODE: usb: port: Parse pwrseq phandle from Device Tree

2016-06-01 Thread Stephen Boyd
Quoting Peter Chen (2016-06-01 05:05:20) > On Wed, Jun 01, 2016 at 01:57:23AM -0700, Stephen Boyd wrote: > > Quoting Krzysztof Kozlowski (2016-06-01 01:02:18) > > > Parse usb-pwrseq property from Device Tree to get the phandle to pwrseq > > > device. The pwrseq device

Re: [PATCH 0/2] usb: phy: Add support for the Qualcomm HSIC USB PHY

2016-06-17 Thread Stephen Boyd
On 06/17/2016 03:25 AM, Neil Armstrong wrote: > In order to support the Qualcomm MDM9615 in the Sierra Wireless WP8548 > Modules, add the Qualcomm HSIC USB PHY used inside the MDM9615 SoC. > > This patchset is part of a global SoC + Module + Board support for the > Sierra Wireless mangOH Board supp

[PATCH] usb: misc: Add driver for usb4604

2016-06-25 Thread Stephen Boyd
trims it down to just handle the optional reset gpio and adds the i2c command to put the device into hub mode. Datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/1716A.pdf Cc: Signed-off-by: Stephen Boyd --- Documentation/devicetree/bindings/usb/usb4604.txt | 19 +++ drivers/usb

[PATCH] usb: ulpi: Automatically set driver::owner with ulpi_driver_register()

2016-06-25 Thread Stephen Boyd
ned-off-by: Stephen Boyd --- drivers/usb/common/ulpi.c | 5 +++-- include/linux/ulpi/driver.h | 6 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/usb/common/ulpi.c b/drivers/usb/common/ulpi.c index a6b2a150b176..4e15e2b9f4b4 100644 --- a/drivers/usb/common/ul

[PATCH 03/21] usb: ulpi: Avoid reading/writing in device creation with OF devices

2016-06-26 Thread Stephen Boyd
ids any problems where we need to power on the device but haven't figured out which device it is yet to know what sort of regulators, clks, etc. that need to be turned on for it to work. Cc: Greg Kroah-Hartman Cc: Heikki Krogerus Signed-off-by: Stephen Boyd

[PATCH 12/21] usb: chipidea: msm: Keep device runtime enabled

2016-06-26 Thread Stephen Boyd
rupts, etc. for finer grain power management later, but this is necessary to make sure we can keep accessing the device right now. Cc: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/driver

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

2016-06-26 Thread Stephen Boyd
on to read/write the ULPI phy registers. Some ULPI phys drive this clk themselves and so it isn't necessary to turn on to probe a ULPI device, but the HSIC phy doesn't provide one itself, so we must turn it on here. Cc: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd -

[PATCH 13/21] usb: chipidea: msm: Allow core to get usb phy

2016-06-26 Thread Stephen Boyd
The chipidea core gets the usb phy and initializes the phy at the right point now so we don't need to get the phy in this driver. Cc: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 21 - 1 file changed, 21 dele

[PATCH 11/21] usb: chipidea: msm: Use hw_write_id_reg() instead of writel directly

2016-06-26 Thread Stephen Boyd
we're going to delete that file soon. Cc: 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 21/21] phy: Add support for Qualcomm's USB HS phy

2016-06-26 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| 71 ++ drivers/phy/Kconfig| 8 + drivers/phy/Makefile

[PATCH 08/21] usb: chipidea: Kick OTG state machine for AVVIS with vbus extcon

2016-06-26 Thread Stephen Boyd
Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/otg_fsm.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/usb/chipidea/otg_fsm.c b/drivers/usb/chipidea/otg_fsm.c index de8e22ec3902..aab076fc4d82 100644 --- a/drivers/usb/chipidea/otg_fsm.c

[PATCH 10/21] usb: chipidea: msm: Rely on core to override AHBBURST

2016-06-26 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 3889809fd0c4..37591a4b1346 100644 --- a/drivers/usb

[PATCH 07/21] usb: chipidea: Notify of reset when switching into host mode

2016-06-26 Thread Stephen Boyd
the usb command register. Therefore, add this event hook in the host role after we toggle that bit. Cc: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/host.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/chipidea/host.c b/drivers/usb

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

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

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

2016-06-26 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 | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/drive

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

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

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

2016-06-26 Thread Stephen Boyd
te is properly managed across role switches. Cc: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci.h | 3 ++- drivers/usb/chipidea/core.c | 23 ++- drivers/usb/chipidea/host.c | 5 ++--- drivers/usb/chipidea/udc.c | 2 ++ 4 files ch

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

2016-06-26 Thread Stephen Boyd
D detect") Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/core.c | 32 drivers/usb/chipidea/otg.c | 35 +++ 2 files changed, 31 insertions(+), 36 deletions(-) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chip

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

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

2016-06-26 Thread Stephen Boyd
quot;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/drivers/us

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

2016-06-26 Thread Stephen Boyd
s, regulators, gpios, etc. because we don't have firmware like ACPI to turn these things on for us. And we can use the DT phy binding to point our phy consumer to the phy provider. Cc: Greg Kroah-Hartman Cc: Heikki Krogerus Cc: Cc: Rob Herring Signed-off-by: Stephen Boyd --- Documentatio

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

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

2016-06-26 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 | 46 ++ 1 file changed

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

2016-06-26 Thread Stephen Boyd
y after the reset bit is toggled in USBCMD. [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: Sup

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

2016-06-26 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 | 50 +++ include/linux/of_dev

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 *ci)

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

2016-06-27 Thread Stephen Boyd
9521 ("usb: common: otg-fsm: add HNP polling support") Signed-off-by: Stephen Boyd --- drivers/usb/common/usb-otg-fsm.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/usb/common/usb-otg-fsm.c b/drivers/usb/common/usb-otg-fsm.c index 9059b7dc185e..73eec

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(&ulpi->dev, "cal_sleep"); > > + if (IS_ERR(clk)) > > + return PTR_ERR(clk); > > Hi Stephe

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(&ulpi->dev,

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 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->platdata->vbus_extcon is a

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

2016-12-28 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. Acked-by: Rob Herring Cc: Signed-off-by: Stephen Boyd --- drivers/of/device.c | 23 +++ include/linux/of_device.h | 6 ++ 2

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

2016-12-28 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 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 Cc: Acked-by: Rob Herring Signed-off-by: Stephen Boyd --- .../devicetree/bindings/phy/qcom,usb-hs-phy.txt| 78 +++ drivers/phy/Kconfig| 8 + drivers/phy

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

[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 Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/udc.c | 10

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

[PATCH v6 15/25] usb: chipidea: msm: Add proper clk and reset support

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

2016-12-28 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. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Cc: "Ivan T. Ivanov" Signed-off-by: Stephen Boyd --- drivers/u

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

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

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

2016-12-28 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 v6 18/25] usb: chipidea: msm: Make platform data driver local instead of global

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

2016-12-28 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 v6 11/25] usb: chipidea: vbus event may exist before starting gadget

2016-12-28 Thread Stephen Boyd
stopping host but before starting gadget. Signed-off-by: Peter Chen Tested-by: Stephen Boyd Reviewed-by: Stephen Boyd [sb...@codeaurora.org: Modify comment text per list discussion] Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/core.c | 4 drivers/usb/chipidea/otg.c | 14

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

2016-12-28 Thread Stephen Boyd
The CI_HDRC_CONTROLLER_STOPPED_EVENT may want to call sleeping APIs similar to how _gadget_stop_activity() may. Let's drop the lock across the event so that glue drivers can make sleeping calls. Cc: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/

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

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

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

2016-12-28 Thread Stephen Boyd
probe ordering. [1] https://git.linaro.org/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 Peter Chen (1): usb: chipidea: vbus event may exist before starting gad

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

2016-12-28 Thread Stephen Boyd
Heikki Krogerus Cc: Acked-by: Rob Herring Signed-off-by: Stephen Boyd --- Documentation/devicetree/bindings/usb/ulpi.txt | 20 +++ drivers/usb/common/ulpi.c | 79 -- 2 files changed, 93 insertions(+), 6 deletions(-) create mode 100644 Documentati

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

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

2016-12-28 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 v6 07/25] usb: chipidea: Notify events when switching host mode

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

2016-12-28 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 cf132f057137..732b281485de 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/udc.c

[PATCH v6 06/25] usb: chipidea: Add platform flag for wrapper phy management

2016-12-28 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 6e0d614a8075..3d15aee

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 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 Signed-off-by: Stephen Boyd --- New patch drivers/phy/phy-core.c | 15 +++ include/linux/phy/phy.h |

[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: Acked-by: Rob Herring Signed-off-by: Stephen Boyd --- phy_set_mode() hook split up to toggle two bits independently with new set_vbus() hook. .../devicetree/bindings/phy/qcom,usb-hs-phy.txt| 78 +++ drivers

[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 Signed-off-by: Stephen Boyd --- New patch drivers/usb/chipidea/otg.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/usb/chipidea/otg.c b/drivers/usb/chipidea/o

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

2017-01-20 Thread Stephen Boyd
ure for. Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- 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 files changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/

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

2017-01-20 Thread Stephen Boyd
is. [1] https://git.linaro.org/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 (5): phy: Add support for Qualcomm's USB HSIC phy usb: chipidea: msm:

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

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

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

2017-01-25 Thread Stephen Boyd
b: chipidea: msm: Mux over secondary phy at the > right time") > Signed-off-by: Wei Yongjun Thanks. Reviewed-by: Stephen Boyd -- 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

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

2017-01-25 Thread Stephen Boyd
here. Cc: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/core.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 802ca253cf6d..fc3b9e07aa81 100644

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

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

2017-01-25 Thread Stephen Boyd
ts for this. [1] https://git.linaro.org/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: Ad

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

2017-01-25 Thread Stephen Boyd
The high-speed phy on qcom SoCs is controlled via the ULPI viewport. Cc: Kishon Vijay Abraham I Cc: Acked-by: Rob Herring Signed-off-by: Stephen Boyd --- .../devicetree/bindings/phy/qcom,usb-hs-phy.txt| 84 ++ drivers/phy/Kconfig| 8 + drivers/phy

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

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

2016-09-13 Thread Stephen Boyd
the few places where we're missing conversions. Cc: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/udc.c | 6 +++--- drivers/usb/chipidea/udc.h | 12 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/usb/chipidea

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

2016-09-13 Thread Stephen Boyd
e gadget is never started. Furthermore, we see timeout messages like: timeout waiting for 800 in OTGSC Let's workaround this by skiping the wait for BSV when we're using an extcon for the vbus notification and let's properly emulate the BSVIS event that would happen when we

[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 Cc: Chanwoo Choi Cc: Signed-off-by: Stephen Boyd --- Should I make the extcon part optional? I could see a case where there are two "OTG" ports connected to the mux (or two hubs), and fo

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

2016-09-13 Thread Stephen Boyd
the few places where we're missing conversions. Cc: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- Peter Chen wrote: > > I am afraid I can't apply for testing > > Applying: usb: chipidea: Properly mark little endian descriptors > fatal: sha1 informat

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 this m

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

2016-10-17 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. Acked-by: Rob Herring Cc: Signed-off-by: Stephen Boyd --- drivers/of/device.c | 23 +++ include/linux/of_device.h | 6 ++ 2

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

2016-10-17 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 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 Cc: Cc: Rob Herring Signed-off-by: Stephen Boyd --- .../devicetree/bindings/phy/qcom,usb-hs-phy.txt| 86 +++ drivers/phy/Kconfig| 8 + drivers/phy

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

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

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

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

2016-10-17 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 661f43fe0f9e..145b1fd86f58 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/udc.c

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

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

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

2016-10-17 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. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Cc: "Ivan T. Ivanov" Signed-off-by: Stephen Boyd --- drivers/u

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

2016-10-17 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 v5 14/23] usb: chipidea: msm: Use hw_write_id_reg() instead of writel

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

2016-10-17 Thread Stephen Boyd
e gadget is never started. Furthermore, we see timeout messages like: timeout waiting for 800 in OTGSC Let's workaround this by skiping the wait for BSV when we're using an extcon for the vbus notification and let's properly emulate the BSVIS event that would happen wh

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

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

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

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

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

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

2016-10-17 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 | 79 -- 2 files changed, 93 insertions(+), 6 deletions(-) create mode 100644 Documentation/devicetre

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

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

2016-10-17 Thread Stephen Boyd
2] https://git.linaro.org/people/stephen.boyd/linux.git/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 modalia

  1   2   3   >