[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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 4/4] clk: mediatek: Add MT6797 clock support

2016-09-08 Thread Stephen Boyd
On 09/08/2016 03:49 AM, Mars Cheng wrote: > Add MT6797 clock support, include topckgen, apmixedsys, > infracfg and subsystem clocks. > > Signed-off-by: Mars Cheng > --- > arch/arm64/boot/dts/mediatek/mt6797.dtsi | 66 ++- Please don't combine dts and clk driver changes together. We generally do

Re: [RFC 00/17] clk: Add per-controller locks to fix deadlocks

2016-09-08 Thread Stephen Boyd
On 08/16, Krzysztof Kozlowski wrote: > Hi, > > RFC, please, do not apply, maybe except patch #1 which is harmless. > > > Introduction > > The patchset brings new entity: clock controller representing a hardware > block. The clock controller comes with its own prepare lock which > i

[PATCH] gpu: Remove depends on RESET_CONTROLLER when not a provider

2016-09-08 Thread Stephen Boyd
o Stuebner Cc: Mark Yao Cc: Philipp Zabel Cc: Peter Chen Signed-off-by: Stephen Boyd --- This has come out of some USB chipidea patches I've been working on. Please see http://lkml.kernel.org/r/20160907213519.27340-1-stephen.b...@linaro.org for more details. drivers/gpu/drm/rockchip/Kconf

[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

Re: [PATCH] clk: mmp: add missing header dependencies

2016-09-14 Thread Stephen Boyd
On 09/14, Baoyou Xie wrote: > We get 1 warning when building kernel with W=1: > drivers/clk/mmp/clk-mmp2.c:75:13: warning: no previous prototype for > 'mmp2_clk_init' [-Wmissing-prototypes] > > In fact, this function is declared in linux/clk/mmp.h, > so this patch add missing header dependencies.

Re: [PATCH] clk: meson: fix CLKID_GCLK_VENCI_INT typo

2016-09-14 Thread Stephen Boyd
On 09/06, Arnd Bergmann wrote: > The addition of many gate clocks added two entries in an array for > the same value: > > drivers/clk/meson/meson8b.c:479:10: error: initialized field overwritten > [-Werror=override-init] >[CLKID_GCLK_VENCI_INT] = &meson8b_gclk_venci_int.hw, >[CLKID_GC

Re: [PATCH] clk: st: clk-flexgen: Unmap region obtained by of_iomap

2016-09-14 Thread Stephen Boyd
On 09/14, arvind.yadav...@gmail.com wrote: > @@ -337,6 +339,8 @@ static void __init st_of_flexgen_setup(struct device_node > *np) > return; > > err: > + if (reg) This is always true? Why check? > + iounmap(reg); > if (clk_data) > kfree(clk_data->clks)

Re: [PATCH v3 00/14] Clock improvement for video playback

2016-09-14 Thread Stephen Boyd
On 08/29, gabriel.fernan...@st.com wrote: > From: Gabriel Fernandez > > v3: > - Rebase to v4.8-rc1 > - Tipo fix in st,clkgen-pll.txt > - Add Ack of Peter for the series > - Add missed patch: "ARM: DT: STiH4xx: Simplify clock binding of STiH4xx > platforms" > > v2: > - Simpliflication

Re: [PATCH] clk-kona-setup: Use kmalloc_array() in parent_process()

2016-09-14 Thread Stephen Boyd
On 09/14, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 14 Sep 2016 20:26:05 +0200 > > A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus use the corresponding function "kmalloc_array". > > This i

Re: [PATCH v3 1/3] Documentation: dtb: xgene: Add PMD clock binding

2016-09-14 Thread Stephen Boyd
On 09/12, Hoan Tran wrote: > Add APM X-Gene clock binding documentation for PMD clock. > > Signed-off-by: Hoan Tran > Acked-by: Rob Herring > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH v3 3/3] arm64: dts: xgene: Add DT node for APM X-Gene 2 CPU clocks

2016-09-14 Thread Stephen Boyd
On 09/12, Hoan Tran wrote: > Add DT nodes to enable APM X-Gene 2 CPU clocks. > > Signed-off-by: Hoan Tran > --- This can go through arm-soc? I'm not applying this. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH v3 2/3] clk: xgene: Add PMD clock

2016-09-14 Thread Stephen Boyd
On 09/12, Hoan Tran wrote: > Add X-Gene PMD clock support. > > PMD clock is implemented for a single register field. > Output rate = parent_rate * (denominator - scale) / denominator > with > - denominator = bitmask of register field + 1 > - scale = values of register field > > For example,

Re: [PATCH] clk: hisilicon: add CRG driver for Hi3798CV200 SoC

2016-09-14 Thread Stephen Boyd
On 09/12, Jiancheng Xue wrote: > Add CRG driver for Hi3798CV200 SoC. CRG(Clock and Reset > Generator) module generates clock and reset signals used > by other module blocks on SoC. > > Signed-off-by: Jiancheng Xue Overall looks fine. Just a few nitpicks. > --- > .../devicetree/bindings/clock/h

Re: [PATCH v2 1/4] clk: sunxi-ng: Add A64 clocks

2016-09-14 Thread Stephen Boyd
On 09/09, Maxime Ripard wrote: > index 106cba27c331..964f22091a10 100644 > --- a/drivers/clk/sunxi-ng/Makefile > +++ b/drivers/clk/sunxi-ng/Makefile > @@ -22,3 +22,4 @@ obj-$(CONFIG_SUN6I_A31_CCU) += ccu-sun6i-a31.o > obj-$(CONFIG_SUN8I_A23_CCU) += ccu-sun8i-a23.o > obj-$(CONFIG_SUN8I_A33_CCU)

Re: [PATCH v2] clk: iproc: Make clocks visible options

2016-09-14 Thread Stephen Boyd
use configs are hidden > 3) Code bloat > > Patch suggested by Stephen Boyd > > Signed-off-by: Jon Mason > --- Applied to clk-next with some minor fixup in the Makefile. I know this is almost a year old, but it still mostly applied. -- Qualcomm Innovation Center, Inc. is a mem

