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

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" > > 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. Ivanov > [sb...@codeaurora.or

[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 Signed-off-by: Stephen Boyd --- It seems that I never sent out the updated version of this patch to cover all the SoCs we have. This is on top of linux-next. arch/arm/boot/dts/qcom-apq8084.dtsi | 14

[PATCH v2 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 Cc: Andy Gross Cc: Bjorn Andersson Signed-off-by: Stephen Boyd --- Changes

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 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 allows us to make the qc

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

2016-01-06 Thread Stephen Boyd
drivers should use platform device APIs instead. Therefore, add a platform_irq_count() API that mirrors the of_irq_count() API so that platform drivers can stay DT agnostic. Cc: Rob Herring Cc: Greg Kroah-Hartman Cc: Andy Gross Signed-off-by: Stephen Boyd --- drivers/base/platform

[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 Cc: Andy Gross Signed-off-by: Stephen Boyd --- drivers/pinctrl/qcom/pinctrl

[PATCH 0/3] Make qcom pinctrl drivers tristate again

2016-01-06 Thread Stephen Boyd
ol so that the build failure went away, so I've reverted that patch here after we fix the build failure with the new API. Greg, please ack the first patch so it can go through Linus' tree. Cc: Rob Herring Cc: Greg Kroah-Hartman Cc: Andy Gross Stephen Boyd (3): driver-core

[PATCH 3/3] Revert "pinctrl: qcom: make PMIC drivers bool"

2016-01-06 Thread Stephen Boyd
This reverts commit bda7c4c2b9767ce2af4394754498662d62079af5. These drivers build as modules now that we use platform_irq_count() instead of of_irq_count(). Cc: Rob Herring Cc: Andy Gross Signed-off-by: Stephen Boyd --- drivers/pinctrl/qcom/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2

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 tracker

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

2015-12-02 Thread Stephen Boyd
Typically we return error pointers when we want to use those pointers in the non-error case, but this function is just returning error pointers or NULL for success. Change the style to plain int to follow normal kernel coding styles. Cc: Joachim Eastwood Signed-off-by: Stephen Boyd --- .../net

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 paren

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 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 at 4:55 AM, Archit Taneja

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 consumer

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

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

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

2015-11-30 Thread Stephen Boyd
On 11/30, Stephen Boyd wrote: > These patches add support for the global and multimedia clock controllers > found on MSM8996 devices. The first patch allows us to implement a > "power of two" divider of different widths with a table based divider. > The second patch adds supp

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

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 with

[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 --- drivers/clk/qcom/Makefile| 1 + drivers/clk/qcom/clk-alpha-pll.c | 355

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

2015-11-30 Thread Stephen Boyd
ng to _get_table_maxdiv() so that we only return the maximum divider that is valid. This is useful for clocks that want to share the same divider table while limiting the available dividers to some subset of the table depending on the width of the bitfield. Cc: Rajendra Nayak Signed-off-by: Stephen Boyd --- dr

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

2015-11-30 Thread Stephen Boyd
tween frequencies that aren't the maximum. Implement custom rcg clk ops for this type of frequency switching. Signed-off-by: Stephen Boyd --- drivers/clk/qcom/clk-rcg.h | 1 + drivers/clk/qcom/clk-rcg2.c | 87 + 2 files changed, 88 insertions(+) di

[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 --- .../devicetree/bindings/clock/qcom,mmcc.txt|1 + drivers/clk/qcom/Kconfig

[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 v3 1/3] ARM: qcom: Make an option for qcom 'a-family' platforms

2015-11-30 Thread Stephen Boyd
gmann Signed-off-by: Stephen Boyd --- 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..dd5799dbcf26 100644 --- a/arch/arm/Makefile +++ b/arc

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

2015-11-30 Thread Stephen Boyd
Drop these configs now that we select the clocksources we need via the defconfig. Acked-by: Arnd Bergmann Signed-off-by: Stephen Boyd --- arch/arm/mach-qcom/Kconfig | 12 1 file changed, 12 deletions(-) diff --git a/arch/arm/mach-qcom/Kconfig b/arch/arm/mach-qcom/Kconfig index

[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 Signed-off-by: Stephen Boyd --- arch/arm/configs/qcom_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs

[PATCH v3 0/3] Remove ARCH_MSM* configs

2015-11-30 Thread Stephen Boyd
tch 1 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/Makefil

[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 --- arch/arm/configs/qcom_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/configs/qcom_defconfig b

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 > https://lkml.org/lkml/2015/11/17/955 > > arch/arm

[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

[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

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

2015-11-25 Thread Stephen Boyd
d to count 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):

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 2/2] ARM: Replace calls to __aeabi_{u}idiv with udiv/sdiv instructions

2015-11-25 Thread Stephen Boyd
. Using the division instructions should be faster and less power intensive than running the support code. Cc: Nicolas Pitre Cc: Arnd Bergmann Cc: Steven Rostedt Cc: Måns Rullgård Cc: Thomas Petazzoni Signed-off-by: Stephen Boyd --- arch/arm/Kconfig | 14 + arch/arm/include

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

2015-11-25 Thread Stephen Boyd
Pitre Cc: Arnd Bergmann Cc: Steven Rostedt Cc: Måns Rullgård Cc: Michal Marek Signed-off-by: Stephen Boyd --- scripts/Makefile | 1 + scripts/Makefile.build | 17 +- scripts/recorduidiv.c | 745 + 3 files changed, 761 insertions(+), 2

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

2015-11-25 Thread Stephen Boyd
c: Måns Rullgård Cc: Thomas Petazzoni Cc: Michal Marek Cc: Russell King - ARM Linux Stephen Boyd (2): scripts: Add a recorduidiv program ARM: Replace calls to __aeabi_{u}idiv with udiv/sdiv instructions arch/arm/Kconfig | 14 + arch/arm/include/asm/cputype.h | 8 +- arch/arm

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

2015-11-25 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 Signed-off-by: Stephen Boyd --- arch/arm/configs/qcom_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs

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

2015-11-25 Thread Stephen Boyd
Drop these configs now that we select the clocksources we need via the defconfig. Acked-by: Arnd Bergmann Signed-off-by: Stephen Boyd --- arch/arm/mach-qcom/Kconfig | 12 1 file changed, 12 deletions(-) diff --git a/arch/arm/mach-qcom/Kconfig b/arch/arm/mach-qcom/Kconfig index

[PATCH v2 0/3] Remove ARCH_MSM* configs

2015-11-25 Thread Stephen Boyd
patches 2 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

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

2015-11-25 Thread Stephen Boyd
t the text offset by 2MB or not, because the two go hand in hand. Cc: Arnd Bergmann Signed-off-by: Stephen Boyd --- arch/arm/Makefile | 3 +-- arch/arm/mach-qcom/Kconfig | 8 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm/Makefile b/arch/arm/Makefile

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

2015-11-25 Thread Stephen Boyd
On 11/25/15 12:30, Arnd Bergmann wrote: > On Wednesday 25 November 2015 11:34:47 Stephen Boyd wrote: >> On 11/25, Arnd Bergmann wrote: >>> On Wednesday 25 November 2015 13:27:55 Daniel Lezcano wrote: >>>> What about: >>>> >>>> tex

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 thes

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

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

[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 --- 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 index 2256cd1e25d1

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

2015-11-24 Thread Stephen Boyd
vers/built-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 > --- Reviewed-by: Stephen Boyd --

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

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 sup

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

2015-11-24 Thread Stephen Boyd
nt it. Suggested-by: Arnd Bergmann Signed-off-by: Stephen Boyd --- drivers/clocksource/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index b423785d6afc..7a5ffaa3e490 100644 --- a/drivers/clocksource/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 --- arch/arm/configs/qcom_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/qcom_defconfig b/arch/arm/configs

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 for?

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 grouped

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 > +++ b/Documentation/devicetree/bindings

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 p

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

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 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: [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 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 > > --- > []... > > &g

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 selec

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: [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 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 writes: > > > On 11/21, Måns Rullgård wrote: > >> > >> These functions are rather similar. Perhaps they could be combined > >> somehow. > >> > > > > Yes. I have this patch on top, just

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 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 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 writes: > > > +static int module_patch_aeabi_uidiv(unsigned long loc, const Elf32_Sym > > *sym) > > +{ > > + extern char __aeabi_uidiv[], __aeabi_idiv[]; > > + unsigned long udiv_addr = (unsigned long)

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

[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: Cc: "Ivan T. Ivanov" Cc: Bjorn Andersson Cc: Rob Herring Signed-off-by: Stephen Boyd --- arch/arm/boot/dts/qcom-apq8064.dtsi | 6 -- arch/arm/boot/dts/qcom-pm8841.dtsi | 2 +-

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

2015-11-20 Thread Stephen Boyd
Pitre Cc: Arnd Bergmann Cc: Steven Rostedt Cc: Måns Rullgård Signed-off-by: Stephen Boyd --- scripts/recordmcount.h | 335 +++-- 1 file changed, 269 insertions(+), 66 deletions(-) diff --git a/scripts/recordmcount.h b/scripts/recordmcount.h index

[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 Cc: Arnd Bergmann Cc: Steven Rostedt Cc: Måns Rullgård Signed-off-by: Stephen Boyd --- Makefile | 7 +++ arch/arm/Kconfig | 14

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

2015-11-20 Thread Stephen Boyd
? Comments/feedback appreciated. [1] http://lkml.kernel.org/r/1383951632-6090-1-git-send-email-sb...@codeaurora.org Cc: Nicolas Pitre Cc: Arnd Bergmann Cc: Steven Rostedt Cc: Måns Rullgård Stephen Boyd (3): scripts: Allow recordmcount to be used without tracing enabled recordmcount: Record loc

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

2015-11-20 Thread Stephen Boyd
ostedt Cc: Måns Rullgård Signed-off-by: Stephen Boyd --- kernel/trace/Kconfig| 4 scripts/Makefile.build | 15 +-- scripts/recordmcount.c | 10 +++--- scripts/recordmcount.h | 2 +- scripts/recordmcount.pl | 11 --- 5 files changed, 25 insertions(+), 17

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

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 > --- Applied to c

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

2015-11-20 Thread Stephen Boyd
On 11/19, Georgi Djakov wrote: > diff --git a/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt > b/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt > new file mode 100644 > index ..bd0fd0cd50dc > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt >

[PATCH] ASoC: qcom: Specify LE device endianness

2015-11-20 Thread Stephen Boyd
byte swapping to big endian accesses without byte swapping, leading to some confusing results. Specify the endianness explicitly so that the regmap core properly byte swaps the accesses for us. Cc: Kenneth Westfield Cc: Kevin Hilman Cc: Tyler Baker Cc: Simon Arlott Signed-off-by: Stephen Boyd

[PATCH] nvmem: qfprom: Specify LE device endianness

2015-11-20 Thread Stephen Boyd
ian byte swapping to big endian accesses without byte swapping, leading to some confusing results. Specify the endianness explicitly so that the regmap core properly byte swaps the accesses for us. Cc: Rajendra Nayak Cc: Kevin Hilman Cc: Tyler Baker Cc: Simon Arlott Cc: Mark Brown Signed-

[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 --- arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 1 + arch/arm64/boot/dts/qcom/msm8916-mtp.dtsi | 1

[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 --- arch/arm/boot/dts/qcom-apq8084-ifc6540.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-apq8084-ifc6540.dts b/arch/arm

[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 --- arch/arm64/boot/dts/qcom/msm8916-mtp.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8916-mt

[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 --- arch/arm/boot/dts/qcom-apq8074-dragonboard.dts | 2 ++ arch/arm/boot/dts/qcom-apq8084-ifc6540

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

2015-11-20 Thread Stephen Boyd
trees. 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 --- Documentation/devic

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

2015-11-20 Thread Stephen Boyd
a.org 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

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/

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

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

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] 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" Cc: Bjorn Andersson Signed-off-by: Stephen Boyd --- Stephen Boyd wrote: > We can also figure out the number of the pins from the number > of interrupts, so we really don't

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

[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 --- 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/boot/dts/qcom/pm8994.dtsi index

[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 --- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/msm8996-mtp.dts | 21 +++ arch/arm64/boot/dts/qcom/msm8996-mtp.dtsi | 30 arch/arm64

[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: Signed-off-by: Stephen Boyd --- Documentation/devicetree/bindings/arm/cpus.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bindings/arm

[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 --- arch/arm64/boot/dts/qcom/pm8004.dtsi | 19 +++ arch/arm64/boot/dts/qcom/pm8994.dtsi | 19 +++ arch/arm64/boot/dts/qcom/pmi8994.dtsi | 19 +++ 3

[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

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

2015-11-17 Thread Stephen Boyd
tween frequencies that aren't the maximum. Implement custom rcg clk ops for this type of frequency switching. Signed-off-by: Stephen Boyd --- drivers/clk/qcom/clk-rcg.h | 1 + drivers/clk/qcom/clk-rcg2.c | 87 + 2 files changed, 88 insertions(+) di

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

2015-11-17 Thread Stephen Boyd
ng to _get_table_maxdiv() so that we only return the maximum divider that is valid. This is useful for clocks that want to share the same divider table while limiting the available dividers to some subset of the table depending on the width of the bitfield. Cc: Rajendra Nayak Signed-off-by: Stephen Boyd --- dr

[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 --- drivers/clk/qcom/Makefile| 1 + drivers/clk/qcom/clk-alpha-pll.c | 355

  1   2   3   4   5   6   7   8   9   10   >