Re: [PATCH v2 4/7] mfd: ssbi: Add regmap read/write helpers

2013-12-26 Thread Stephen Boyd
On 12/24, Mark Brown wrote: > On Mon, Dec 23, 2013 at 12:46:00PM -0800, Stephen Boyd wrote: > > > +int ssbi_reg_read(void *context, unsigned int reg, unsigned int *val) > > +{ > > + *val = 0; > > + return ssbi_read(context, reg, (u8 *)val, 1); > > +}

[PATCH v2] regmap: Allow regmap_bulk_write() to work for "no-bus" regmaps

2013-12-26 Thread Stephen Boyd
regmap_bulk_write() should decay to performing individual writes if we're using a "no-bus" regmap. Unfortunately, it returns an error because there is no map->bus pointer. Fix it. Signed-off-by: Stephen Boyd --- This is based on v3.13-rc4 drivers/base/re

Re: [PATCH v4 00/15] usb: phy: msm: Fixes, cleanups and DT support

2013-12-26 Thread Stephen Boyd
On 12/20, David Brown wrote: > On Thu, Dec 19, 2013 at 05:26:13PM -0600, Felipe Balbi wrote: > > >it's getting quite late for me. I still want to leave my stuff soaking > >in linux-next for a while. I'll try my best, though, if you ack it ASAP > > Thanks. Patch 1 already has my Ack in it, and I'

Re: [PATCH v4 01/15] usb: phy: msm: Move mach dependent code to platform data