Re: [PATCH 04/34] clk: bcm2835: Migrate to clk_hw based registration and OF APIs

2016-09-14 Thread Stephen Boyd
On 06/02, Eric Anholt wrote: > Stephen Boyd writes: > > > Now that we have clk_hw based provider APIs to register clks, we > > can get rid of struct clk pointers while registering clks in > > these drivers, allowing us to move closer to a clear split of > >

Re: [PATCH 02/34] clk: at91: Migrate to clk_hw based registration and OF APIs

2016-09-14 Thread Stephen Boyd
On 06/07, Boris Brezillon wrote: > On Tue, 7 Jun 2016 18:36:21 +0200 > Alexandre Belloni wrote: > > > On 01/06/2016 at 16:15:01 -0700, Stephen Boyd wrote : > > > Now that we have clk_hw based provider APIs to register clks, we > > > can get rid of struct clk poi

Re: [PATCH v2 0/5] AT91: sckc improvements

2016-09-14 Thread Stephen Boyd
On 09/08, Alexandre Belloni wrote: > Hi, > > This patch set improves the slow clock controller driver. > > The first patch simply moves some code around to avoid having extern > functions declared. > > The second patch adds support for the SCKC found on sama5d4 and later. > It is notably missing

Re: [PATCH 3/3] clk: keystone: Add sci-clk driver support

2016-08-31 Thread Stephen Boyd
On 08/31, Tero Kristo wrote: > On 24/08/16 11:34, Stephen Boyd wrote: > >On 08/19, Nishanth Menon wrote: > >>diff --git a/drivers/clk/keystone/sci-clk.c b/drivers/clk/keystone/sci-clk.c > >>new file mode 100644 > >>index ..6c43e097e6d6 > >>

Re: [PATCH 1/3] clk: Hi6220: enable stub clock driver for ARCH_HISI

2016-08-31 Thread Stephen Boyd
; Reported-by: Dietmar Eggemann > Signed-off-by: Leo Yan > --- Acked-by: Stephen Boyd -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH v2] CLK: Add Loongson1C clock support

2016-08-31 Thread Stephen Boyd
On 08/22, Yang Ling wrote: > This patch adds clock support to Loongson1C SoC. > > Signed-off-by: Yang Ling > It would be better to use the new clk_hw_*() and clkdev_hw_*() registration APIs. Care to make that change? Obviously clk_register_pll() isn't going to work there, but we can fix that la

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

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

[GIT PULL] clk fixes for v4.8-rc4

2016-09-01 Thread Stephen Boyd
SoC vendor clk drivers. Chen-Yu Tsai (1): clk: sunxi-ng: Fix inverted test condition in ccu_helper_wait_for_lock Chris Zhong (1): clk: rockchip: fix rk3399 aclk_vio gate bit Stephen Boyd (1): Merge tag 'v4

Re: [PATCH] clk: prevent __of_clk_get_hw_from_provider() from returning NULL

