[PATCH 01/10] usb: otg: msm: Convert to clk_prepare/unprepare

2012-09-20 Thread Stephen Boyd
Add calls to clk_prepare and unprepare so that MSM can migrate to the common clock framework. Cc: Felipe Balbi Signed-off-by: Stephen Boyd --- drivers/usb/otg/msm_otg.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/usb/otg

[PATCH 02/10] msm_sdcc: Convert to clk_prepare/unprepare

2012-09-20 Thread Stephen Boyd
Add calls to clk_prepare and unprepare so that MSM can migrate to the common clock framework. Signed-off-by: Stephen Boyd --- drivers/mmc/host/msm_sdcc.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c

[PATCH 04/10] msm: iommu: Use clk_set_rate() instead of clk_set_min_rate()

2012-09-20 Thread Stephen Boyd
Calling clk_set_min_rate() is no better than just calling clk_set_rate() because MSM clock code already takes care of calling the min_rate ops if the clock really needs clk_set_min_rate() called on it. Signed-off-by: Stephen Boyd --- drivers/iommu/msm_iommu_dev.c | 3 +-- 1 file changed, 1

[PATCH 00/10] Convert MSM to common clock framework

2012-09-20 Thread Stephen Boyd
() function which I already posted to the list[1]. They're based on linux-next-20120917. Stephen Boyd (10): usb: otg: msm: Convert to clk_prepare/unprepare msm_sdcc: Convert to clk_prepare/unprepare msm: iommu: Convert to clk_prepare/unprepare msm: iommu: Use clk_set_rate() inste

[PATCH 03/10] msm: iommu: Convert to clk_prepare/unprepare

2012-09-20 Thread Stephen Boyd
techniques. Signed-off-by: Stephen Boyd --- drivers/iommu/msm_iommu_dev.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/iommu/msm_iommu_dev.c b/drivers/iommu/msm_iommu_dev.c index 8e8fb07..d344f6a 100644 --- a/drivers/iommu/msm_iommu_dev.c +++ b/drivers

[PATCH 09/10] ARM: msm: Make proc_comm clock control into a platform driver

2012-09-20 Thread Stephen Boyd
To move closer to the generic struct clock framework move the proc_comm based clock code to a platform driver. The data describing the struct clks still live in the devices-$ARCH file, but the clock initialization is done at driver binding time. Cc: Saravana Kannan Signed-off-by: Stephen Boyd

[PATCH 07/10] ARM: msm: Remove clock-7x30.h include file

2012-09-20 Thread Stephen Boyd
clock-7x30.h include file along with it. Cc: Saravana Kannan Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/clock-7x30.h | 155 arch/arm/mach-msm/devices-msm7x30.c | 2 - 2 files changed, 157 deletions(-) delete mode 100644 arch/arm/mach-msm/clock-

[PATCH 08/10] ARM: msm: Prepare clk_get() users in mach-msm for clock-pcom driver

2012-09-20 Thread Stephen Boyd
eorder the initcall order of dma.c so that it initializes after the clock driver probes but before any drivers use dma APIs. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/Makefile| 9 ++--- arch/arm/mach-msm/board-trout-panel.c | 19 +++ arch/arm/mach

[PATCH 05/10] ARM: msm: Remove custom clk_set_flags() API

2012-09-20 Thread Stephen Boyd
Nobody is using this API upstream and it's just contributing cruft. Remove it so the MSM clock API is closer to the generic struct clock API. Cc: Saravana Kannan Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/clock-pcom.c | 10 -- arch/arm/mach-msm/clock.c

[PATCH 10/10] ARM: msm: Migrate to common clock framework

2012-09-20 Thread Stephen Boyd
original MSM clock code we make a wrapper for clk_reset() that calls the struct msm_clk specific reset function. This is necessary for the usb and sdcc devices on MSM until a better suited API is made available. Cc: Saravana Kannan Cc: Mike Turquette Signed-off-by: Stephen Boyd --- arch/arm

Re: [PATCH 2/3] clk: Add devm_clk_{register,unregister}()

