Re: [PATCH] mfd: qcom-spmi-pmic: Don't access non-existing registers

2016-01-06 Thread Stephen Boyd
On 11/17/15 16:06, Stephen Boyd wrote: > From: "Ivan T. Ivanov" <ivan.iva...@linaro.org> > > Revision ID registers are available only on devices with > Slave IDs that are even, so don't make access to unavailable > registers. > > Signed-off-by: Ivan T.

Re: [PATCH 2/3] pinctrl: qcom: Use platform_irq_count() instead of of_irq_count()

2016-01-06 Thread Stephen Boyd
On 01/06/16 17:19, Bjorn Andersson wrote: > On Wed, Jan 6, 2016 at 5:12 PM, Stephen Boyd <sb...@codeaurora.org> wrote: >> of_irq_count() is not an exported symbol (and it shouldn't be >> used by platform drivers anyway) so use platform_irq_count() >> instead. This

[PATCH v2 2/3] pinctrl: qcom: Use platform_irq_count() instead of of_irq_count()

2016-01-06 Thread Stephen Boyd
ndersson <bj...@kryo.se> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- Changes from v1: * Fixed one wrong of_irq_count() noticed by Bjorn drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 4 +++- drivers/pinctrl/qcom/pinctrl-spmi-mpp.c | 4 +++- drivers/pinctrl/qcom

Re: [PATCH v2 1/5] devicetree: bindings: Document qcom board compatible format

2016-01-06 Thread Stephen Boyd
On 11/23/15 16:47, Stephen Boyd wrote: > On 11/22, Rob Herring wrote: >> >> Much more reasonable now. I do find the '/' in it a bit strange though. > I can remove the backslash if you like. Is a dash more preferred? > >> Acked-by: Rob Herring <r...@kernel.org>

[PATCH 1/3] driver-core: platform: Add platform_irq_count()

2016-01-06 Thread Stephen Boyd
org> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- drivers/base/platform.c | 20 include/linux/platform_device.h | 1 + 2 files changed, 21 insertions(+) diff --git a/drivers/base/platform.c b/drivers/base/platform.c index d77ed0c946dd..8dcbb266643b 1

[PATCH 2/3] pinctrl: qcom: Use platform_irq_count() instead of of_irq_count()

2016-01-06 Thread Stephen Boyd
of_irq_count() is not an exported symbol (and it shouldn't be used by platform drivers anyway) so use platform_irq_count() instead. This allows us to make the qcom pinctrl drivers modular again. Cc: Rob Herring <robh...@kernel.org> Cc: Andy Gross <andy.gr...@linaro.org> Signed-off

[PATCH] arm: dts: qcom: Add more board clocks

2016-01-06 Thread Stephen Boyd
These clocks are fixed rate board sources that should be in DT. Add them. Cc: Georgi Djakov <georgi.dja...@linaro.org> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- It seems that I never sent out the updated version of this patch to cover all the SoCs we have. This is on

Re: [PATCH] ARM: Runtime patch udiv/sdiv instructions into __aeabi_{u}idiv()

2016-01-04 Thread Stephen Boyd
On 12/11, Nicolas Pitre wrote: > On Fri, 11 Dec 2015, Arnd Bergmann wrote: > > > On Friday 11 December 2015 12:22:20 Nicolas Pitre wrote: > > > Subject: [PATCH] ARM: Runtime patch udiv/sdiv instructions into > > > __aeabi_{u}idiv() > > > > > Thanks. > > > Before you put it in the patch

Re: [PATCH v2 10/10] dt-bindings: Add DSIv2 documentation

2015-12-02 Thread Stephen Boyd
On 11/23, Archit Taneja wrote: > > > On 11/21/2015 1:29 AM, Rob Herring wrote: > >+Stephen > > > >On Wed, Nov 18, 2015 at 9:24 AM, Archit Taneja > >wrote: > >>Hi Rob, > >> > >>On 11/18/2015 6:48 PM, Rob Herring wrote: > >>> > >>>+dt list > >>> > >>>On Wed, Nov 18, 2015

Re: [PATCH v2 10/10] dt-bindings: Add DSIv2 documentation

2015-12-02 Thread Stephen Boyd
On 12/02, Stephen Boyd wrote: > > My only thought there would be to make of_clk_set_defaults() wait > until both clocks are registered before it does any parent > setting. But only in the case where the assigned parents contains > a clock that is provided by the node being proce

Re: [PATCH v2 10/10] dt-bindings: Add DSIv2 documentation

2015-12-02 Thread Stephen Boyd
On 12/02, Archit Taneja wrote: > On 12/02/2015 01:50 PM, Stephen Boyd wrote: > > > >My only thought there would be to make of_clk_set_defaults() wait > >until both clocks are registered before it does any parent > >setting. But only in the case where the assigned

[PATCH] stmmac: ipq806x: Return error values instead of pointers

2015-12-02 Thread Stephen Boyd
ed-off-by: Stephen Boyd <sb...@codeaurora.org> --- .../net/ethernet/stmicro/stmmac/dwmac-ipq806x.c| 24 ++ 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq

Re: [PATCH v8 11/13] clk: qcom: gdsc: Use PM clocks to control gdsc clocks

2015-12-01 Thread Stephen Boyd
On 11/27, Rajendra Nayak wrote: > > > > I'm lost. I was hoping we could just make up a clkspec on the > > stack and pass it over to of_clk_get_from_provider() without > > having to go through the np of the client device. The point being > > to avoid forcing this code from knowing about the

[PATCH v3 0/3] Remove ARCH_MSM* configs

2015-11-30 Thread Stephen Boyd
replaced with one that moves config to mach-qcom/Kconfig * Applied Arnd's acks to patches 2 and 3 Stephen Boyd (3): ARM: qcom: Make an option for qcom 'a-family' platforms ARM: qcom_defconfig: Enable HAVE_ARM_ARCH_TIMER ARM: qcom: Drop ARCH_MSM* configs arch/arm/Makefile | 3

[PATCH v3 2/3] ARM: qcom_defconfig: Enable HAVE_ARM_ARCH_TIMER

2015-11-30 Thread Stephen Boyd
Enable this config in the defconfig so that we can delete the selection logic surrounding it that exists in mach-qcom/Kconfig. Acked-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- arch/arm/configs/qcom_defconfig | 1 + 1 file changed,

[PATCH v2 0/5] Add support for MSM8996 clock controllers

2015-11-30 Thread Stephen Boyd
dd support for the two clock controllers. The fourth patch is a new type of clock ops for the graphics clock that does some custom ping-pong between different PLLs when switching graphics frequencies. Changes from v1: * Added some missing clocks in gcc and mmcc drivers * Updated PLL settings in mmc

[PATCH v2 5/5] clk: qcom: Add MSM8996 Multimedia Clock Controller (MMCC) driver

2015-11-30 Thread Stephen Boyd
Add a driver for the multimedia clock controller found on MSM8996 based devices. This should allow most multimedia device drivers to probe and control their clocks. Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- .../devicetree/bindings/clock/qcom,mmcc.txt|1 + drive

[PATCH v2 4/5] clk: qcom: Add gfx3d ping-pong PLL frequency switching

2015-11-30 Thread Stephen Boyd
frequencies that aren't the maximum. Implement custom rcg clk ops for this type of frequency switching. Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- drivers/clk/qcom/clk-rcg.h | 1 + drivers/clk/qcom/clk-rcg2.c | 87 + 2 files changed, 88 inse

[PATCH v2 2/5] clk: qcom: Add Alpha PLL support

2015-11-30 Thread Stephen Boyd
Add support for configuring rates of, enabling, and disabling Alpha PLLs. This is sufficient for the types of PLLs found in the global and multimedia clock controllers. Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- drivers/clk/qcom/Makefile| 1 + drivers/clk/qcom/clk

[PATCH v2 1/5] clk: divider: Cap table divider values to 'width' member

2015-11-30 Thread Stephen Boyd
ed-off-by: Stephen Boyd <sb...@codeaurora.org> --- drivers/clk/clk-divider.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c index 3ace102a2a0a..ded3ff4b91b9 100644 --- a/drivers/clk/clk-divider.c +++ b/drivers/clk/c

Re: [PATCH 5/6] clk: qcom: gdsc: Do not check for disabled status on votable gdscs

2015-11-30 Thread Stephen Boyd
On 11/26, Rajendra Nayak wrote: > Some gdscs might be controlled via voting registers and might not > really disable when the kernel intends to disable them (due to other > votes keeping them enabled) > Mark these gdscs with a flag for we do not check/wait on a disable > status for these gdscs

Re: [PATCH 2/6] clk: qcom: gdsc: Add support for gdscs with gds hw controller

2015-11-30 Thread Stephen Boyd
On 11/26, Rajendra Nayak wrote: > @@ -58,30 +58,34 @@ static int gdsc_toggle_logic(struct gdsc *sc, bool en) > { > int ret; > u32 val = en ? 0 : SW_COLLAPSE_MASK; > - u32 check = en ? PWR_ON_MASK : 0; > unsigned long timeout; > + unsigned int status_reg = sc->gdscr; >

[PATCH v3 1/3] ARM: qcom: Make an option for qcom 'a-family' platforms

2015-11-30 Thread Stephen Boyd
<a...@arndb.de> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- arch/arm/Makefile | 3 +-- arch/arm/mach-qcom/Kconfig | 13 + 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 2c2b28ee4811..dd5799d

Re: arm64: dts: qcom: Add apq8096 dragonboard dts skeletons

2015-11-30 Thread Stephen Boyd
On 11/26, Rajendra Nayak wrote: > Add new dtsi and dts files for the apq8096 dragonboards with just > a serial device used as debug console > > Signed-off-by: Rajendra Nayak > --- > Patch applies on top of Stephens' patches to add msm8996 dtsi >

[PATCH] ARM: defconfig: qcom: Enable SSBI drivers

2015-11-30 Thread Stephen Boyd
Enable some ssbi drivers present on msm8660, msm8960 and apq8064 devices so that we fully exercise the devices present in the dts files. Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- arch/arm/configs/qcom_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/ar

Re: arm64: dts: qcom: Add apq8096 dragonboard dts skeletons

2015-11-30 Thread Stephen Boyd
On 12/01, Rajendra Nayak wrote: > > On 12/01/2015 05:18 AM, Stephen Boyd wrote: > > On 11/26, Rajendra Nayak wrote: > >> Add new dtsi and dts files for the apq8096 dragonboards with just > >> a serial device used as debug console > >> > >> Sign

Re: [PATCH 2/6] clk: qcom: gdsc: Add support for gdscs with gds hw controller

2015-11-30 Thread Stephen Boyd
On 12/01, Rajendra Nayak wrote: > > On 12/01/2015 07:52 AM, Stephen Boyd wrote: > > On 11/26, Rajendra Nayak wrote: > > > >> + udelay(1); > >> + } > >> + > >> + do { > >> + if (gdsc_is_enabled(sc, statu

[PATCH 0/2] qcom: Remove size elements from pmic reg properties

2015-11-25 Thread Stephen Boyd
the irqs instead of look at this reg property, we can apply this patch to remove the size elements and be DT compliant. That would be a complicated cross-merge between pinctrl and arm-soc trees though, so perhaps this series should wait until the two trees meet in v4.5? Stephen Boyd (2): ARM: dts

[PATCH 2/2] ARM64: dts: qcom: Remove size elements from pmic reg properties

2015-11-25 Thread Stephen Boyd
The #size-cells for the pmics are 0, but we specify a size in the reg property so that MPP and GPIO modules can figure out how many pins there are. Now that we've done that by counting irqs, we can remove the size elements in the reg properties and be DT compliant. Signed-off-by: Stephen Boyd <

[PATCH 1/2] ARM: dts: qcom: Remove size elements from pmic reg properties

2015-11-25 Thread Stephen Boyd
The #size-cells for the pmics are 0, but we specify a size in the reg property so that MPP and GPIO modules can figure out how many pins there are. Now that we've done that by counting irqs, we can remove the size elements in the reg properties and be DT compliant. Signed-off-by: Stephen Boyd <

Re: [PATCH 3/3] ARM: qcom: Drop ARCH_MSM* configs

2015-11-25 Thread Stephen Boyd
On 11/25, Arnd Bergmann wrote: > On Wednesday 25 November 2015 13:27:55 Daniel Lezcano wrote: > > > > What about: > > > > textofs-$(CONFIG_ARCH_MSM8X60) := 0x00208000 > > textofs-$(CONFIG_ARCH_MSM8960) := 0x00208000 > > > > in arch/arm/Makefile > > Good point, we need to do something about

Re: [PATCH v2 1/3] ARM: qcom: Make an option for qcom clocksource platforms

2015-11-25 Thread Stephen Boyd
On 11/25/15 14:08, Arnd Bergmann wrote: > On Wednesday 25 November 2015 13:04:36 Stephen Boyd wrote: >> diff --git a/arch/arm/Makefile b/arch/arm/Makefile >> index 2c2b28ee4811..999d523ac09f 100644 >> --- a/arch/arm/Makefile >> +++ b/arch/arm/Makefile >

[PATCH v2 1/2] scripts: Add a recorduidiv program

2015-11-25 Thread Stephen Boyd
Pitre <n...@fluxnic.net> Cc: Arnd Bergmann <a...@arndb.de> Cc: Steven Rostedt <rost...@goodmis.org> Cc: Måns Rullgård <m...@mansr.com> Cc: Michal Marek <mma...@suse.com> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- scripts/Makefile | 1 + scri

[PATCH v2 2/2] ARM: Replace calls to __aeabi_{u}idiv with udiv/sdiv instructions

2015-11-25 Thread Stephen Boyd
i <thomas.petazz...@free-electrons.com> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- arch/arm/Kconfig | 14 + arch/arm/include/asm/cputype.h | 8 - arch/arm/include/asm/setup.h | 3 ++ arch/arm/kernel/module.c | 40 +

[PATCH v2 0/3] Remove ARCH_MSM* configs

2015-11-25 Thread Stephen Boyd
and 3 Stephen Boyd (3): ARM: qcom: Make an option for qcom clocksource platforms ARM: qcom_defconfig: Enable HAVE_ARM_ARCH_TIMER ARM: qcom: Drop ARCH_MSM* configs arch/arm/Makefile | 3 +-- arch/arm/configs/qcom_defconfig | 1 + arch/arm/mach-qcom/Kconfig | 16

[PATCH v2 0/2] ARM: Use udiv/sdiv for __aeabi_{u}idiv library functions

2015-11-25 Thread Stephen Boyd
; Cc: Steven Rostedt <rost...@goodmis.org> Cc: Måns Rullgård <m...@mansr.com> Cc: Thomas Petazzoni <thomas.petazz...@free-electrons.com> Cc: Michal Marek <mma...@suse.com> Cc: Russell King - ARM Linux <li...@arm.linux.org.uk> Stephen Boyd (2): scripts: Add a recorduidiv

Re: [PATCH RFC 17/27] drivers: cpu-pd: Record CPUs that are part of the domain

2015-11-25 Thread Stephen Boyd
On 11/25/15 06:13, Lina Iyer wrote: > On Tue, Nov 24 2015 at 14:00 -0700, Stephen Boyd wrote: >> On 11/17, Lina Iyer wrote: >>> diff --git a/drivers/base/power/cpu-pd.c b/drivers/base/power/cpu-pd.c >>> index 9758b8d..617ce54 100644 >>> --- a/drivers/base/p

Re: [RFC/PATCH 0/3] ARM: Use udiv/sdiv for __aeabi_{u}idiv library functions

2015-11-24 Thread Stephen Boyd
On 11/24, Arnd Bergmann wrote: > On Monday 23 November 2015 15:13:52 Stephen Boyd wrote: > > On 11/23, Arnd Bergmann wrote: > > > > > > - PJ4/PJ4B (not PJ4B-MP) has a different custom opcode for udiv and sdiv > > > in ARM mode. We don't support

Re: [PATCH 1/3] clocksource: defbool CLKSRC_QCOM=y on ARCH_QCOM and make it visible

2015-11-24 Thread Stephen Boyd
On 11/24/15 17:08, Stephen Boyd wrote: > We want to remove the ARCH_MSM* configs in mach-qcom/Kconfig > because they are mostly proxy configs for selecting the right > clocksource driver. Therefore, make CLKSRC_QCOM default to the > value of ARCH_QCOM, but also make it visible if AR

[PATCH 0/3] Remove ARCH_MSM* configs

2015-11-24 Thread Stephen Boyd
This patch series allows us to remove the ARCH_MSM* configs that live in mach-qcom/Kconfig. They're mostly proxy configs for user selectable clocksource configurations anyway. The first patch can go via Daniel, while the other two can go via Andy. Stephen Boyd (3): clocksource: defbool

Re: [PATCH] ARM: qcom: select ARM_CPU_SUSPEND for power management

2015-11-24 Thread Stephen Boyd
-in.o: In function `qcom_cpuidle_init': > :(.init.text+0x610c): undefined reference to `cpu_resume_arm' > > This adds a 'select' Kconfig statement to ensure it's always > enabled. > > Signed-off-by: Arnd Bergmann <a...@arndb.de> > --- Reviewed-by: Stephen Boyd <sb...@codeaurora.org>

[PATCH 3/3] ARM: qcom: Drop ARCH_MSM* configs

2015-11-24 Thread Stephen Boyd
Drop these configs now that we select the clocksources we need via the defconfig. Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- arch/arm/mach-qcom/Kconfig | 16 1 file changed, 16 deletions(-) diff --git a/arch/arm/mach-qcom/Kconfig b/arch/arm/mach-qcom/Kconfig

[PATCH 2/3] ARM: qcom_defconfig: Enable HAVE_ARM_ARCH_TIMER

2015-11-24 Thread Stephen Boyd
Enable this config in the defconfig so that we can delete the selection logic surrounding it that exists in mach-qcom/Kconfig. Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- arch/arm/configs/qcom_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/c

[PATCH 1/3] clocksource: defbool CLKSRC_QCOM=y on ARCH_QCOM and make it visible

2015-11-24 Thread Stephen Boyd
it. Suggested-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- drivers/clocksource/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index b423785d6afc..7a5ffaa

Re: [PATCH RFC 10/27] drivers: power: Introduce PM domains for CPUs/clusters

2015-11-24 Thread Stephen Boyd
On 11/17, Lina Iyer wrote: > diff --git a/Documentation/arm/cpu-domains.txt > b/Documentation/arm/cpu-domains.txt > new file mode 100644 > index 000..ef5f215 > --- /dev/null > +++ b/Documentation/arm/cpu-domains.txt > @@ -0,0 +1,52 @@ > +CPU Clusters and PM domain > + > +Newer CPUs are

Re: [PATCH RFC 17/27] drivers: cpu-pd: Record CPUs that are part of the domain

2015-11-24 Thread Stephen Boyd
On 11/17, Lina Iyer wrote: > diff --git a/drivers/base/power/cpu-pd.c b/drivers/base/power/cpu-pd.c > index 9758b8d..617ce54 100644 > --- a/drivers/base/power/cpu-pd.c > +++ b/drivers/base/power/cpu-pd.c > @@ -18,6 +18,7 @@ > #include > #include > #include > +#include What's this added

Re: [RFC/PATCH 0/3] ARM: Use udiv/sdiv for __aeabi_{u}idiv library functions

2015-11-24 Thread Stephen Boyd
On 11/24, Russell King - ARM Linux wrote: > On Tue, Nov 24, 2015 at 12:53:49AM -0800, Stephen Boyd wrote: > > > > And adding CPU_V7VE causes a cascade of changes to wherever > > CPU_V7 is being used today. Here's the patch I currently have, > > without the platfo

Re: [PATCH RFC 07/27] PM / Domains: Read domain residency from DT

2015-11-24 Thread Stephen Boyd
On 11/17, Lina Iyer wrote: > diff --git a/Documentation/devicetree/bindings/power/power_domain.txt > b/Documentation/devicetree/bindings/power/power_domain.txt > index ecfaf44..d71da29 100644 > --- a/Documentation/devicetree/bindings/power/power_domain.txt > +++

Re: [RFC/PATCH 0/3] ARM: Use udiv/sdiv for __aeabi_{u}idiv library functions

2015-11-23 Thread Stephen Boyd
On 11/23, Arnd Bergmann wrote: > On Monday 23 November 2015 09:14:39 Christopher Covington wrote: > > On 11/23/2015 03:15 AM, Arnd Bergmann wrote: > > > On Sunday 22 November 2015 21:36:45 Nicolas Pitre wrote: > > >> On Sun, 22 Nov 2015, Arnd Bergmann wrote: > > > > > > Ok, thanks a lot! So the

Re: [RFC/PATCH 0/3] ARM: Use udiv/sdiv for __aeabi_{u}idiv library functions

2015-11-23 Thread Stephen Boyd
On 11/23, Arnd Bergmann wrote: > On Monday 23 November 2015 13:32:06 Stephen Boyd wrote: > > On 11/23, Arnd Bergmann wrote: > > > On Monday 23 November 2015 12:38:47 Stephen Boyd wrote: > > > > It would be nice to drop the ARCH_MSM* configs entirely. If we > >

Re: [PATCH v4 4/5] clk: qcom: Add RPM clock controller driver

2015-11-23 Thread Stephen Boyd
On 11/21, Bjorn Andersson wrote: > On Fri 20 Nov 16:39 PST 2015, Stephen Boyd wrote: > > > On 11/19, Georgi Djakov wrote: > > > diff --git a/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt > > > b/Documentation/devicetree/bindings/clock/qcom,rpmcc.

Re: [RFC/PATCH 0/3] ARM: Use udiv/sdiv for __aeabi_{u}idiv library functions

2015-11-23 Thread Stephen Boyd
On 11/23, Arnd Bergmann wrote: > > Ok, thanks for the confirmation. > > Summarizing what we've found, I think we can get away with just > introducing two Kconfig symbols ARCH_MULTI_V7VE and CPU_V7VE. > Most CPUs fall clearly into one category or the other, and then > we can allow LPAE to be

Re: [PATCH v2 1/5] devicetree: bindings: Document qcom board compatible format

2015-11-23 Thread Stephen Boyd
On 11/22, Rob Herring wrote: > On Fri, Nov 20, 2015 at 03:31:16PM -0800, Stephen Boyd wrote: > > Some qcom based bootloaders identify the dtb blob based on a set > > of device properties like SoC, platform, PMIC, and revisions of > > those components. In downstream kernels, t

Re: [PATCH] nvmem: qfprom: Specify LE device endianness

2015-11-23 Thread Stephen Boyd
On 11/21, Srinivas Kandagatla wrote: > Hi Stephen, > > Thanks for the fix. > > I will send it to Greg for next rc. Thanks. The change in regmap core that causes the problem is only in -next. I'm not sure if it's going to hit mainline this release cycle, so if it doesn't you could queue this for

Re: [PATCH 2/4] arm64: dts: Add msm8996 SoC and MTP board support

2015-11-23 Thread Stephen Boyd
On 11/23, Rajendra Nayak wrote: > > On 11/18/2015 06:42 AM, Stephen Boyd wrote: > > Add initial device tree support for the Qualcomm MSM8996 SoC and > > MTP8996 evaluation board. > > > > Signed-off-by: Stephen Boyd <sb...@codeaurora.org> > > --- >

Re: [RFC/PATCH 2/3] recordmcount: Record locations of __aeabi_{u}idiv() calls on ARM

2015-11-23 Thread Stephen Boyd
On 11/23, Russell King - ARM Linux wrote: > On Mon, Nov 23, 2015 at 01:16:01PM -0800, Stephen Boyd wrote: > > Thanks. I don't see the prints on my system even with this config > > on top of allyesconfig. Odd. > > Hmm. > > It could be because I use ccache in hard

Re: [RFC/PATCH 3/3] ARM: Replace calls to __aeabi_{u}idiv with udiv/sdiv instructions

2015-11-23 Thread Stephen Boyd
On 11/21, Måns Rullgård wrote: > Stephen Boyd <sb...@codeaurora.org> writes: > > > +static int module_patch_aeabi_uidiv(unsigned long loc, const Elf32_Sym > > *sym) > > +{ > > + extern char __aeabi_uidiv[], __aeabi_idiv[]; > > + unsigned lon

Re: [RFC/PATCH 2/3] recordmcount: Record locations of __aeabi_{u}idiv() calls on ARM

2015-11-23 Thread Stephen Boyd
On 11/21, Russell King - ARM Linux wrote: > On Fri, Nov 20, 2015 at 05:23:16PM -0800, Stephen Boyd wrote: > > @@ -452,14 +631,14 @@ static char const * > > __has_rel_mcount(Elf_Shdr const *const relhdr, /* is SHT_REL or SHT_RELA > > */ > >

Re: [RFC/PATCH 2/3] recordmcount: Record locations of __aeabi_{u}idiv() calls on ARM

2015-11-23 Thread Stephen Boyd
On 11/23, Russell King - ARM Linux wrote: > On Mon, Nov 23, 2015 at 12:53:35PM -0800, Stephen Boyd wrote: > > On 11/21, Russell King - ARM Linux wrote: > > > On Fri, Nov 20, 2015 at 05:23:16PM -0800, Stephen Boyd wrote: > > > > @@ -452,14 +631,14 @@ static char con

Re: [RFC/PATCH 3/3] ARM: Replace calls to __aeabi_{u}idiv with udiv/sdiv instructions

2015-11-23 Thread Stephen Boyd
On 11/23, Måns Rullgård wrote: > Stephen Boyd <sb...@codeaurora.org> writes: > > > On 11/21, Måns Rullgård wrote: > >> > >> These functions are rather similar. Perhaps they could be combined > >> somehow. > >> > > > >

Re: [RFC/PATCH 0/3] ARM: Use udiv/sdiv for __aeabi_{u}idiv library functions

2015-11-23 Thread Stephen Boyd
On 11/23, Arnd Bergmann wrote: > On Monday 23 November 2015 12:38:47 Stephen Boyd wrote: > > On 11/23, Arnd Bergmann wrote: > > > On Monday 23 November 2015 09:14:39 Christopher Covington wrote: > > > > On 11/23/2015 03:15 AM, Arnd Bergmann wrote: > > > &g

Re: [RFC/PATCH] pinctrl: qcom: Add generic ssbi and spmi GPIO/MPP bindings

2015-11-20 Thread Stephen Boyd
On 11/19, Rob Herring wrote: > On Tue, Nov 17, 2015 at 05:00:26PM -0800, Stephen Boyd wrote: > > The drivers don't really need to know which PMIC they're for, so > > make a generic binding for them. This alleviates us from updating > > the drivers every time a new PMIC

Re: [PATCH] clk: qcom: Specify LE device endianness

2015-11-20 Thread Stephen Boyd
On 11/20, Tyler Baker wrote: > On 9 November 2015 at 14:30, Stephen Boyd <sb...@codeaurora.org> wrote: > > All these clock controllers are little endian devices, but so far > > we've been relying on the regmap mmio bus handling this for us > > without explicitly stat

Re: [PATCH] clk: qcom: Specify LE device endianness

2015-11-20 Thread Stephen Boyd
On 11/09, Stephen Boyd wrote: > All these clock controllers are little endian devices, but so far > we've been relying on the regmap mmio bus handling this for us > without explicitly stating that fact. After commit 4a98da2164cf > (regmap-mmio: Use native endianness for read/write

[PATCH] nvmem: qfprom: Specify LE device endianness

2015-11-20 Thread Stephen Boyd
a...@linaro.org> Cc: Simon Arlott <si...@fire.lp0.eu> Cc: Mark Brown <broo...@kernel.org> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- drivers/nvmem/qfprom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvmem/qfprom.c b/drivers/nvmem/qfprom.c ind

[PATCH v2 4/5] arm64: dts: qcom: Alias pm8916 on msm8916 devices

2015-11-20 Thread Stephen Boyd
Add an alias for pm8916 on msm8916 based SoCs so that the newly updated dtbTool can find the pmic compatible string and add the pmic-id element to the QCDT header. Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 1 + arch/arm64/boot/dt

[PATCH v2 3/5] arm: dts: qcom: Update ifc6540 compat for qcom boot format

2015-11-20 Thread Stephen Boyd
The ifc6540 is an sbc (single board computer) board, so update the compatible field accordingly. Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- arch/arm/boot/dts/qcom-apq8084-ifc6540.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-a

[PATCH v2 2/5] arm64: dts: qcom: Make msm8916-mtp compatible string compliant

2015-11-20 Thread Stephen Boyd
This compatible string isn't compliant with the format for subtypes. Replace it with a compliant compatible type. Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- arch/arm64/boot/dts/qcom/msm8916-mtp.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm6

[PATCH v2 5/5] arm: dts: qcom: Add aliases for PMICs

2015-11-20 Thread Stephen Boyd
Add an alias for the PMICs found on qcom based SoCs so that the newly updated dtbTool can find the PMIC compatible string and add the pmic-id element to the QCDT header. Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- arch/arm/boot/dts/qcom-apq8074-dragonboard.dts | 2 ++ arch/ar

[PATCH v2 1/5] devicetree: bindings: Document qcom board compatible format

2015-11-20 Thread Stephen Boyd
. Future bootloaders may be updated to look at the compatible field instead of looking for the table of contents image. For non-updateable bootloaders, a new dtbTool program will parse the compatible string and generate a QCDT image from it. Signed-off-by: Stephen Boyd <sb...@codeaurora.

[PATCH v2 0/5] Remove the need for qcom,{msm-id,board-id,pmic-id}

2015-11-20 Thread Stephen Boyd
Stephen Boyd (5): devicetree: bindings: Document qcom board compatible format arm64: dts: qcom: Make msm8916-mtp compatible string compliant arm: dts: qcom: Update ifc6540 compat for qcom boot format arm64: dts: qcom: Alias pm8916 on msm8916 devices arm: dts: qcom: Add aliases for PMICs

[PATCH] ASoC: qcom: Specify LE device endianness

2015-11-20 Thread Stephen Boyd
@linaro.org> Cc: Simon Arlott <si...@fire.lp0.eu> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- sound/soc/qcom/lpass-cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c index e5101e0d2d37..00b6c9d039cf 100644 --

Re: [PATCH v4 1/5] clk: qcom: msm8916: Move xo and sleep clocks into DT

2015-11-20 Thread Stephen Boyd
On 11/19, Georgi Djakov wrote: > Move the xo and sleep clocks to device-tree, instead of hard-coding > them in the driver. This allows us to insert the RPM clocks (if they > are enabled) in between the on-board oscillators and the actual clock. > > Signed-off-by: Georgi Djakov

Re: [PATCH v4 2/5] arm64: dts: qcom: msm8916: Add fixed rate on-board oscillator

2015-11-20 Thread Stephen Boyd
On 11/19, Georgi Djakov wrote: > Currently the rates of the xo and sleep clocks are hard-coded in the > GCC driver, but this is a board layout description that actually should > be in the DT. Moving them into DT also allows us to insert the RPM > controlled clocks between the DT and GCC clocks. >

[RFC/PATCH 2/3] recordmcount: Record locations of __aeabi_{u}idiv() calls on ARM

2015-11-20 Thread Stephen Boyd
Pitre <n...@fluxnic.net> Cc: Arnd Bergmann <a...@arndb.de> Cc: Steven Rostedt <rost...@goodmis.org> Cc: Måns Rullgård <m...@mansr.com> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- scripts/recordmcount.h | 335 +++--

[RFC/PATCH 0/3] ARM: Use udiv/sdiv for __aeabi_{u}idiv library functions

2015-11-20 Thread Stephen Boyd
appreciated. [1] http://lkml.kernel.org/r/1383951632-6090-1-git-send-email-sb...@codeaurora.org Cc: Nicolas Pitre <n...@fluxnic.net> Cc: Arnd Bergmann <a...@arndb.de> Cc: Steven Rostedt <rost...@goodmis.org> Cc: Måns Rullgård <m...@mansr.com> Stephen Boyd (3): scripts: Allow

[RFC/PATCH 3/3] ARM: Replace calls to __aeabi_{u}idiv with udiv/sdiv instructions

2015-11-20 Thread Stephen Boyd
. Using the division instructions should be faster and less power intensive than running the support code. Cc: Nicolas Pitre <n...@fluxnic.net> Cc: Arnd Bergmann <a...@arndb.de> Cc: Steven Rostedt <rost...@goodmis.org> Cc: Måns Rullgård <m...@mansr.com> Signed-off-by: Stephen Bo

[RFC/PATCH 1/3] scripts: Allow recordmcount to be used without tracing enabled

2015-11-20 Thread Stephen Boyd
rgmann <a...@arndb.de> Cc: Steven Rostedt <rost...@goodmis.org> Cc: Måns Rullgård <m...@mansr.com> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- kernel/trace/Kconfig| 4 scripts/Makefile.build | 15 +-- scripts/recordmcount.c | 10 +++---

[PATCH] arm: dts: qcom: Add generic PMIC gpio/MPP compat strings

2015-11-20 Thread Stephen Boyd
Add the generic compatible strings for the PMIC gpio and MPP modules found on qcom based PMICs. Cc: <devicet...@vger.kernel.org> Cc: "Ivan T. Ivanov" <iiva...@mm-sol.com> Cc: Bjorn Andersson <bjorn.anders...@sonymobile.com> Cc: Rob Herring <r...@kernel.org&g

[PATCH] pinctrl: qcom: pmic-gpio/mpp: of_irq_count() == npins

2015-11-18 Thread Stephen Boyd
the number of changes we have to make to the driver for each new pmic revision. Cc: "Ivan T. Ivanov" <iiva...@mm-sol.com> Cc: Bjorn Andersson <bjorn.anders...@sonymobile.com> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- Stephen Boyd wrote: > We can also fi

Re: [PATCH 2/4] arm64: dts: Add msm8996 SoC and MTP board support

2015-11-18 Thread Stephen Boyd
On 11/17/2015 09:06 PM, kbuild test robot wrote: > Hi Stephen, > > [auto build test ERROR on robh/for-next] > [also build test ERROR on v4.4-rc1 next-20151117] > > url: > https://github.com/0day-ci/linux/commits/Stephen-Boyd/devicetree-bindings-Document-Kryo-cpu/20151118-0

Re: [PATCH 5/5] clk: qcom: Add MSM8996 Multimedia Clock Controller (MMCC) driver

2015-11-18 Thread Stephen Boyd
On 11/17, Stephen Boyd wrote: > +static struct clk_alpha_pll mmpll0_early = { > + .offset = 0x0, > + .vco_table = mmpll_p_vco, > + .num_vco = ARRAY_SIZE(mmpll_p_vco), > + .clkr.hw.init = &(struct clk_init_data){ > + .name = "mmpll0_early"

[PATCH] mfd: qcom-spmi-pmic: Don't access non-existing registers

2015-11-17 Thread Stephen Boyd
lave ids that are even] Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- drivers/mfd/qcom-spmi-pmic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/qcom-spmi-pmic.c b/drivers/mfd/qcom-spmi-pmic.c index af6ac1c4b45c..8653e8b9bb4f 100644 --- a/driver

[PATCH v2] spmi: pmic-arb: Support more than 128 peripherals

2015-11-17 Thread Stephen Boyd
for simplicity. Based on a patch by Gilad Avidov <gavi...@codeaurora.org> and Sagar Dharia <sdha...@codeaurora.org>. Cc: Gilad Avidov <gavi...@codeaurora.org> Cc: Sagar Dharia <sdha...@codeaurora.org> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- Changes from v

[PATCH] pinctrl: qcom: Add msm8996 pinctrl driver

2015-11-17 Thread Stephen Boyd
.@codeaurora.org> [sb...@codeaurora.org: Remove duplicate entries and enums] Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- .../bindings/pinctrl/qcom,msm8996-pinctrl.txt | 199 ++ drivers/pinctrl/qcom/Kconfig |8 + drivers/pinctrl/qcom/Makefile

[PATCH 2/2] pinctrl: qcom: spmi-mpp: Add pm8994 mpp support

2015-11-17 Thread Stephen Boyd
Update the driver and binding for pm8994-mpp devices. Cc: <devicet...@vger.kernel.org> Cc: "Ivan T. Ivanov" <iiva...@mm-sol.com> Cc: Bjorn Andersson <bjorn.anders...@sonymobile.com> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- Documentation/devicetree/

[PATCH 0/2] Add pm8994 gpio and mpp support

2015-11-17 Thread Stephen Boyd
This adds the support for pm8994 gpio and mpp modules. Given that there's nothing besides a compatible string update, I'm going to send a separate patch to add generic compatible strings for these sorts of things. Stephen Boyd (2): pinctrl: qcom: spmi-gpio: Add pm8994 gpio support pinctrl

[PATCH 1/2] pinctrl: qcom: spmi-gpio: Add pm8994 gpio support

2015-11-17 Thread Stephen Boyd
Update the binding and driver for pm8994-gpio devices. Cc: <devicet...@vger.kernel.org> Cc: "Ivan T. Ivanov" <iiva...@mm-sol.com> Cc: Bjorn Andersson <bjorn.anders...@sonymobile.com> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- Documentation/dev

[RFC/PATCH] pinctrl: qcom: Add generic ssbi and spmi GPIO/MPP bindings

2015-11-17 Thread Stephen Boyd
ndersson <bjorn.anders...@sonymobile.com> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- We can also figure out the number of the pins from the number of interrupts, so we really don't need to even look at the size of the reg property or model number for the spmi and ssbi modules. I'll pr

[PATCH 4/5] clk: qcom: Add gfx3d ping-pong PLL frequency switching

2015-11-17 Thread Stephen Boyd
frequencies that aren't the maximum. Implement custom rcg clk ops for this type of frequency switching. Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- drivers/clk/qcom/clk-rcg.h | 1 + drivers/clk/qcom/clk-rcg2.c | 87 + 2 files changed, 88 inse

[PATCH 1/5] clk: divider: Cap table divider values to 'width' member

2015-11-17 Thread Stephen Boyd
ed-off-by: Stephen Boyd <sb...@codeaurora.org> --- drivers/clk/clk-divider.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c index 3ace102a2a0a..ded3ff4b91b9 100644 --- a/drivers/clk/clk-divider.c +++ b/drivers/clk/c

[PATCH 2/5] clk: qcom: Add Alpha PLL support

2015-11-17 Thread Stephen Boyd
Add support for configuring rates of, enabling, and disabling Alpha PLLs. This is sufficient for the types of PLLs found in the global and multimedia clock controllers. Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- drivers/clk/qcom/Makefile| 1 + drivers/clk/qcom/clk

[PATCH 4/4] arm64: dts: qcom: Add pm8994 gpios and MPPs

2015-11-17 Thread Stephen Boyd
Add the gpio and MPP devices to the pm8994 pmic dts. Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- arch/arm64/boot/dts/qcom/pm8994.dtsi | 43 1 file changed, 43 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8994.dtsi b/arch/arm64/bo

[PATCH 5/5] clk: qcom: Add MSM8996 Multimedia Clock Controller (MMCC) driver

2015-11-17 Thread Stephen Boyd
Add a driver for the multimedia clock controller found on MSM8996 based devices. This should allow most multimedia device drivers to probe and control their clocks. Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- .../devicetree/bindings/clock/qcom,mmcc.txt|1 + drive

[PATCH 0/5] Add support for MSM8996 clock controllers

2015-11-17 Thread Stephen Boyd
ng mode vs. manually enabling and disabling them. So a v2 is probably going to come out after some more testing is done. Cc: Rajendra Nayak <rna...@codeaurora.com> Stephen Boyd (5): clk: divider: Cap table divider values to 'width' member clk: qcom: Add Alpha PLL support clk: qcom: Ad

[PATCH 2/4] arm64: dts: Add msm8996 SoC and MTP board support

2015-11-17 Thread Stephen Boyd
Add initial device tree support for the Qualcomm MSM8996 SoC and MTP8996 evaluation board. Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/msm8996-mtp.dts | 21 +++ arch/arm64/boot/dts/qcom/msm8996-mt

[PATCH 1/4] devicetree: bindings: Document Kryo cpu

2015-11-17 Thread Stephen Boyd
Document the compatible string for the Kryo family of qcom cpus. Cc: <devicet...@vger.kernel.org> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- Documentation/devicetree/bindings/arm/cpus.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/

[PATCH 3/4] arm64: dts: qcom: Add pm8994, pmi8994, pm8004 PMIC skeletons

2015-11-17 Thread Stephen Boyd
Add the skeleton nodes for the PMICs found on msm8996-mtp devices. Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- arch/arm64/boot/dts/qcom/pm8004.dtsi | 19 +++ arch/arm64/boot/dts/qcom/pm8994.dtsi | 19 +++ arch/arm64/boot/dts/qcom/pmi8994.dts

[PATCH 0/4] Add DTS for MSM8996 SoC and MTP

2015-11-17 Thread Stephen Boyd
These patches add the initial dts files for the MSM8996 SoC and MTP evaluation board. Stephen Boyd (4): devicetree: bindings: Document Kryo cpu arm64: dts: Add msm8996 SoC and MTP board support arm64: dts: qcom: Add pm8994, pmi8994, pm8004 PMIC skeletons arm64: dts: qcom: Add pm8994 gpios

Re: [PATCH v2] mmc: sdhci-msm: Boost controller core clock

2015-11-17 Thread Stephen Boyd
On 11/16, Ulf Hansson wrote: > [...] > > > > > > In case you're wondering, the max frequency for sdc1 on 8974ac is > > 400MHz. If it's just a plain 8974pro then the max frequency is > > 200MHz. Otherwise, sdc2 maxes out at 200Mhz and sdc3 and sdc4 max > > out at 100MHz. > > When you say that

  1   2   3   4   5   6   7   8   9   10   >