2016-08-04 Thread Stephen Boyd
On 07/19, Masahiro Yamada wrote: > The .get(_hw) callback of an OF clock provider can return a NULL > pointer in some cases. > > For example, of_clk_src_onecell_get() returns NULL for index 1 of a > sparse array of clocks like follows: > > clk_num == 3 > idx 0: UART clk > idx 1: NULL (no cl

Re: of_clk_add_(hw_)providers multipule times for one node?

2016-08-04 Thread Stephen Boyd
+Rob in case he has any insight On 07/09, Masahiro Yamada wrote: > Hi. > > I think the current code allows to add > clk_providers multiple times against one DT node. > > Are there cases that really need to do so? If we have clk drivers that have a device driver structure and also use CLK_OF_DEC

Re: [PATCH v3 2/4] rtc: rtc-pm8xxx: Add support for pm8018 rtc

2016-08-04 Thread Stephen Boyd
On 07/19/2016 06:51 AM, Neil Armstrong wrote: > diff --git a/drivers/rtc/rtc-pm8xxx.c b/drivers/rtc/rtc-pm8xxx.c > index 795fcbd..976f5f6 100644 > --- a/drivers/rtc/rtc-pm8xxx.c > +++ b/drivers/rtc/rtc-pm8xxx.c > @@ -393,6 +393,16 @@ static int pm8xxx_rtc_enable(struct pm8xxx_rtc *rtc_dd) > r

Re: [PATCH v3 4/4] regulator: qcom_rpm-regulator: Add support for pm8018 rpm regulator

2016-08-04 Thread Stephen Boyd
On 07/19/2016 06:51 AM, Neil Armstrong wrote: > In order to support eh Qualcomm MDM9615 SoC, add support for the s/eh/the/ > PM8018 RPM regulator in the qcom_rpm-regulator driver. > > Acked-by: Mark Brown > Signed-off-by: Neil Armstrong > > diff --git a/drivers/regulator/qcom_rpm-regulator.c >

Re: [PATCH 2/3] regulator: qcom_smd: Fix voltage ranges for pma8084 ftsmps and pldo

2016-08-04 Thread Stephen Boyd
On 07/11, Andy Gross wrote: > On Mon, Jul 11, 2016 at 02:50:08PM -0700, Stephen Boyd wrote: > > The voltage ranges listed here are wrong. The pma8084 pldo > > supports three different overlapping voltage ranges with > > differing step sizes and the pma8084 ftsmps supports two.

Re: [PATCH 1/3] regulator: qcom_smd: Fix voltage ranges for pm8x41

2016-08-04 Thread Stephen Boyd
On 07/11, Andy Gross wrote: > On Mon, Jul 11, 2016 at 02:50:07PM -0700, Stephen Boyd wrote: > > > static const struct regulator_desc pm8941_pldo = { > > .linear_ranges = (struct regulator_linear_range[]) { > > - REGULATOR_LINEAR_RANGE

Re: of_clk_add_(hw_)providers multipule times for one node?

2016-08-08 Thread Stephen Boyd
On 08/08, Masahiro Yamada wrote: > Hi Stephen, > > > 2016-08-05 6:25 GMT+09:00 Stephen Boyd : > > +Rob in case he has any insight > > > > On 07/09, Masahiro Yamada wrote: > >> Hi. > >> > >> I think the current code allows to

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:

Re: [PATCH 1/2] clk: samsung: exynos5260: Move struct samsung_cmu_info to init section

2016-08-23 Thread Stephen Boyd
On 08/23, Sylwester Nawrocki wrote: > On 08/23/2016 04:35 AM, Chanwoo Choi wrote: > I checked stripped object files and it seems with the patch there > is some saving of the kernel image size. Exactly 784 bytes, which > makes zImage smaller by 480 bytes. > > The patch increases .init.rodata sectio

Re: [Patch v8] driver/clk/clk-si5338: Add common clock framework driver for si5338

2016-08-23 Thread Stephen Boyd
On 08/24, kbuild test robot wrote: > > 2827if (drv_type < 0) > 2828return drv_type; > 2829 > 2830drv_vdd = get_drv_vdd(drvdata, i); > 2831if (drv_vdd < 0) > 2832return drv_vdd; >

Re: [PATCH v2 02/10] clk: qcom: Add support for alpha pll hwfsm ops

2016-08-23 Thread Stephen Boyd
On 08/11, Rajendra Nayak wrote: > Add support to enable/disable the alpha pll using hwfsm Care to add some more description here about what's going on? > > Signed-off-by: Rajendra Nayak > --- > drivers/clk/qcom/clk-alpha-pll.c | 109 > ++- > drivers/clk/qco

Re: [PATCH v2 04/10] clk: qcom: Add support for PLLs with alpha mode

2016-08-23 Thread Stephen Boyd
On 08/11, Rajendra Nayak wrote: > Some PLLs can support an alpha mode, and a single alpha > register (instead of registers to program the M/N values), > the contents of which depend on the alpha mode selected. > (They are either treated as two's complement or M/N value) That's just a sentence, so

Re: [PATCH v2 00/10] clk: qcom: PLL updates

2016-08-23 Thread Stephen Boyd
On 08/11, Rajendra Nayak wrote: > Hi, > > This series adds some additional support to the clk-alpha-pll and the > clk-pll drivers in preperation to add the CPU clock driver support > on msm8996 It would be nice to see the users of this new code. Can that also be posted, even if it's just RFC and

Re: [PATCH v2 10/10] clk: qcom: Fix .set_rate to handle alpha PLLs w/wo dynamic update

2016-08-23 Thread Stephen Boyd
On 08/11, Rajendra Nayak wrote: > diff --git a/drivers/clk/qcom/clk-alpha-pll.c > b/drivers/clk/qcom/clk-alpha-pll.c > index 2184dc1..68c90f3 100644 > --- a/drivers/clk/qcom/clk-alpha-pll.c > +++ b/drivers/clk/qcom/clk-alpha-pll.c > @@ -113,6 +113,11 @@ static int wait_for_pll_offline(struct clk_a

Re: [PATCH v2 09/10] clk: qcom: Add .is_enabled ops for clk-alpha-pll

2016-08-23 Thread Stephen Boyd
On 08/11, Rajendra Nayak wrote: > This would be useful in subsequent patches when the .set_rate operation > would need to identify if the PLL is actually enabled > > Signed-off-by: Rajendra Nayak > --- Hmmm I suspect I never implemented the is_enabled op because that will happen to turn off clks

Re: [PATCH v2 07/10] clk: qcom: Add support to enable FSM mode for votable alpha PLLs

2016-08-23 Thread Stephen Boyd
On 08/11, Rajendra Nayak wrote: > diff --git a/drivers/clk/qcom/common.c b/drivers/clk/qcom/common.c > index f7c226a..6bf5abd 100644 > --- a/drivers/clk/qcom/common.c > +++ b/drivers/clk/qcom/common.c > @@ -25,6 +25,14 @@ > #include "reset.h" > #include "gdsc.h" > > +#define PLL_LOCK_COUNT_SHIF

Re: [PATCH 3/3] clk: keystone: Add sci-clk driver support

2016-08-24 Thread Stephen Boyd
On 08/19, Nishanth Menon wrote: > THANKO'S RAREMONO AM/FM/SW RADIO RECEIVER USB DRIVER > M: Hans Verkuil > diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig > index e2d9bd760c84..d1724999be78 100644 > --- a/drivers/clk/Kconfig > +++ b/drivers/clk/Kconfig > @@ -179,6 +179,19 @@ config COMM

Re: [PATCH V5] clk: bcm: Add driver for BCM53573 ILP clock

2016-08-24 Thread Stephen Boyd
On 08/23, Rafał Miłecki wrote: > diff --git a/drivers/clk/bcm/clk-bcm53573-ilp.c > b/drivers/clk/bcm/clk-bcm53573-ilp.c > new file mode 100644 > index 000..b7ac0eb > --- /dev/null > +++ b/drivers/clk/bcm/clk-bcm53573-ilp.c > @@ -0,0 +1,146 @@ > +/* > + * Copyright (C) 2016 Rafał Miłecki > + *

Re: [PATCH v12 2/4] reset: mediatek: Add MT2701 reset driver

2016-08-24 Thread Stephen Boyd
On 08/22, Erin Lo wrote: > diff --git a/drivers/clk/mediatek/clk-mt2701-hif.c > b/drivers/clk/mediatek/clk-mt2701-hif.c > index 18b4ab5..702fd74 100644 > --- a/drivers/clk/mediatek/clk-mt2701-hif.c > +++ b/drivers/clk/mediatek/clk-mt2701-hif.c > @@ -52,11 +52,15 @@ static int mtk_hifsys_init(struc

Re: [PATCH v12 1/4] clk: mediatek: Add MT2701 clock support

2016-08-24 Thread Stephen Boyd
On 08/22, Erin Lo wrote: > + > +static void __init mtk_infrasys_init_early(struct device_node *node) > +{ > + int r, i; > + > + if (!infra_clk_data) { > + infra_clk_data = mtk_alloc_clk_data(CLK_INFRA_NR); > + > + for (i = 0; i < CLK_INFRA_NR; i++) > +

Re: of_clk_add_(hw_)providers multipule times for one node?

2016-08-24 Thread Stephen Boyd
(Please trim replies) On 08/24, Masahiro Yamada wrote: > > Looks like the whole of my series was rejected, > but I was not sure why the following one was rejected. > https://patchwork.kernel.org/patch/9236563/ > Replying to that patch would have been better. > > Could you explain why -EPROBE_

Re: [PATCH 08/34] clk: asm9260: Migrate to clk_hw based registration and OF APIs

2016-08-24 Thread Stephen Boyd
On 06/01, Stephen Boyd wrote: > Now that we have clk_hw based provider APIs to register clks, we > can get rid of struct clk pointers while registering clks in > these drivers, allowing us to move closer to a clear split of > consumer and provider clk APIs. > > Cc: Oleksij Rempe

Re: [PATCH 08/34] clk: asm9260: Migrate to clk_hw based registration and OF APIs

2016-08-24 Thread Stephen Boyd
On 06/01, Stephen Boyd wrote: > Now that we have clk_hw based provider APIs to register clks, we > can get rid of struct clk pointers while registering clks in > these drivers, allowing us to move closer to a clear split of > consumer and provider clk APIs. > > Cc: Oleksij Rempe

Re: [PATCH 09/34] clk: axi-clkgen: Migrate to clk_hw based OF and registration APIs

2016-08-24 Thread Stephen Boyd
On 06/01, Stephen Boyd wrote: > Now that we have clk_hw based provider APIs to register clks, we > can get rid of struct clk pointers while registering clks in > these drivers, allowing us to move closer to a clear split of > consumer and provider clk APIs. > > Cc: Lars-Peter

Re: [PATCH 10/34] clk: axm5516: Migrate to clk_hw based OF and registration APIs

2016-08-24 Thread Stephen Boyd
On 06/01, Stephen Boyd wrote: > Now that we have clk_hw based provider APIs to register clks, we > can get rid of struct clk pointers while registering clks in > these drivers, allowing us to move closer to a clear split of > consumer and provider clk APIs. Make thing simple

Re: [PATCH 01/11] clk: microchip: use readl_poll_timeout() in pbclk_set_rate().

2016-08-24 Thread Stephen Boyd
On 05/17, Purna Chandra Mandal wrote: > pbclk_set_rate() is using readl_poll_timeout_atomic() even > though spinlock is released. Fix it by replacing with > readl_poll_timeout(). > > Signed-off-by: Purna Chandra Mandal > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member o

Re: [PATCH 11/34] clk: cdce: Migrate to clk_hw based OF and registration APIs

2016-08-24 Thread Stephen Boyd
On 06/01, Stephen Boyd wrote: > Now that we have clk_hw based provider APIs to register clks, we > can get rid of struct clk pointers while registering clks in > these drivers, allowing us to move closer to a clear split of > consumer and provider clk APIs. > > Cc: Max Filippo

Re: [PATCH 02/11] clk: microchip: Initialize SOSC clock rate for PIC32MZDA.

2016-08-24 Thread Stephen Boyd
On 05/17, Purna Chandra Mandal wrote: > Optional SOSC is an external fixed clock running at 32768HZ. > So Initialize SOSC rate as per PIC32MZDA datasheet. > > Signed-off-by: Purna Chandra Mandal > > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,

Re: [PATCH] clk: h8300: Migrate to clk_hw based registration APIs

2016-08-24 Thread Stephen Boyd
On 08/16, Stephen Boyd wrote: > Now that we have clk_hw based provider APIs to register clks, we > can get rid of struct clk pointers while registering clks in > these drivers, allowing us to move closer to a clear split of > consumer and provider clk APIs. > > Cc: Yoshinori Sat

Re: [PATCH 31/34] clk: twl6040: Migrate to clk_hw based registration APIs

2016-08-24 Thread Stephen Boyd
On 06/01, Stephen Boyd wrote: > Now that we have clk_hw based provider APIs to register clks, we > can get rid of struct clk pointers while registering clks in > these drivers, allowing us to move closer to a clear split of > consumer and provider clk APIs. > > Cc: Peter Ujfalus

<    4   5   6   7   8   9   10   11   12   13   >