2012-09-20 Thread Stephen Boyd
On 09/18/12 23:05, Stephen Boyd wrote: > +void devm_clk_unregister(struct device *dev, struct clk *clk) > +{ > + WARN_ON(devres_destroy(dev, devm_clk_release, devm_clk_match, clk)); Hm... I guess this needs to be devres_release() instead of destroy. Can you squash this in or should

Re: [PATCH 2/3] clk: Add devm_clk_{register,unregister}()

2012-09-22 Thread Stephen Boyd
On 9/21/2012 6:07 PM, Mike Turquette wrote > I'm not taking any more changes for 3.7, so in the interest of me being > lazy can you resend with the fixup? Sure. I'll pick up Mark's acks too and send the whole series again. -- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualco

Re: [PATCH] ARM: hw_breakpoint: Clear breakpoints before enabling monitor mode

2012-09-24 Thread Stephen Boyd
On 09/24/12 10:19, Will Deacon wrote: > On Thu, Sep 20, 2012 at 06:35:56PM +0100, Will Deacon wrote: >> On Thu, Sep 20, 2012 at 05:57:40PM +0100, Stephen Boyd wrote: >>> +/* Determine if halting mode is enabled */ >>> +static int halting_mode_enabled(vo

Re: [PATCH 0/3] Introduce devm_clk_register()

2012-09-24 Thread Stephen Boyd
On 09/22/12 03:06, Russell King - ARM Linux wrote: > On Tue, Sep 18, 2012 at 11:05:27PM -0700, Stephen Boyd wrote: >> The first patch in this series fixes error checking in the wm831x clock >> driver and is here to prevent context conflicts in the third patch. >> I split it

[PATCHv2 1/3] clk: wm831x: Fix clk_register() error code checking

2012-09-24 Thread Stephen Boyd
clk_register() returns an ERR_PTR upon failure, not NULL. Fix these error paths. Acked-by: Mark Brown Signed-off-by: Stephen Boyd --- v2: No changes drivers/clk/clk-wm831x.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/clk/clk-wm831x.c b/drivers

[PATCHv2 3/3] clk: wm831x: Use devm_clk_register() to simplify code

2012-09-24 Thread Stephen Boyd
Move this driver to use devm_clk_register() to simplify some error paths and reduce lines of code. Acked-by: Mark Brown Signed-off-by: Stephen Boyd --- v2: No changes drivers/clk/clk-wm831x.c | 30 +++--- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a

[PATCHv2 2/3] clk: Add devm_clk_{register,unregister}()

2012-09-24 Thread Stephen Boyd
Some clock drivers can be simplified if devres takes care of unregistering any registered clocks along error paths. Introduce devm_clk_register() so that clock drivers get unregistration for free along with simplified error paths. Signed-off-by: Stephen Boyd --- v2: Use devres_release

Re: [PATCH 03/10] msm: iommu: Convert to clk_prepare/unprepare

2012-09-25 Thread Stephen Boyd
On 09/24/12 15:32, Saravana Kannan wrote: >> @@ -275,8 +275,11 @@ static int msm_iommu_remove(struct >> platform_device *pdev) >> >> drv = platform_get_drvdata(pdev); >> if (drv) { >> -if (drv->clk) >> +if (drv->clk) { >> +clk_unprepare(drv->clk); >>

Re: [PATCH 08/10] ARM: msm: Prepare clk_get() users in mach-msm for clock-pcom driver

2012-09-26 Thread Stephen Boyd
On 09/26/12 10:35, Pankaj Jangra wrote: > Hi, > > On Fri, Sep 21, 2012 at 7:56 AM, Stephen Boyd wrote: >> In the near future we'll be moving clock-pcom to a platform >> driver, in which case these two users of clk_get() in mach-msm >> need to be updated. H

Re: [PATCH 07/10] ARM: msm: Remove clock-7x30.h include file

2012-09-26 Thread Stephen Boyd
On 09/26/12 10:51, Pankaj Jangra wrote: > On Fri, Sep 21, 2012 at 7:56 AM, Stephen Boyd wrote: >> diff --git a/arch/arm/mach-msm/devices-msm7x30.c >> b/arch/arm/mach-msm/devices-msm7x30.c >> index 09b4f14..1597d43 100644 >> --- a/arch/arm/mach-msm/devices-msm7x30.c

Re: [PATCH 09/10] ARM: msm: Make proc_comm clock control into a platform driver

2012-09-26 Thread Stephen Boyd
On 09/26/12 11:03, Pankaj Jangra wrote: > >> + >> +static int __devinit msm_clock_pcom_probe(struct platform_device *pdev) >> +{ >> + struct pcom_clk_pdata *pdata = pdev->dev.platform_data; > Should'nt it be const struct? Sure. Fixed. -- Qualcomm Innovation Center, Inc. is a member of Code

Re: [PATCH 01/10] usb: otg: msm: Convert to clk_prepare/unprepare

2012-09-26 Thread Stephen Boyd
On 09/26/12 09:58, Pankaj Jangra wrote: > On Fri, Sep 21, 2012 at 7:56 AM, Stephen Boyd wrote: >> diff --git a/drivers/usb/otg/msm_otg.c b/drivers/usb/otg/msm_otg.c >> index 9f5fc90..2ae0639 100644 >> --- a/drivers/usb/otg/msm_otg.c >> +++ b/drivers/usb/otg/msm_

Re: [PATCH 10/10] ARM: msm: Migrate to common clock framework

2012-09-26 Thread Stephen Boyd
On 09/26/12 11:47, Pankaj Jangra wrote: > Hi Stephen, > > On Fri, Sep 21, 2012 at 7:56 AM, Stephen Boyd wrote: > >> -static int pc_clk_set_rate(unsigned id, unsigned rate) >> +static int pc_clk_set_rate(struct clk_hw *hw, unsigned long new_rate, >> +

Re: [PATCH 0/3] Minor fixes for generic clock framework

2012-10-29 Thread Stephen Boyd
On 10/03/12 23:38, Stephen Boyd wrote: > This is a small set of patches that fixes some documentation > and fixes return values of functions that aren't used that > much yet. Noticed while going through this code. > Mike, any comments on these patches? -- Qualcomm Innovation

[PATCH] cpufreq: Fix timer/workqueue corruption due to double queueing

2013-08-26 Thread Stephen Boyd
ag so that only the work that's being canceled has the chance to re-queue itself. Signed-off-by: Stephen Boyd --- This should probably go to stable. I think this all started happening in commit 031299b3be30f3ec (cpufreq: governors: Avoid unnecessary per cpu timer interrupts, 2013-02-27).

[PATCH] cpufreq: Fix timer/workqueue corruption due to double queueing

2013-08-27 Thread Stephen Boyd
file+0x100/0x148) [] (sysfs_write_file+0x100/0x148) from [] (vfs_write+0xcc/0x174) [] (vfs_write+0xcc/0x174) from [] (SyS_write+0x38/0x64) [] (SyS_write+0x38/0x64) from [] (ret_fast_syscall+0x0/0x30) Signed-off-by: Stephen Boyd --- On 08/27, Viresh Kumar wrote: > On 27 August 2013 04:15, Stephe

[PATCH] cpufreq: Don't use smp_processor_id() in preemptible context

2013-08-27 Thread Stephen Boyd
xa0/0xb0) from [] (ret_from_fork+0x14/0x3c) Signed-off-by: Stephen Boyd --- Also found this one. I'm tracking down a pretty bad hotplug/sysfs race on 3.10. I've applied all the stable patches but I'm seeing this still. I'll start another thread on this WARNING: at kernel/mutex

Re: [PATCH v2 0/5] Document msm_serial bindings and support newer uartdms

2013-08-27 Thread Stephen Boyd
On 08/27/13 16:23, Greg Kroah-Hartman wrote: > On Tue, Aug 20, 2013 at 11:48:01PM -0700, Stephen Boyd wrote: >> This patchset aligns the msm_serial driver more with downstream usage and >> also documents the msm_serial driver's DT binding. Along the way we >> update the c

[PATCH v3 2/2] ARM: dts: msm: Update uartdm compatible strings

2013-08-27 Thread Stephen Boyd
Let's follow the ratified DT binding and use uartdm instead of hsuart. This does break backwards compatibility but this shouldn't be a problem because the uart driver isn't probing on these devices without adding clock support (which isn't merged so far). Cc: David Brown Si

[PATCH v3 1/2] devicetree: serial: Document msm_serial bindings

2013-08-27 Thread Stephen Boyd
to make it clearer what's required and not required. Cc: David Brown Cc: Signed-off-by: Stephen Boyd --- .../devicetree/bindings/tty/serial/msm_serial.txt | 27 --- .../bindings/tty/serial/qcom,msm-uart.txt | 25 ++ .../bindings/tty/serial/qcom,msm-uartdm.txt

[PATCH v3 0/2] Document msm_serial bindings and support newer uartdms

2013-08-27 Thread Stephen Boyd
into two files * Renamed DT binding files to match compatible strings * Fixed up DT review comments * Added new patch 5/5 (more than 1 char for UARTDM) Stephen Boyd (2): devicetree: serial: Document msm_serial bindings ARM: dts: msm: Update uartdm compatible strings .../devicetree/binding

Re: mmotm 2013-08-27-16-51 uploaded

2013-08-27 Thread Stephen Boyd
On 08/27/13 16:52, a...@linux-foundation.org wrote: > * kernel-time-sched_clockc-correct-the-comparison-parameter-of-mhz.patch > I believe Russell nacked this change[1]? This should probably be dropped unless there's been more discussion. Or maybe reworked into a comment in the code that doesn't l

mutex warning in cpufreq + RFC patch

2013-08-27 Thread Stephen Boyd
I'm running this simple test code in a shell on my 3.10 kernel and running into this warning rather quickly. cd /sys/devices/system/cpu/cpu1 while true do echo 0 > online echo 1 > online done & while true do echo 30 > cpuf

Re: [PATCH] cpufreq: Don't use smp_processor_id() in preemptible context

2013-08-28 Thread Stephen Boyd
On 08/27/13 23:34, Viresh Kumar wrote: > On 28 August 2013 03:31, Stephen Boyd wrote: >> diff --git a/drivers/cpufreq/cpufreq_governor.c >> b/drivers/cpufreq/cpufreq_governor.c >> index b9b20fd..523af48 100644 >> --- a/drivers/cpufreq/cpufreq_governor

Re: mutex warning in cpufreq + RFC patch

2013-08-28 Thread Stephen Boyd
On 08/27/13 23:58, Viresh Kumar wrote: > I haven't gone through the hack yet, but I am trying to understand the > problem first.. There had been some work in the past around this > kind of scenarios.. > > commit 95731ebb114c5f0c028459388560fc2a72fe5049 > Author: Xiaoguang Chen > Date: Wed Jun 19

Re: mmotm 2013-08-27-16-51 uploaded

2013-08-28 Thread Stephen Boyd
On 08/27, Andrew Morton wrote: > On Tue, 27 Aug 2013 17:50:23 -0700 Stephen Boyd wrote: > > > On 08/27/13 16:52, a...@linux-foundation.org wrote: > > > * kernel-time-sched_clockc-correct-the-comparison-parameter-of-mhz.patch > > > > > > > I believe

Re: [PATCH v3 0/2] Document msm_serial bindings and support newer uartdms

2013-08-28 Thread Stephen Boyd
On 08/28, Kumar Gala wrote: > > On Aug 27, 2013, at 7:12 PM, Stephen Boyd wrote: > > > This patchset aligns the msm_serial driver more with downstream usage and > > updates the driver's DT bindings. > > > > Changes since v2: > > * Fixed up DT rev

[PATCH v4 1/2] devicetree: serial: Document msm_serial bindings

2013-08-28 Thread Stephen Boyd
to make it clearer what's required and not required. Cc: David Brown Cc: Acked-by: Kumar Gala Signed-off-by: Stephen Boyd --- .../devicetree/bindings/serial/qcom,msm-uart.txt | 25 ++ .../devicetree/bindings/serial/qcom,msm-uartdm.txt | 53 ++ .../

[PATCH v4 2/2] ARM: dts: msm: Update uartdm compatible strings

2013-08-28 Thread Stephen Boyd
Acked-by: Kumar Gala Signed-off-by: Stephen Boyd --- arch/arm/boot/dts/msm8660-surf.dts | 2 +- arch/arm/boot/dts/msm8960-cdp.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/msm8660-surf.dts b/arch/arm/boot/dts/msm8660-surf.dts index cdc010e..386d428 1

[PATCH v4 0/2] Document msm_serial bindings and support newer uartdms

2013-08-28 Thread Stephen Boyd
ce v1: * Dropped _clk postfix from {core,iface}_clk * Split DT binding into two files * Renamed DT binding files to match compatible strings * Fixed up DT review comments * Added new patch 5/5 (more than 1 char for UARTDM) Stephen Boyd (2): devicetree: serial: Document msm_serial bindings ARM

[PATCH v2] cpufreq: Don't use smp_processor_id() in preemptible context

2013-08-28 Thread Stephen Boyd
igned-off-by: Stephen Boyd --- drivers/cpufreq/cpufreq_governor.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/cpufreq_governor.c b/drivers/cpufreq/cpufreq_governor.c index b9b20fd..bfbcf9a 100644 --- a/drivers/cpufreq/cpufreq_governor.c +++ b/dr

[PATCH] arm64: Remove duplicate DEBUG_STACK_USAGE config

2013-10-01 Thread Stephen Boyd
This config item already exists generically in lib/Kconfig.debug. Remove the duplicate config in arm64. Signed-off-by: Stephen Boyd --- arch/arm64/Kconfig.debug | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/arm64/Kconfig.debug b/arch/arm64/Kconfig.debug index 1a6bfe9..835c5597

Re: [PATCH] tick: make sleep length calculation more accurate

2013-10-01 Thread Stephen Boyd
On 09/27/13 03:52, Daniel Lezcano wrote: > The sleep_length is computed in the tick_nohz_stop_sched_tick function but it > is used later in the code with in between the local irq enabled. > > cpu_idle_loop > tick_nohz_idle_enter [ exits with local irq enabled ] >__tick_nohz_idle_enter

Re: [PATCH] sched_clock: fix postinit no sched_clock function check

2013-10-02 Thread Stephen Boyd
On 10/02/13 10:14, Santosh Shilimkar wrote: > On Wednesday 02 October 2013 01:09 PM, Will Deacon wrote: >> On Wed, Oct 02, 2013 at 05:55:28PM +0100, Santosh Shilimkar wrote: >>> The sched_clock code uses 2 levels of function pointers, sched_clock_func() >>> and read_sched_clock() but the no sched_c

Re: [PATCH] sched_clock: fix postinit no sched_clock function check

2013-10-02 Thread Stephen Boyd
On 10/02/13 10:27, Santosh Shilimkar wrote: > On Wednesday 02 October 2013 01:22 PM, Stephen Boyd wrote: >> On 10/02/13 10:14, Santosh Shilimkar wrote: >>> On Wednesday 02 October 2013 01:09 PM, Will Deacon wrote: >>>> On Wed, Oct 02, 2013 at 05:55:28PM +0100, Sant

[PATCH v2 1/9] clk: Allow drivers to pass in a regmap

2013-10-02 Thread Stephen Boyd
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 allow drivers to use the core regmap helpers. Signed-off-by: Stephen Boyd --- drivers/clk/clk.c

[PATCH v2 2/9] clk: Add regmap core helpers for enable/disable/is_enabled

2013-10-02 Thread Stephen Boyd
accessors so other bus type clocks don't benefit from the potential code reuse. Add some simple regmap helpers for enable/disable/is_enabled that drivers can use as drop in replacements for their clock ops or as simple functions they call from their own custom ops. Signed-off-by: Stephen

[PATCH v2 0/9] Add support for MSM's mmio clocks

2013-10-02 Thread Stephen Boyd
directory be renamed to qcom to match the binding? 3) What is the right place for clock dt binding #defines? clk/ or clock/? Stephen Boyd (9): clk: Allow drivers to pass in a regmap clk: Add regmap core helpers for enable/disable/is_enabled clk: Add set_rate_and_parent() op clk: msm: A

[PATCH v2 4/9] clk: msm: Add support for phase locked loops (PLLs)

2013-10-02 Thread Stephen Boyd
Add support for MSM's PLLs (phase locked loops). This is sufficient enough to be able to determine the rate the PLL is running at. We can add rate setting support later when it's needed. Signed-off-by: Stephen Boyd --- drivers/clk/Kconfig | 2 + drivers/clk/Makefile

[PATCH v2 7/9] clk: msm: Add support for MSM8960's global clock controller (GCC)

2013-10-02 Thread Stephen Boyd
Add a driver for the global clock controller found on MSM8960 based platforms. This should allow most non-multimedia device drivers to probe and control their clocks. TODO: Fill out reset of data and define all clocks Cc: Signed-off-by: Stephen Boyd --- .../devicetree/bindings/clock/qcom

[PATCH v2 3/9] clk: Add set_rate_and_parent() op

2013-10-02 Thread Stephen Boyd
hange during clk_set_rate() it will call the .set_rate_and_parent() op if available and fall back to calling .set_parent() followed by .set_rate() otherwise. Reviewed-by: James Hogan Signed-off-by: Stephen Boyd --- Documentation/clk.txt| 3 ++ drivers/clk/clk.c

[PATCH v2 8/9] clk: msm: Add support for MSM8960's multimedia clock controller (MMCC)

2013-10-02 Thread Stephen Boyd
Add a driver for the multimedia clock controller found on MSM 8960 based platforms. This should allow multimedia device drivers to probe and control their clocks. TODO: Fill out reset of data and define all clocks Cc: Signed-off-by: Stephen Boyd --- .../devicetree/bindings/clock/qcom,mmcc.txt

[PATCH v2 6/9] clk: msm: Add support for branches/gate clocks

2013-10-02 Thread Stephen Boyd
Signed-off-by: Stephen Boyd --- drivers/clk/msm/Makefile | 1 + drivers/clk/msm/clk-branch.c | 153 +++ drivers/clk/msm/clk-branch.h | 50 ++ 3 files changed, 204 insertions(+) create mode 100644 drivers/clk/msm/clk-branch.c create

[PATCH v2 5/9] clk: msm: Add support for root clock generators (RCGs)

2013-10-02 Thread Stephen Boyd
Add support for the root clock generators on MSM devices. RCGs are highly customizable mux/divider/counter clocks that can be used to generate almost any rate desired given some input source that is faster than the desired rate. Signed-off-by: Stephen Boyd --- drivers/clk/msm/Makefile | 2

Re: [PATCH 2/2] hwrng: msm: Add PRNG support for MSM SoC's

2013-10-03 Thread Stephen Boyd
On 10/03/13 07:52, Stanimir Varbanov wrote: > +#define PRNG_CONFIG_MASK 0x0002 > +#define PRNG_CONFIG_HW_ENABLEBIT(1) These two are the same so please drop the PRNG_CONFIG_MASK define and just use the PRNG_CONFIG_HW_ENABLE define. > +#define PRNG_STATUS_DATA_AVAIL BIT(0) > +

[PATCH 2/2] ARM: Remove temporary sched_clock.h header

2013-10-03 Thread Stephen Boyd
This header file is no longer needed now that the ARM sched_clock framework is generic and all users have moved to linux/sched_clock.h instead of asm/sched_clock.h. Remove it. Signed-off-by: Stephen Boyd --- arch/arm/include/asm/sched_clock.h | 4 1 file changed, 4 deletions(-) delete

[PATCH 1/2] ARM: clps711x: Use linux/sched_clock.h

2013-10-03 Thread Stephen Boyd
The sched_clock.h include is under include/linux now. Cc: Alexander Shiyan Signed-off-by: Stephen Boyd --- arch/arm/mach-clps711x/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-clps711x/common.c b/arch/arm/mach-clps711x/common.c index 4ca2f3c

Re: [PATCH 2/2] hwrng: msm: Add PRNG support for MSM SoC's

2013-10-04 Thread Stephen Boyd
On 10/04/13 09:31, Stanimir Varbanov wrote: > >>> +static int msm_rng_probe(struct platform_device *pdev) >>> +{ >>> + struct msm_rng *rng; >>> + struct device_node *np; >>> + struct resource res; >>> + int ret; >>> + >>> + np = of_node_get(pdev->dev.of_node); >>> + if (!np) >>> +

Re: [GIT PULL] Remove ARM local timer API

2013-07-08 Thread Stephen Boyd
On 06/27, Olof Johansson wrote: > On Tue, Jun 25, 2013 at 01:02:12PM -0700, Stephen Boyd wrote: > > Olof/Arnd, > > > > These patches remove the ARM local timer API. The ARM architected > > timers have already moved away from this API so this series > > migrates

[PATCH] ARM: Fix deadlock scenario with smp_send_stop()

2013-07-09 Thread Stephen Boyd
mpletion. Reported-by: Sundarajan Srinivasan Signed-off-by: Stephen Boyd --- Resending this patch now that the context has changed. arch/arm/kernel/process.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index 7f1efcd..8bc12d7 100644 --

Re: [PATCH] irqchip: gic: Don't complain in gic_get_cpumask() if UP system

2013-07-12 Thread Stephen Boyd
On 07/12, Javi Merino wrote: > On Sat, Jul 06, 2013 at 12:39:33AM +0100, Stephen Boyd wrote: > > In a uniprocessor implementation the interrupt processor targets > > registers are read-as-zero/write-ignored (RAZ/WI). Unfortunately > > gic_get_cpumask() will print a cr

Re: [PATCH] clocksource: em_sti: Set cpu_possible_mask to fix SMP broadcast

2013-09-04 Thread Stephen Boyd
>> broadcast timer interrupts trigger on the secondary CPU cores. >>> >>> Signed-off-by: Magnus Damm >> Tested-by: Simon Horman >> >> I will let this sit for a few days to see if there is any further feedback. Reviewed-by: Stephen Boyd -- Qualcomm Inn

Re: [PATCH 2/2] cpufreq: serialize calls to __cpufreq_governor()

2013-09-04 Thread Stephen Boyd
On 09/04/13 16:55, Rafael J. Wysocki wrote: > > Well, I'm not sure when Viresh is going to be back. > > Srivatsa, can you please resend this patch with a proper changelog? > I haven't had a chance to try this out yet, but I was just thinking about this patch. How is it going to work? If one task o

Re: [PATCH 2/2] cpufreq: serialize calls to __cpufreq_governor()

2013-09-04 Thread Stephen Boyd
On 09/04/13 17:26, Rafael J. Wysocki wrote: > On Wednesday, September 04, 2013 04:50:01 PM Stephen Boyd wrote: >> On 09/04/13 16:55, Rafael J. Wysocki wrote: >>> Well, I'm not sure when Viresh is going to be back. >>> >>> Srivatsa, can you please resend thi

[PATCH] ARM: msm: Remove irqs-*.h files for DT based targets

2013-09-06 Thread Stephen Boyd
We don't want or need the irqs.h files from the DT based MSM targets. Remove these header files and select sparse irq so that we don't try to include the mach/irqs.h file. Signed-off-by: Stephen Boyd --- On 09/06, Josh Cartwright wrote: > > Selecting _only_ ARCH_MSM8974 wi

Re: [PATCH] ARM: msm: Remove irqs-*.h files for DT based targets

2013-09-06 Thread Stephen Boyd
On 09/06/13 13:31, Stephen Boyd wrote: > diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig > index 905efc8..30b3342 100644 > --- a/arch/arm/mach-msm/Kconfig > +++ b/arch/arm/mach-msm/Kconfig > @@ -50,6 +50,7 @@ config ARCH_MSM8X60 > select HAVE_SMP >

Re: [PATCH 2/2] ARM: msm: Create a common board-dt and config ARCH_MSM_DT

2013-09-09 Thread Stephen Boyd
On 09/09/13 16:01, Rohit Vaswani wrote: > diff --git a/arch/arm/mach-msm/board-dt.c b/arch/arm/mach-msm/board-dt.c > new file mode 100644 > index 000..c140c53 > --- /dev/null > +++ b/arch/arm/mach-msm/board-dt.c > @@ -0,0 +1,32 @@ > +/* Copyright (c) 2010-2012, The Linux Foundation. All rights

Re: [PATCHv2 2/2] ARM: msm: Create a common board-dt and config ARCH_MSM_DT

2013-09-09 Thread Stephen Boyd
On 09/09/13 16:24, Rohit Vaswani wrote: > diff --git a/arch/arm/mach-msm/board-dt.c b/arch/arm/mach-msm/board-dt.c > new file mode 100644 > index 000..16e6183 > --- /dev/null > +++ b/arch/arm/mach-msm/board-dt.c > @@ -0,0 +1,32 @@ > +/* Copyright (c) 2010-2012,2013 The Linux Foundation. All rig

Re: [PATCH 2/5] clocksource: Add Allwinner SoCs HS timers driver

2013-10-10 Thread Stephen Boyd
On 10/10/13 12:13, Maxime Ripard wrote: > On Wed, Sep 25, 2013 at 04:16:14PM -0700, Stephen Boyd wrote: >> On 09/25/13 07:03, Maxime Ripard wrote: >>> + sun5i_clockevent.cpumask = cpumask_of(0); >> Can this timer interrupt any CPU or is it hardwired to CPU0? If the >&g

Re: mutex warning in cpufreq + RFC patch

2013-08-30 Thread Stephen Boyd
On 08/29, Viresh Kumar wrote: > On 28 August 2013 22:22, Stephen Boyd wrote: > > > > I've applied these patches on top of v3.10 > > > > f51e1eb63d9c28cec188337ee656a13be6980cfd (cpufreq: Fix cpufreq regression > > after suspend/resume > > aae760ed21cd6

Re: kernel deadlock

2013-08-30 Thread Stephen Boyd
On 08/30/13 16:10, John Stultz wrote: > On 08/30/2013 04:04 PM, Gerlando Falauto wrote: >> Hi, >> >> sorry, it took me a while to narrow it down... >> >> On 08/30/2013 01:45 AM, John Stultz wrote: >>> On 08/29/2013 01:56 PM, Falauto, Gerlando wrote: Hi everyone, I ran into the deadlo

[PATCH] clocksource: arm_arch_timer: Use clocksource for suspend timekeeping

2013-09-27 Thread Stephen Boyd
accurate than using an external RTC or architecture specific persistent clock. Cc: Mark Rutland Signed-off-by: Stephen Boyd --- drivers/clocksource/arm_arch_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource

Re: [PATCH V3 1/6] clk: exynos-audss: convert to platform device

2013-09-24 Thread Stephen Boyd
On 09/24/13 11:06, Andrew Bresticker wrote: > +static int __init exynos_audss_clk_init(void) > +{ > + return platform_driver_register(&exynos_audss_clk_driver); > +} > +core_initcall(exynos_audss_clk_init); > + > +static void __init exynos_audss_clk_exit(void) __exit? > +{ > + platform_dr

Re: [PATCH 2/5] clocksource: Add Allwinner SoCs HS timers driver

2013-09-25 Thread Stephen Boyd
On 09/25/13 07:03, Maxime Ripard wrote: > diff --git > a/Documentation/devicetree/bindings/timer/allwinner,sun5i-a13-hstimer.txt > b/Documentation/devicetree/bindings/timer/allwinner,sun5i-a13-hstimer.txt > new file mode 100644 > index 000..b1f81e9 > --- /dev/null > +++ b/Documentation/device

[PATCH 6/9] ARM: msm: Rename board-msm8x60 to signify its DT only status

2012-09-05 Thread Stephen Boyd
Rename this file to signify that this board is only supported via devicetree. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/Makefile | 2 +- arch/arm/mach-msm/{board-msm8x60.c => board-dt-8660.c} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename a

[PATCH 7/9] ARM: msm: Move io mapping prototypes to common.h

2012-09-05 Thread Stephen Boyd
Consolidate the handful of iomapping functions into common.h so that board files don't need to include mach/msm_iomap.h if they don't need static virtual mapping addresses. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/board-dt-8660.c | 1 - arch/arm/mach-ms

[PATCH 5/9] ARM: msm: Make 8660 a DT only target

2012-09-05 Thread Stephen Boyd
We don't plan to support anything besides devicetree on these targets so remove all other machine support. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/Kconfig | 27 +- arch/arm/mach-msm/board-msm8x60.c | 106 ++ arch/arm/mac

[PATCH 9/9] ARM: msm: Remove non-DT targets from 8960

2012-09-05 Thread Stephen Boyd
Remove the non-DT targets supported by 8960. This makes 8960 a device tree only target. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/Kconfig | 13 - arch/arm/mach-msm/Makefile | 1 - arch/arm/mach-msm/board-msm8960.c | 110

[PATCH 1/9] ARM: msm: Don't touch GIC registers outside of GIC code

2012-09-05 Thread Stephen Boyd
The MSM code has some antiquated register writes to set up the PPIs to be edge triggered. Now that we have the percpu irq interface we don't need this code so let's remove it and update the percpu irq user (msm_timer) to set the irq type. Signed-off-by: Stephen Boyd --- arch/arm/mach

[PATCH 3/9] ARM: msm: Add DT support to msm_timer

2012-09-05 Thread Stephen Boyd
Add support to setup the MSM timer via information obtained from the devicetree. Signed-off-by: Stephen Boyd --- .../devicetree/bindings/arm/msm/timer.txt | 38 ++ arch/arm/mach-msm/common.h | 1 + arch/arm/mach-msm/timer.c | 87

[PATCH 0/9] Move closer to single 8660/8960 zImage

2012-09-05 Thread Stephen Boyd
n the previous 8660 dt fixlets patches I sent and it also assumes that 'ARM: msm: Remove call to missing FPGA init on 8660' has been applied. Stephen Boyd (9): ARM: msm: Don't touch GIC registers outside of GIC code ARM: msm: Allow timer.c to compile on multiple targets ARM: ms

[PATCH 8/9] ARM: msm: Add DT support for 8960

2012-09-05 Thread Stephen Boyd
Add basic support to boot 8960 with device tree. For now just support a basic machine with a uart device. Signed-off-by: Stephen Boyd --- arch/arm/boot/dts/msm8960-cdp.dts | 41 arch/arm/mach-msm/Kconfig | 1 + arch/arm/mach-msm/Makefile| 1

[PATCH 4/9] ARM: msm: Move 8660 to DT timer

2012-09-05 Thread Stephen Boyd
Add the timer entry and point the machine descriptor to the device tree based msm timer. Signed-off-by: Stephen Boyd --- arch/arm/boot/dts/msm8660-surf.dts | 17 + arch/arm/mach-msm/board-msm8x60.c | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/arch/arm

[PATCH 2/9] ARM: msm: Allow timer.c to compile on multiple targets

2012-09-05 Thread Stephen Boyd
replace all the defines with raw values that are passed to a common initialization function. This paves the way to adding DT support to this code as well as allows us to compile this file on multiple targets at the same time. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/board-halibut.c

[PATCH] ARM: Fix deadlock scenario with smp_send_stop()

2012-09-05 Thread Stephen Boyd
runs to completion. Reported-by: Sundarajan Srinivasan Signed-off-by: Stephen Boyd --- Unfortunately this won't fix the other problem I mentioned two weeks ago where smp_send_stop races with other CPUs calling cpu_up(). arch/arm/kernel/process.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH] ARM: Fix semihosting Kconfig text

2012-09-05 Thread Stephen Boyd
It seems we were missing some text in the title for the semihosting DEBUG_LL option. Add in the "/O" and fix up some minor typos in the help text. Signed-off-by: Stephen Boyd Cc: Nicolas Pitre --- arch/arm/Kconfig.debug | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) di

[PATCH] ARM: msm: Remove unused acpuclock-arm11

2012-09-06 Thread Stephen Boyd
This is dead code that isn't initialized or setup (although it is compiled). Remove it and the data structures it references. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/Makefile | 2 +- arch/arm/mach-msm/acpuclock-arm11.c| 525 - arc

[PATCH] ARM: msm: Remove uncompiled board-msm7x27

2012-09-06 Thread Stephen Boyd
This board file has never been compiled. Let's just remove it along with the one Kconfig reference to it in io.c. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/board-msm7x27.c | 170 -- arch/arm/mach-msm/io.c| 3 +- 2 files chang

Re: [PATCHv2 2/2] msm: io: Change the default static iomappings to be shared

2012-09-06 Thread Stephen Boyd
On 09/06/12 10:16, Rohit Vaswani wrote: > static struct map_desc msm_io_desc[] __initdata = { > - MSM_DEVICE(VIC), > - MSM_CHIP_DEVICE(CSR, MSM7X00), > - MSM_DEVICE(DMOV), > - MSM_CHIP_DEVICE(GPIO1, MSM7X00), > - MSM_CHIP_DEVICE(GPIO2, MSM7X00), > - MSM_DEVICE(CLK_CTL), > +

Re: [PATCH 8/9] ARM: msm: Add DT support for 8960

2012-09-07 Thread Stephen Boyd
On 09/07/12 15:58, David Brown wrote: > On Wed, Sep 05, 2012 at 12:28:58PM -0700, Stephen Boyd wrote: > >> +DT_MACHINE_START(MSM8960_DT, "Qualcomm MSM (Flattened Device Tree)") > The description string should specify the general name of what this is > suspporting. R

[PATCH 10/9] ARM: msm: Allow msm_iomap-8x60 and msm_iomap-8960 to coexist

2012-09-10 Thread Stephen Boyd
Remove the unused GCC, ACC, and shared memory definitions in the 8660 static mappings. This allows the 8660 header file to be included in msm_iomap.h unconditionally. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/include/mach/msm_iomap-8x60.h | 11 --- arch/arm/mach-msm/include/mach

[PATCH 11/9] ARM: msm: Allow 8960 and 8660 to compile together

2012-09-10 Thread Stephen Boyd
users to select targets that must be compiled in isolation. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/Kconfig | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig index b2740c8..7902de15 100644 --- a/arch/arm/mach

[PATCH] ARM: smp: Formalize an IPI for wakeup

2012-09-10 Thread Stephen Boyd
. Reviewed-by: Nicolas Pitre Signed-off-by: Stephen Boyd --- arch/arm/include/asm/hardirq.h | 2 +- arch/arm/kernel/smp.c | 13 + 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/arch/arm/include/asm/hardirq.h b/arch/arm/include/asm/hardirq.h index 436e60b

Re: [PATCH 1/2] clk: Add composite clock type

2013-01-04 Thread Stephen Boyd
On 01/03/13 21:51, Prashant Gaikwad wrote: > diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile > index f0b269a..baf7608 100644 > --- a/drivers/clk/Makefile > +++ b/drivers/clk/Makefile > @@ -2,7 +2,8 @@ > obj-$(CONFIG_HAVE_CLK) += clk-devres.o > obj-$(CONFIG_CLKDEV_LOOKUP) +

Re: [RFC PATCH 1/5] ARM: remove useless guard in smp.c

2012-12-18 Thread Stephen Boyd
SMP, this is unnecessary. You might want to add that GENERIC_CLOCKEVENTS_BROADCAST depends on GENERIC_CLOCKEVENTS and SMP depends on GENERIC_CLOCKEVENTS too. > This patch removes the redundant guard. > > Signed-off-by: Mark Rutland Reviewed-by: Stephen Boyd -- Qualcomm Innovation Cen

Re: [RFC PATCH 2/5] clockevents: Add generic timer broadcast receiver

2012-12-18 Thread Stephen Boyd
On 12/18/12 04:06, Mark Rutland wrote: > diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c > index f113755..c2dd022 100644 > --- a/kernel/time/tick-broadcast.c > +++ b/kernel/time/tick-broadcast.c > @@ -125,6 +125,21 @@ int tick_device_uses_broadcast(struct clock_event_device

Re: [RFC PATCH 4/5] clockevents: Add generic timer broadcast function

2012-12-18 Thread Stephen Boyd
Minor nit On 12/18/12 04:06, Mark Rutland wrote: > diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c > index c2dd022..ec22a80 100644 > --- a/kernel/time/tick-broadcast.c > +++ b/kernel/time/tick-broadcast.c > @@ -86,6 +87,12 @@ int tick_is_broadcast_device(struct clock_event

[PATCH/TRIVIAL] blackfin: time-ts: Remove duplicate assignment

2012-12-18 Thread Stephen Boyd
It seems that this assignment is done twice in a row. Remove the duplicate assignment. Signed-off-by: Stephen Boyd Cc: Steven Miao Cc: triv...@kernel.org --- Noticed while grepping for broadcast users. arch/blackfin/kernel/time-ts.c | 6 -- 1 file changed, 6 deletions(-) diff --git a

Re: [PATCH 4/4] clk: zynq: Use of_init_clk_data()

2012-12-19 Thread Stephen Boyd
On 12/19/12 09:26, Josh Cartwright wrote: > On Mon, Dec 17, 2012 at 01:02:15PM -0800, Stephen Boyd wrote: >> Reduce lines of code and simplify this driver by using the >> generic clock binding parsing function. This also fixes a bug >> where the 'flags' member of the

Re: [PATCH 4/4] clk: zynq: Use of_init_clk_data()

2012-12-19 Thread Stephen Boyd
On 12/19/12 10:36, Josh Cartwright wrote: > On Wed, Dec 19, 2012 at 10:20:30AM -0800, Stephen Boyd wrote: >> On 12/19/12 09:26, Josh Cartwright wrote: >>> On Mon, Dec 17, 2012 at 01:02:15PM -0800, Stephen Boyd wrote: > [..] >> Can you show the code at those line num

<    1   2   3   4   5   6   7   8   9   10   >