2013-12-27 Thread Stephen Boyd
On 12/27/13 10:10, Felipe Balbi wrote: > Hi, > > On Tue, Nov 12, 2013 at 04:51:36PM +0200, Ivan T. Ivanov wrote: >> From: "Ivan T. Ivanov" >> >> This patch fix compilation error when driver is compiled >> in multi-platform builds. >> >> drivers/built-in.o: In function `msm_otg_link_clk_reset': >>

[PATCH v4 2/6] genirq: export percpu irq functions for module usage

2013-12-30 Thread Stephen Boyd
In the near future we're going to use these percpu irq functions in the Krait CPU EDAC driver. Export them so that the EDAC driver can be compiled as a module. Acked-by: Thomas Gleixner Signed-off-by: Stephen Boyd --- kernel/irq/manage.c | 2 ++ 1 file changed, 2 insertions(+) diff --

[PATCH v4 0/6] Krait L1/L2 EDAC driver

2013-12-30 Thread Stephen Boyd
wo patches * Commented krait l2 accessor functions Stephen Boyd (6): edac: Don't try to cancel workqueue when it's never setup genirq: export percpu irq functions for module usage ARM: Add Krait L2 accessor functions devicetree: bindings: Document Krait L1/L2 EDAC edac: Add support

[PATCH v4 1/6] edac: Don't try to cancel workqueue when it's never setup

2013-12-30 Thread Stephen Boyd
) Fix it by skipping the workqueue teardown for such devices. Acked-by: Borislav Petkov Signed-off-by: Stephen Boyd --- drivers/edac/edac_device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/edac/edac_device.c b/drivers/edac/edac_device.c index 1026743..592af5f 100644 --- a

[PATCH v4 5/6] edac: Add support for Krait CPU cache error detection

2013-12-30 Thread Stephen Boyd
Moskovchenko Signed-off-by: Stephen Boyd --- drivers/edac/Kconfig | 8 ++ drivers/edac/Makefile | 2 + drivers/edac/krait_edac.c | 346 ++ 3 files changed, 356 insertions(+) create mode 100644 drivers/edac/krait_edac.c diff --git a/drivers/edac

[PATCH v4 6/6] ARM: dts: msm: Add Krait CPU/L2 nodes

2013-12-30 Thread Stephen Boyd
This allows us to probe the krait-edac driver. Cc: David Brown Signed-off-by: Stephen Boyd --- arch/arm/boot/dts/qcom-msm8974.dtsi | 41 + 1 file changed, 41 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974

[PATCH v4 3/6] ARM: Add Krait L2 accessor functions

2013-12-30 Thread Stephen Boyd
ister to do what you want. The l2cpselr register is not banked per-cpu so we must lock around accesses to it to prevent other CPUs from re-pointing l2cpdr underneath us. Cc: Mark Rutland Cc: Russell King Signed-off-by: Stephen Boyd --- arch/arm/common/Kconfig | 3 ++ arch

[PATCH v4 4/6] devicetree: bindings: Document Krait L1/L2 EDAC

2013-12-30 Thread Stephen Boyd
The Krait L1/L2 error reporting device is made up of two interrupts, one per-CPU interrupt for the L1 caches and one interrupt for the L2 cache. Cc: Lorenzo Pieralisi Cc: Mark Rutland Cc: Kumar Gala Cc: Signed-off-by: Stephen Boyd --- Documentation/devicetree/bindings/arm/cpus.txt | 72

[PATCH v2 3/7] tty: serial: Limit msm_serial_hs driver to platforms that use it

2013-12-30 Thread Stephen Boyd
rtman Signed-off-by: Stephen Boyd --- drivers/tty/serial/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index a3817ab..a53159c 100644 --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig @@ -1035,7 +1

[PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform

2013-12-30 Thread Stephen Boyd
s in reply to). The rebase was fairly minor and the new patch for drm/msm is trivial. Please consider for v3.14. Changes since v1: * Rebased onto David's v3.14 patchset * Picked up acks * New patch for drm/msm driver Ivan T. Ivanov (1): usb: phy: msm: Move mach dependent code to platfor

[PATCH v2 7/7] ARM: msm: Move MSM's DT based hardware to multi-platform support

2013-12-30 Thread Stephen Boyd
churn in places that depend on CONFIG_ARCH_MSM. Cc: Arnd Bergmann Signed-off-by: Stephen Boyd --- Arnd acked v1 but this is slightly different due to 8974 coming in. arch/arm/Kconfig | 4 +-- arch/arm/mach-msm/Kconfig | 80 --- 2 files

[PATCH v2 2/7] mmc: msm_sdcc: Limit driver to platforms that use it

2013-12-30 Thread Stephen Boyd
ff-by: Stephen Boyd --- drivers/mmc/host/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig index 7fc5099..4e8ca9d 100644 --- a/drivers/mmc/host/Kconfig +++ b/drivers/mmc/host/Kconfig @@ -324,7 +324,7 @@ config MMC_ATMELMCI c

[PATCH v2 6/7] drm/msm: Drop unnecessary mach include

2013-12-30 Thread Stephen Boyd
This file doesn't use the clk_reset() API that is exposed in mach-msm's mach/clk.h file. Remove the include so that this driver can be compiled as part of the multi-platform kernel. Cc: Rob Clark Cc: Dave Airlie --- drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c | 2 -- 1 file changed, 2 deletions

Re: [PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform

2013-12-30 Thread Stephen Boyd
On 12/30/13 13:15, Stephen Boyd wrote: > These patches allow the DT based MSM platforms to be built as part of the > multi-platform kernel. I need acks from Chris Ball on the mmc patch and > Rob/Dave on the drm patch. I dropped Arnd's ack on patch 6 because I've > rebased th

[PATCH v2 4/7] ARM: msm: Only build clock.c on proc_comm based platforms

2013-12-30 Thread Stephen Boyd
The functionality provided by clock.c in mach-msm is only needed on proc_comm based platforms. Only build the file if proc_comm is enabled. This prevents compile failures for platforms that are part of the multi-platform kernel. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/Makefile | 2

[PATCH v2 1/7] usb: phy: msm: Move mach dependent code to platform data

2013-12-30 Thread Stephen Boyd
Walker Acked-by: Felipe Balbi Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/board-msm7x30.c | 35 +++ arch/arm/mach-msm/board-qsd8x50.c | 35 +++ drivers/usb/phy/phy-msm-usb.c | 35 +++

[PATCH v2 5/7] ARM: msm: Only build timer.c if required

2013-12-30 Thread Stephen Boyd
The MSM timer is only used on MSM devices that don't have the architected timers. Introduce a hidden Kconfig option for this driver so that we don't build it on the platforms that don't need it. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/Kconfig | 9 + arch/arm/ma

Re: [PATCH v2 6/7] drm/msm: Drop unnecessary mach include

2013-12-30 Thread Stephen Boyd
On 12/30/13 13:15, Stephen Boyd wrote: > This file doesn't use the clk_reset() API that is exposed in > mach-msm's mach/clk.h file. Remove the include so that this > driver can be compiled as part of the multi-platform kernel. > > Cc: Rob Clark > Cc: Dave Airlie

Re: [PATCH v2 6/7] drm/msm: Drop unnecessary mach include

2013-12-30 Thread Stephen Boyd
On 12/30, Rob Clark wrote: > On Mon, Dec 30, 2013 at 8:12 PM, Rob Clark wrote: > > On Mon, Dec 30, 2013 at 4:15 PM, Stephen Boyd wrote: > >> This file doesn't use the clk_reset() API that is exposed in > >> mach-msm's mach/clk.h file. Remove the include so

Re: [PATCH v2 3/7] tty: serial: Limit msm_serial_hs driver to platforms that use it

2014-01-02 Thread Stephen Boyd
On 01/02/14 10:10, Arnd Bergmann wrote: > On Monday 30 December 2013, Stephen Boyd wrote: >> The msm_serial_hs driver uses mach specific dma APIs. This is not >> compatible with the multi-platform ARM effort. Let's only compile >> this driver on MSM devices that

[PATCH v2 01/10] Input: pmic8xxx-pwrkey - switch to using managed resources

2014-01-02 Thread Stephen Boyd
From: Dmitry Torokhov This simplifies error handling and device removal paths. Signed-off-by: Dmitry Torokhov Acked-by: Stephen Boyd Signed-off-by: Stephen Boyd --- drivers/input/misc/pmic8xxx-pwrkey.c | 74 1 file changed, 25 insertions(+), 49 deletions

[PATCH v2 00/10] Use regmap+devm+DT in pm8xxx input drivers

2014-01-02 Thread Stephen Boyd
xxx-pwrkey - switch to using managed resources Stephen Boyd (9): genirq: Add devm_request_any_context_irq() Input: pmic8xxx-keypad - Switch to using managed resources Input: pmic8xxx-keypad - Migrate to regmap APIs Input: pmic8xxx-pwrkey - Migrate to DT Input: pm8xxx-vibrator - Add DT m

[PATCH v2 05/10] Input: pmic8xxx-pwrkey - Migrate to DT

2014-01-02 Thread Stephen Boyd
The driver is only supported on DT enabled platforms. Convert the driver to DT so that it can probe properly. Signed-off-by: Stephen Boyd --- drivers/input/misc/pmic8xxx-pwrkey.c | 33 - include/linux/input/pmic8xxx-pwrkey.h | 31

[PATCH v2 02/10] genirq: Add devm_request_any_context_irq()

2014-01-02 Thread Stephen Boyd
Some drivers use request_any_context_irq() but there isn't a devm_* function for it. Add one so that these drivers don't need to explicitly free the irq on driver detach. Cc: Thomas Gleixner Signed-off-by: Stephen Boyd --- include/linux/interrupt.h | 5 + kernel/irq/devres.c

[PATCH v2 10/10] devicetree: bindings: Document PM8921/8058 vibrators

2014-01-02 Thread Stephen Boyd
Document the vibration device found on PM8921 and PM8058 PMICs. Cc: Signed-off-by: Stephen Boyd --- .../devicetree/bindings/input/qcom,pm8xxx-vib.txt| 16 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/qcom,pm8xxx-vib.txt

[PATCH v2 04/10] Input: pmic8xxx-keypad - Migrate to regmap APIs

2014-01-02 Thread Stephen Boyd
Use the regmap APIs for this driver instead of custom pm8xxx APIs. This breaks this driver's dependency on the pm8xxx APIs and allows us to easily port it to other bus protocols in the future. Signed-off-by: Stephen Boyd --- drivers/input/keyboard/pmic8xxx-keypad.c

[PATCH v2 09/10] devicetree: bindings: Document PM8921/8058 power keys

2014-01-02 Thread Stephen Boyd
Document the power key found on PM8921 and PM8058 PMICs. Cc: Signed-off-by: Stephen Boyd --- .../bindings/input/qcom,pm8xxx-pwrkey.txt | 39 ++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/qcom,pm8xxx-pwrkey.txt

[PATCH v2 07/10] Input: pmic8xxx-keypad - Migrate to DT

2014-01-02 Thread Stephen Boyd
The driver is only supported on DT enabled platforms. Convert the driver to DT so that it can probe properly. Signed-off-by: Stephen Boyd --- drivers/input/keyboard/pmic8xxx-keypad.c | 148 ++- include/linux/input/pmic8xxx-keypad.h| 52 --- 2 files

[PATCH v2 08/10] devicetree: bindings: Document PM8921/8058 keypads

2014-01-02 Thread Stephen Boyd
Document the keypad device found on PM8921 and PM8058 PMICs. Cc: Signed-off-by: Stephen Boyd --- .../bindings/input/qcom,pm8xxx-keypad.txt | 72 ++ 1 file changed, 72 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/qcom,pm8xxx-keypad.txt

[PATCH v2 06/10] Input: pm8xxx-vibrator - Add DT match table

2014-01-02 Thread Stephen Boyd
The driver is only supported on DT enabled platforms. Convert the driver to DT so that it can probe properly. Signed-off-by: Stephen Boyd --- drivers/input/misc/pm8xxx-vibrator.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/input/misc/pm8xxx-vibrator.c b/drivers/input

[PATCH v2 03/10] Input: pmic8xxx-keypad - Switch to using managed resources

2014-01-02 Thread Stephen Boyd
Simplify the error paths and reduce the lines of code in this driver by using the devm_* APIs. Signed-off-by: Stephen Boyd --- drivers/input/keyboard/pmic8xxx-keypad.c | 62 +--- 1 file changed, 17 insertions(+), 45 deletions(-) diff --git a/drivers/input/keyboard

Re: [PATCH v2 06/10] Input: pm8xxx-vibrator - Add DT match table

2014-01-02 Thread Stephen Boyd
On 01/02/14 17:17, Dmitry Torokhov wrote: > Hi Stephen, > > On Thu, Jan 02, 2014 at 04:37:36PM -0800, Stephen Boyd wrote: >> The driver is only supported on DT enabled platforms. Convert the >> driver to DT so that it can probe properly. > I do not see MFD_PM8XXX depen

Re: [PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform

2014-01-03 Thread Stephen Boyd
On 01/02/14 10:13, Arnd Bergmann wrote: > On Monday 30 December 2013, Stephen Boyd wrote: >> These patches allow the DT based MSM platforms to be built as part of the >> multi-platform kernel. I need acks from Chris Ball on the mmc patch and >> Rob/Dave on the drm patch. I

Re: [PATCH v2 6/7] mfd: pm8921: Add DT match table

2014-01-06 Thread Stephen Boyd
On 01/06/14 03:52, Lee Jones wrote: >> Allow this driver to probe based on devicetree. >> >> Signed-off-by: Stephen Boyd >> --- >> drivers/mfd/pm8921-core.c | 9 - >> 1 file changed, 8 insertions(+), 1 deletion(-) >> >> diff --git a/drive

Re: [PATCH v2 3/7] mfd: pm8921: Migrate to irqdomains

2014-01-06 Thread Stephen Boyd
On 01/06/14 07:53, Lee Jones wrote: > >> @@ -56,8 +56,7 @@ >> struct pm_irq_chip { >> struct device *dev; >> spinlock_t pm_irq_lock; >> -unsigned intdevirq; >> -unsigned intirq_base; >> +struct irq_domain *domain; > It's pr

Re: [PATCH v4 0/6] Krait L1/L2 EDAC driver

2014-01-06 Thread Stephen Boyd
On 01/04/14 02:19, Borislav Petkov wrote: > On Mon, Dec 30, 2013 at 12:14:11PM -0800, Stephen Boyd wrote: >> This patchset adds support for the Krait L1/L2 cache error detection >> hardware. The first patch fixes a generic framework bug. The next >> two patches lay the groun

Re: [PATCH v2 0/9] CPU enable method based SMP/hotplug + MSM conversion

2014-01-06 Thread Stephen Boyd
Ping? Can anyone take a look at the generic ARM and DT binding patches and provide acks/reviews? I'd like to send this through arm-soc via the MSM tree if possible. On 12/23/13 16:39, Stephen Boyd wrote: > This is a rework of patches sent a months back by Rohit[1]. > The goal of these

Re: [PATCH v2 02/10] genirq: Add devm_request_any_context_irq()

2014-01-06 Thread Stephen Boyd
On 01/02/14 16:37, Stephen Boyd wrote: > Some drivers use request_any_context_irq() but there isn't a > devm_* function for it. Add one so that these drivers don't need > to explicitly free the irq on driver detach. > > Cc: Thomas Gleixner > Signed-off-by: Stephen B

Re: [PATCH v2 4/7] mfd: ssbi: Add regmap read/write helpers

2014-01-06 Thread Stephen Boyd
On 01/06/14 03:50, Lee Jones wrote: > On Thu, 26 Dec 2013, Stephen Boyd wrote: > >> On 12/24, Mark Brown wrote: >>> On Mon, Dec 23, 2013 at 12:46:00PM -0800, Stephen Boyd wrote: >>> >>>> +int ssbi_reg_read(void *context, unsigned int reg, unsigned int *val

Re: [PATCH v2 3/7] mfd: pm8921: Migrate to irqdomains

2014-01-07 Thread Stephen Boyd
On 01/07, Lee Jones wrote: > > >> +return of_platform_populate(pdev->dev.of_node, NULL, NULL, > > >> &pdev->dev); > > >> +} > > > Can't you use the MFD core instead? > > > > > > > Are you suggesting using mfd_add_devices()? At first glance it looks > > like that would require an array of

Re: [PATCH v4 4/6] devicetree: bindings: Document Krait L1/L2 EDAC

2014-01-07 Thread Stephen Boyd
On 01/07, Lorenzo Pieralisi wrote: > > Not sure this binding (cache node) belongs in cpus.txt > > I am working on defining cache bindings for ARM within the C-state > standardization effort: > > http://lists.infradead.org/pipermail/linux-arm-kernel/2013-December/215543.html Thanks I'll take a l

Re: [PATCH v4 3/6] ARM: Add Krait L2 accessor functions

2014-01-07 Thread Stephen Boyd
On 01/07/14 15:07, Borislav Petkov wrote: > On Mon, Dec 30, 2013 at 12:14:14PM -0800, Stephen Boyd wrote: >> Krait CPUs have a handful of L2 cache controller registers that >> live behind a cp15 based indirection register. First you program >> the indirection register (l2cp

[PATCH v3 6/7] mfd: pm8921: Add DT match table

2014-01-08 Thread Stephen Boyd
Allow this driver to probe based on devicetree. Acked-by: Lee Jones Signed-off-by: Stephen Boyd --- drivers/mfd/pm8921-core.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/mfd/pm8921-core.c b/drivers/mfd/pm8921-core.c index e9340bd6d1ab..3aab6ace5eb5 100644 --- a/drivers

[PATCH v3 0/7] Modernize pm8921 with irqdomains, regmap, DT

2014-01-08 Thread Stephen Boyd
lpers * New patch for DT match table * New binding document Stephen Boyd (7): mfd: Move pm8xxx-irq.c contents into only driver that uses it mfd: pm8921: Update for genirq changes mfd: pm8921: Migrate to irqdomains mfd: ssbi: Add regmap read/write helpers mfd: pm8921: Use ssbi regmap mfd: p

[PATCH v3 1/7] mfd: Move pm8xxx-irq.c contents into only driver that uses it

2014-01-08 Thread Stephen Boyd
needed. In the future we can rename pm8921-core.c to something more generic. Acked-by: Lee Jones Signed-off-by: Stephen Boyd --- drivers/mfd/Kconfig| 10 -- drivers/mfd/pm8921-core.c | 348 ++ drivers/mfd/pm8xxx-ir

[PATCH v3 5/7] mfd: pm8921: Use ssbi regmap

2014-01-08 Thread Stephen Boyd
Use a regmap so that the pm8xxx read/write APIs can be removed once all consumer drivers are converted. Reviewed-by: Mark Brown Signed-off-by: Stephen Boyd --- drivers/mfd/Kconfig | 1 + drivers/mfd/pm8921-core.c | 66 +++ 2 files changed, 39

[PATCH v3 7/7] devicetree: bindings: Document PM8921/8058 PMICs

2014-01-08 Thread Stephen Boyd
PM8921 and PM8058 are PMICs found paired with MSM8960 and MSM8660 devices respectively. They contain subdevices such as keypads, RTCs, regulators, clocks, etc. Cc: Signed-off-by: Stephen Boyd --- .../devicetree/bindings/mfd/qcom,pm8xxx.txt| 63 ++ 1 file changed, 63

[PATCH v3 4/7] mfd: ssbi: Add regmap read/write helpers

2014-01-08 Thread Stephen Boyd
Add read and write helper functions that the pm8921-core driver can use to read and write ssbi regsiters via a "no-bus" regmap. Cc: Mark Brown Signed-off-by: Stephen Boyd --- include/linux/ssbi.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/linux/ssbi.h

[PATCH v3 3/7] mfd: pm8921: Migrate to irqdomains

2014-01-08 Thread Stephen Boyd
Convert this driver to use irqdomains so that the PMIC's child devices can be converted to devicetree. Signed-off-by: Stephen Boyd --- drivers/mfd/pm8921-core.c | 198 +++--- include/linux/mfd/pm8xxx/irq.h| 36 --- include/linux/mfd/pm8xxx/p

[PATCH v3 2/7] mfd: pm8921: Update for genirq changes

2014-01-08 Thread Stephen Boyd
dlers) introduced the chained irq functions but this driver wasn't updated to use them. Fix these problems and remove the BROKEN marking on this driver. Acked-by: Lee Jones Signed-off-by: Stephen Boyd --- drivers/mfd/Kconfig | 1 - drivers/mfd/pm8921-core.c | 7 +-- 2 files changed, 5

[PATCH 1/7] ARM: perf_event: Silence sparse warning

2014-01-08 Thread Stephen Boyd
arch/arm/kernel/perf_event_cpu.c:274:25: warning: incorrect type in assignment (different modifiers) arch/arm/kernel/perf_event_cpu.c:274:25: expected int ( *init_fn )( ... ) arch/arm/kernel/perf_event_cpu.c:274:25: got void const *const data Signed-off-by: Stephen Boyd --- arch/arm/kernel

[PATCH 0/7] Support Krait CPU PMUs

2014-01-08 Thread Stephen Boyd
this patchset relies on the per-cpu irq patch from Vinayak Kale, 7f4a8e7b1943 (genirq: Add an accessor for IRQ_PER_CPU flag, 2013-12-04), that's sitting in linux-next. Patches are based on commit 21dea6695134 (ARM: msm_defconfig: Enable restart driver, 2013-12-20) in linux-next. Stephen Boyd

[PATCH 3/7] ARM: perf_event: Add basic support for Krait CPU PMUs

2014-01-08 Thread Stephen Boyd
Cc: Neil Leeder Cc: Ashwin Chaugule Signed-off-by: Stephen Boyd --- arch/arm/kernel/perf_event_cpu.c | 1 + arch/arm/kernel/perf_event_v7.c | 165 +++ 2 files changed, 166 insertions(+) diff --git a/arch/arm/kernel/perf_event_cpu.c b/arch/arm/kernel

[PATCH 2/7] ARM: perf_event: Support percpu irqs for the CPU PMU

2014-01-08 Thread Stephen Boyd
Some CPU PMUs are wired up with one PPI for all the CPUs instead of with a different SPI for each CPU. Add support for these devices. Signed-off-by: Stephen Boyd --- arch/arm/kernel/perf_event_cpu.c | 107 +-- 1 file changed, 79 insertions(+), 28 deletions

[PATCH 4/7] ARM: perf_event: Add hook for event index clearing

2014-01-08 Thread Stephen Boyd
a bit in a bitmap whenever a certain event is used in a PMNx counter (see the next patch). Unfortunately, we don't have a hook to clear this bit in the bitmap when the event is deleted so let's add an optional clear_event_idx() callback for this purpose. Signed-off-by: Stephen Boyd ---

[PATCH 6/7] devicetree: bindings: Document Krait performance monitor units (PMU)

2014-01-08 Thread Stephen Boyd
Document the Krait PMU compatible string. Cc: Signed-off-by: Stephen Boyd --- Documentation/devicetree/bindings/arm/pmu.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/pmu.txt b/Documentation/devicetree/bindings/arm/pmu.txt index 3e1e498fea96

[PATCH 5/7] ARM: perf_event: Fully support Krait CPU PMU events

2014-01-08 Thread Stephen Boyd
: Neil Leeder Cc: Ashwin Chaugule Signed-off-by: Stephen Boyd --- arch/arm/kernel/perf_event_v7.c | 392 +++- 1 file changed, 386 insertions(+), 6 deletions(-) diff --git a/arch/arm/kernel/perf_event_v7.c b/arch/arm/kernel/perf_event_v7.c index ec86cf42d2ba

[PATCH 7/7] ARM: dts: msm: Add krait-pmu to platforms with Krait CPUs

2014-01-08 Thread Stephen Boyd
Allows us to probe the performance counters on Krait CPUs. Signed-off-by: Stephen Boyd --- This one is piled on top of the SMP patches I sent a few weeks ago. Applying it directly on -next should cause minor conflicts. arch/arm/boot/dts/qcom-msm8960-cdp.dts | 5 + arch/arm/boot/dts/qcom

Re: [PATCH v2 2/9] devicetree: bindings: Document qcom,kpss-acc

2014-01-08 Thread Stephen Boyd
On 01/08/14 06:32, Mark Rutland wrote: > On Wed, Jan 08, 2014 at 02:25:41PM +, Mark Rutland wrote: >> On Tue, Dec 24, 2013 at 12:39:46AM +, Stephen Boyd wrote: >>> The kpss acc binding describes the clock, reset, and power domain >>> controller for a Krait CPU.

Re: [PATCH v2 1/9] devicetree: bindings: Document Krait/Scorpion cpus and enable-method

2014-01-08 Thread Stephen Boyd
On 01/08/14 06:21, Mark Rutland wrote: > On Tue, Dec 24, 2013 at 12:39:45AM +0000, Stephen Boyd wrote: >> From: Rohit Vaswani >> >> Scorpion and Krait don't use the spin-table enable-method. >> Instead they rely on mmio register accesses to enable power and >

Re: [PATCH v2 0/9] CPU enable method based SMP/hotplug + MSM conversion

2014-01-08 Thread Stephen Boyd
On 01/08/14 13:37, Arnd Bergmann wrote: > On Tuesday 24 December 2013, Stephen Boyd wrote: >> This is a rework of patches sent a months back by Rohit[1]. >> The goal of these patches is to add support for SMP and (basic) >> hotplug on MSM based SoCs. To get there, we add sup

Re: [PATCH v4 3/6] ARM: Add Krait L2 accessor functions

2014-01-08 Thread Stephen Boyd
On 01/08/14 16:53, Courtney Cavin wrote: > On Mon, Dec 30, 2013 at 09:14:14PM +0100, Stephen Boyd wrote: >> Krait CPUs have a handful of L2 cache controller registers that >> live behind a cp15 based indirection register. First you program >> the indirection register (l2cp

Re: [PATCH v4 02/15] clk: Allow drivers to pass in a regmap

2014-01-08 Thread Stephen Boyd
On 01/08/14 17:51, Mike Turquette wrote: > Quoting Stephen Boyd (2013-12-23 17:12:26) >> Add support to the clock core so that drivers can pass in a >> regmap. If no regmap is specified try to query the device that's >> registering the clock for its regmap. This should a

Re: [PATCH v3 4/7] mfd: ssbi: Add regmap read/write helpers

2014-01-08 Thread Stephen Boyd
On 01/08/14 17:13, Courtney Cavin wrote: > On Wed, Jan 08, 2014 at 07:37:47PM +0100, Stephen Boyd wrote: >> --- a/include/linux/ssbi.h >> +++ b/include/linux/ssbi.h >> @@ -20,4 +20,17 @@ >> int ssbi_write(struct device *dev, u16 addr, const u8 *buf, int len); >>

Re: [PATCH v2 6/7] drm/msm: Drop unnecessary mach include

2014-01-09 Thread Stephen Boyd
On 01/09/14 00:13, Olof Johansson wrote: > On Mon, Dec 30, 2013 at 09:15:58PM -0800, Stephen Boyd wrote: >> On 12/30, Rob Clark wrote: >>> On Mon, Dec 30, 2013 at 8:12 PM, Rob Clark wrote: >>>> On Mon, Dec 30, 2013 at 4:15 PM, Stephen Boyd wrote: >>>>&

Re: [PATCH 2/7] ARM: perf_event: Support percpu irqs for the CPU PMU

2014-01-09 Thread Stephen Boyd
On 01/09/14 02:49, Will Deacon wrote: > >> +static irq_handler_t cpu_handler; >> + >> +static irqreturn_t cpu_pmu_dispatch_irq(int irq, void *dev) >> +{ >> +struct arm_pmu *arm_pmu = *(struct arm_pmu **)dev; >> +return cpu_handler(irq, arm_pmu); >> +} > I don't like this bit -- having a glo

Re: [PATCH 3/7] ARM: perf_event: Add basic support for Krait CPU PMUs

2014-01-09 Thread Stephen Boyd
(Adding DT reviewers) On 01/09/14 03:04, Will Deacon wrote: > On Wed, Jan 08, 2014 at 10:59:40PM +0000, Stephen Boyd wrote: > >> +static int krait_pmu_init(struct arm_pmu *cpu_pmu) >> +{ >> +u32 id = read_cpuid_id() & 0xff00; >> + >> +armv7

Re: [PATCH 6/7] devicetree: bindings: Document Krait performance monitor units (PMU)

2014-01-09 Thread Stephen Boyd
On 01/09/14 10:14, Will Deacon wrote: > On Wed, Jan 08, 2014 at 10:59:43PM +0000, Stephen Boyd wrote: >> Document the Krait PMU compatible string. >> >> Cc: >> Signed-off-by: Stephen Boyd >> --- >> Documentation/devicetree/bindings/arm/pmu.txt | 1 + >&g

Re: [PATCH v4 4/6] devicetree: bindings: Document Krait L1/L2 EDAC

2014-01-09 Thread Stephen Boyd
On 01/08/14 02:05, Lorenzo Pieralisi wrote: > On Tue, Jan 07, 2014 at 08:12:39PM +0000, Stephen Boyd wrote: >> On 01/07, Lorenzo Pieralisi wrote: >> >>> I have a problem with the cache level definition, and in >>> particular the numbering, ie what the level numb

Re: [PATCH v4 02/15] clk: Allow drivers to pass in a regmap

2014-01-09 Thread Stephen Boyd
On 01/08/14 18:11, Stephen Boyd wrote: > On 01/08/14 17:51, Mike Turquette wrote: >> Patch #3 illustrates the sort of struct-member-creep that worries me. >> What is to stop someone from putting "unsigned int divider_reg" or >> "unsigned int mux_reg", and

Re: [PATCH 1/7] ARM: perf_event: Silence sparse warning

2014-01-09 Thread Stephen Boyd
On 01/09/14 02:45, Will Deacon wrote: > Hi Stephen, > > On Wed, Jan 08, 2014 at 10:59:38PM +, Stephen Boyd wrote: >> arch/arm/kernel/perf_event_cpu.c:274:25: warning: incorrect type in >> assignment (different modifiers) >> arch/arm/kernel/perf_event_cpu.c:274:

Re: [PATCH v4 02/15] clk: Allow drivers to pass in a regmap

2014-01-09 Thread Stephen Boyd
On 01/09, Mike Turquette wrote: > If we're going to use these wrappers, why make it regmap specific? The > struct clk_desc patches[1][2] can achieve this, but in a more generic > way. > I think you're suggesting a way to avoid adding a clk_register_regmap() function? But won't we need to write th

Re: [PATCH 3/7] ARM: perf_event: Add basic support for Krait CPU PMUs

2014-01-10 Thread Stephen Boyd
On 01/10, Will Deacon wrote: > On Thu, Jan 09, 2014 at 07:57:12PM +0000, Stephen Boyd wrote: > > (Adding DT reviewers) > > > > On 01/09/14 03:04, Will Deacon wrote: > > > On Wed, Jan 08, 2014 at 10:59:40PM +, Stephen Boyd wrote: > > > > > >>

[PATCH] ARM: msm_defconfig: Update for multi-platform

2014-01-10 Thread Stephen Boyd
ARCH_MSM is a hidden config option now so this defconfig needs to be updated to select ARCH_MSM_DT instead. While we're here, remove dead symbols (SSBI), drop selected symbols (ZRELADDR, PHYLIB, USB_PHY) and enable the MSM random driver (HW_RANDOM_MSM). Cc: Kevin Hilman Signed-off-by: St

Re: [PATCH 2/7] ARM: perf_event: Support percpu irqs for the CPU PMU

2014-01-10 Thread Stephen Boyd
On 01/10, Will Deacon wrote: > On Thu, Jan 09, 2014 at 07:17:29PM +0000, Stephen Boyd wrote: > > > We can avoid the hacky cast of the per-cpu dev token by using the > > cpu_pmu pointer directly, but we'll still need to pass something to the > > percpu interrupt handl

Re: [PATCH v4 02/15] clk: Allow drivers to pass in a regmap

2014-01-13 Thread Stephen Boyd
On 01/09/14 23:05, Stephen Boyd wrote: > It feels another key point is being missed though. The regmap > pointer and the enable_reg/enable_mask is embedded in clk_hw to > allow the same code to be used by different types of surrounding > structs. Each struct: clk_pll, clk_rcg, and c

Re: [PATCH v2 1/2] dmaengine: add Qualcomm BAM dma driver

2014-01-14 Thread Stephen Boyd
(Mostly nitpicks) On 01/10, Andy Gross wrote: > Add the DMA engine driver for the QCOM Bus Access Manager (BAM) DMA controller > found in the MSM 8x74 platforms. > > Each BAM DMA device is associated with a specific on-chip peripheral. Each > channel provides a uni-directional data transfer engi

[PATCH] msm_serial: Add support for poll_{get,put}_char()

2014-01-14 Thread Stephen Boyd
Implement the polling functionality for the MSM serial driver. This allows us to use KGDB on this hardware. Cc: David Brown Signed-off-by: Stephen Boyd --- drivers/tty/serial/msm_serial.c | 140 +++- drivers/tty/serial/msm_serial.h | 9 +++ 2 files changed

Re: [PATCH v2 02/10] genirq: Add devm_request_any_context_irq()

2014-01-14 Thread Stephen Boyd
On 01/06/14 14:24, Stephen Boyd wrote: > On 01/02/14 16:37, Stephen Boyd wrote: >> Some drivers use request_any_context_irq() but there isn't a >> devm_* function for it. Add one so that these drivers don't need >> to explicitly free the irq on driver detach. >&

Re: [PATCH 2/7] ARM: perf_event: Support percpu irqs for the CPU PMU

2014-01-14 Thread Stephen Boyd
On 01/13/14 03:52, Will Deacon wrote: > On Fri, Jan 10, 2014 at 07:36:57PM +0000, Stephen Boyd wrote: >> >> Passing the hw_events as the pcpu token here is kind of hacky. >> The reason is because the token is dereferenced into cpu_pmu in >> armv7pmu_handle_irq() like so

[PATCH v5 2/4] devicetree: bindings: Document Krait CPU/L1 EDAC

2014-01-14 Thread Stephen Boyd
The Krait CPU/L1 error reporting device is made up a per-CPU interrupt. While we're here, document the next-level-cache property that's used by the Krait EDAC driver. Cc: Lorenzo Pieralisi Cc: Mark Rutland Cc: Kumar Gala Cc: Signed-off-by: Stephen Boyd --- Documentation/devicetre

[PATCH v5 0/4] Krait L1/L2 EDAC driver

2014-01-14 Thread Stephen Boyd
s since v4: * Prefixed l2 accessors functions with krait_ * Dropped first two patches as Boris says he picked them up Changes since v3: * Fixed l1_irq handler to properly dereference dev_id Changes since v2: * Picked up acks * s/an/a/ in DT binding Stephen Boyd (4): ARM: Add Krait L2 registe

[PATCH v5 1/4] ARM: Add Krait L2 register accessor functions

2014-01-14 Thread Stephen Boyd
ister to do what you want. The l2cpselr register is not banked per-cpu so we must lock around accesses to it to prevent other CPUs from re-pointing l2cpdr underneath us. Cc: Mark Rutland Cc: Russell King Cc: Courtney Cavin Signed-off-by: Stephen Boyd --- arch/arm/common/Kconfig

[PATCH v5 4/4] ARM: dts: msm: Add Krait CPU/L2 nodes

2014-01-14 Thread Stephen Boyd
This allows us to probe the krait-edac driver. Cc: David Brown Signed-off-by: Stephen Boyd --- arch/arm/boot/dts/qcom-msm8974.dtsi | 41 + 1 file changed, 41 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974

[PATCH v5 3/4] edac: Add support for Krait CPU cache error detection

2014-01-14 Thread Stephen Boyd
Moskovchenko Signed-off-by: Stephen Boyd --- drivers/edac/Kconfig | 8 ++ drivers/edac/Makefile | 2 + drivers/edac/krait_edac.c | 346 ++ 3 files changed, 356 insertions(+) create mode 100644 drivers/edac/krait_edac.c diff --git a/drivers/edac

Re: [PATCH v5 0/4] Krait L1/L2 EDAC driver

2014-01-14 Thread Stephen Boyd
On 01/14/14 13:48, Borislav Petkov wrote: > On Tue, Jan 14, 2014 at 01:30:30PM -0800, Stephen Boyd wrote: >> This patchset adds support for the Krait L1/L2 cache error detection >> hardware. The first patch adds the Krait l2 indirection >> register code. This patch is in ne

Re: [PATCH v2 2/2] i2c: New bus driver for the QUP I2C controller

2014-01-15 Thread Stephen Boyd
On 01/13, Bjorn Andersson wrote: > +/* > + * QUP driver for Qualcomm MSM platforms > + * > + */ This comment seems redundant, we know what file we're looking at. > + > +struct qup_i2c_dev { > + struct device *dev; > + void __iomem*base; > + struct pinctrl

Re: [PATCH v5 2/4] devicetree: bindings: Document Krait CPU/L1 EDAC

2014-01-15 Thread Stephen Boyd
On 01/15, Lorenzo Pieralisi wrote: > On Tue, Jan 14, 2014 at 09:30:32PM +0000, Stephen Boyd wrote: > > The Krait CPU/L1 error reporting device is made up a per-CPU > > interrupt. While we're here, document the next-level-cache > > property that's used by the Krait ED

[PATCH v2 6/7] devicetree: bindings: Document Krait performance monitor units (PMU)

2014-01-15 Thread Stephen Boyd
Document the Krait PMU compatible string. Cc: Signed-off-by: Stephen Boyd --- Documentation/devicetree/bindings/arm/pmu.txt | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/pmu.txt b/Documentation/devicetree/bindings/arm/pmu.txt

[PATCH v2 2/7] ARM: perf_event: Assign pdev pointer earlier for CPU PMUs

2014-01-15 Thread Stephen Boyd
We want to inspect the of_node that the pdev is pointing to in the Krait CPU specific PMU initialization function. Assign it earlier so that we don't crash with a NULL pointer dereference. Signed-off-by: Stephen Boyd --- arch/arm/kernel/perf_event_cpu.c | 5 +++-- 1 file changed, 3 inser

[PATCH v2 1/7] ARM: perf_event: Support percpu irqs for the CPU PMU

2014-01-15 Thread Stephen Boyd
Some CPU PMUs are wired up with one PPI for all the CPUs instead of with a different SPI for each CPU. Add support for these devices. Signed-off-by: Stephen Boyd --- arch/arm/kernel/perf_event.c | 14 -- arch/arm/kernel/perf_event_cpu.c | 97 2

[PATCH v2 0/7] Support Krait CPU PMUs

2014-01-15 Thread Stephen Boyd
u irq support patch to hide double pointers in dispatch func * Expanded on comments explaining Krait raw event syntax * Expanded on DT binding * Added qcom,no-pc-write property instead of using cpuid scheme Stephen Boyd (7): ARM: perf_event: Support percpu irqs for the CPU PMU ARM: perf_

[PATCH v2 7/7] ARM: dts: msm: Add krait-pmu to platforms with Krait CPUs

2014-01-15 Thread Stephen Boyd
Allows us to probe the performance counters on Krait CPUs. Signed-off-by: Stephen Boyd --- arch/arm/boot/dts/qcom-msm8960-cdp.dts | 6 ++ arch/arm/boot/dts/qcom-msm8974.dtsi| 5 + 2 files changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8960-cdp.dts b/arch/arm/boot

[PATCH v2 3/7] ARM: perf_event: Add basic support for Krait CPU PMUs

2014-01-15 Thread Stephen Boyd
Cc: Neil Leeder Cc: Ashwin Chaugule Signed-off-by: Stephen Boyd --- arch/arm/kernel/perf_event_cpu.c | 1 + arch/arm/kernel/perf_event_v7.c | 164 +++ 2 files changed, 165 insertions(+) diff --git a/arch/arm/kernel/perf_event_cpu.c b/arch/arm/kernel

[PATCH v2 4/7] ARM: perf_event: Add hook for event index clearing

2014-01-15 Thread Stephen Boyd
a bit in a bitmap whenever a certain event is used in a PMNx counter (see the next patch). Unfortunately, we don't have a hook to clear this bit in the bitmap when the event is deleted so let's add an optional clear_event_idx() callback for this purpose. Signed-off-by: Stephen Boyd ---

[PATCH v2 5/7] ARM: perf_event: Fully support Krait CPU PMU events

2014-01-15 Thread Stephen Boyd
: Neil Leeder Cc: Ashwin Chaugule Signed-off-by: Stephen Boyd --- arch/arm/kernel/perf_event_v7.c | 398 +++- 1 file changed, 392 insertions(+), 6 deletions(-) diff --git a/arch/arm/kernel/perf_event_v7.c b/arch/arm/kernel/perf_event_v7.c index 16386b1d27a8

[PATCH v5 00/14] Add support for MSM's mmio clock/reset controller

2014-01-15 Thread Stephen Boyd
Dropped common clock framework patches that did DT parsing * New patches for regmap support in common clock framework Stephen Boyd (14): reset: Silence warning in reset-controller.h clk: Add set_rate_and_parent() op clk: qcom: Add a regmap type clock struct clk: qcom: Add support for phas

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