[PATCHv2] ARM: Sort exception table at compile time

2012-08-22 Thread Stephen Boyd
ption table its own section so that sortextable can find it. This allows us to skip the sorting step during boot. Cc: David Daney Signed-off-by: Stephen Boyd --- Changes since v1: * Moved exception table next to RO data for XIP builds arch/arm/Kconfig | 1 + arch/arm/k

Re: [PATCH] ARM: Fix XIP build due to PHYS_OFFSET definition moving

2012-08-22 Thread Stephen Boyd
On 08/09/12 23:46, Stephen Boyd wrote: > On 8/2/2012 6:23 PM, Stephen Boyd wrote: >> During the p2v changes, the PHYS_OFFSET #define moved into a >> !__ASSEMBLY__ section. This causes a XIP build to fail with >> >> arch/arm/kernel/head.o: In function 'stext&

[PATCH/RESEND] Move most arches to asm-generic/current.h

2012-08-22 Thread Stephen Boyd
: Stephen Boyd Cc: linux-a...@vger.kernel.org Acked-by: Arnd Bergmann Acked-by: Marc Gauthier [Xtensa] Acked-by: David S. Miller [Sparc] Acked-by: Chris Metcalf [Tile] Acked-by: David Howells [MN10300] --- This stalled last round. Resending to collect more acks from arch maintainers and rebased

[PATCH 0/3] Miscellaneous MSM fixes

2012-08-22 Thread Stephen Boyd
Here's a small collection of MSM patches I have lying around. The first removes a useless file and hook that nobody is using. The second marks some functions static in clock-pcom.c since they aren't used outside the file and the last removes idle.c because it's dead code. Stephen

[PATCH 3/3] ARM: MSM: Remove unused idle.c

2012-08-22 Thread Stephen Boyd
idle support on MSM. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/Makefile | 2 +- arch/arm/mach-msm/idle.c | 49 -- 2 files changed, 1 insertion(+), 50 deletions(-) delete mode 100644 arch/arm/mach-msm/idle.c diff --git a/arch/arm/mach-msm/Makefile

[PATCH 2/3] ARM: MSM: clock-pcom: Mark functions static

2012-08-22 Thread Stephen Boyd
These functions are only used within clock-pcom.c, therefore mark them as static. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/clock-pcom.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-msm/clock-pcom.c b/arch/arm/mach-msm/clock-pcom.c

[PATCH 1/3] ARM: MSM: Remove msm_hw_reset_hook

2012-08-22 Thread Stephen Boyd
This reset hook is never assigned and is dead code. Remove it so we have one less header file in the mach directory. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/board-mahimahi.c | 1 - arch/arm/mach-msm/board-sapphire.c | 1 - arch/arm/mach-msm/include/mach/system.h | 19

[PATCH 2/2] ARM: MSM: Add msm8660-surf.dts to Makefile.boot

2012-08-22 Thread Stephen Boyd
Add this entry to the Makefile so that we can build the dtb automatically with 'make dtbs'. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/Makefile.boot | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-msm/Makefile.boot b/arch/arm/mach-msm/Makefile.boot ind

[PATCH 0/2] 8660 DT fixlets

2012-08-22 Thread Stephen Boyd
Two small fixes to 8660 DT support so that it boots up and gets interrupts and so that we can build the dtb via kernel Makefiles with 'make dtbs'. Stephen Boyd (2): ARM: MSM: Add handle_irq handler for 8660 DT machine ARM: MSM: Add msm8660-surf.dts to Makefile.boot arch/ar

[PATCH 1/2] ARM: MSM: Add handle_irq handler for 8660 DT machine

2012-08-22 Thread Stephen Boyd
Commit 041f777 (ARM: msm: convert SMP platforms to CONFIG_MULTI_IRQ_HANDLER, 2011-09-06) forgot to add the .handle_irq for the DT machine record. Add it so we get interrupts instead of panics on DT enabled bootloaders. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/board-msm8x60.c | 1 + 1

[PATCH] ARM: MSM: Implement read_current_timer for msm timers

2012-08-27 Thread Stephen Boyd
Setup the same timer used as the clocksource to be used as the read_current_timer implementation. This allows us to support a stable udelay implementation on MSMs where it's possible for the CPUs to scale speeds independently of one another. Signed-off-by: Stephen Boyd --- I have some pa

Re: [PATCH] exynos-rng: Depend on ARCH_EXYNOS

2012-08-27 Thread Stephen Boyd
On 8/27/2012 2:02 PM, Jeff Mahoney wrote: > The exynos-rng device is only found on Samsung EXYNOS devices but has > dependencies that allow it to be built on other architectures. This > can result in build failures on powerpc due to a missing clk_devm_get. > > This patch makes it depend on ARCH_EXY

Re: [PATCH 12/24] ARM: msm: use __iomem pointers for MMIO

2012-09-14 Thread Stephen Boyd
tch out today. Thanks. Acked-by: Stephen Boyd -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.o

[PATCH] ARM: msm: Silence warning when CONFIG_MMC=n

2012-09-17 Thread Stephen Boyd
arch/arm/mach-msm/board-trout.c:67:6: warning: unused variable 'rc' Just drop the #ifdef and do this unconditionally. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/board-trout.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/mach-msm/board-trout.c b/arch/arm/mach

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

2012-09-17 Thread Stephen Boyd
On 09/10/12 15:24, Stephen Boyd wrote: > Remove the offset from ipi_msg_type and assume that SGI0 is the > wakeup interrupt now that all WFI hotplug users call > gic_raise_softirq() with 0 instead of 1. This allows us to > track how many wakeup interrupts are sent and also removes t

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

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

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

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

[PATCH 0/3] Introduce devm_clk_register()

2012-09-18 Thread Stephen Boyd
code I'm sending out in the near future. The second patch adds the API and the third patch moves over an existing user of clk_unregister() to the devm API. Stephen Boyd (3): clk: wm831x: Fix clk_register() error code checking clk: Add devm_clk_{register,unregister}() clk: wm831x

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

2012-09-18 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 --- drivers/clk/clk.c

[PATCH 0/5] Trim down mach includes in MSM drivers

2012-09-19 Thread Stephen Boyd
the MSM tree, so it may be easier to just put all these patches through the MSM tree. Stephen Boyd (5): ARM: msm: Move dma.h #defines that are private to dma.c mmc: msm_sdcc: Remove unnecessary include video: msm: Remove useless mach/* includes gpio: Make gpio-msm-v1 into a platform driver

[PATCH 4/5] gpio: Make gpio-msm-v1 into a platform driver

2012-09-19 Thread Stephen Boyd
Cc: Rohit Vaswani Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/board-halibut.c | 1 + arch/arm/mach-msm/board-msm7x30.c | 1 + arch/arm/mach-msm/board-qsd8x50.c | 1 + arch/arm/mach-msm/board-trout.c | 1 + arch/arm/mach-msm/devices-msm7x00.c | 31 + arch/arm/mach

[PATCH 3/5] video: msm: Remove useless mach/* includes

2012-09-19 Thread Stephen Boyd
This driver doesn't need to use these mach includes so remove them. This is a necessary step to support a single zImage. Cc: Florian Tobias Schandinat Signed-off-by: Stephen Boyd --- drivers/video/msm/mddi.c | 3 --- drivers/video/msm/mdp.c| 1 - drivers/video/msm/mdp_hw.h | 1 - 3

[PATCH 2/5] mmc: msm_sdcc: Remove unnecessary include

2012-09-19 Thread Stephen Boyd
This driver has no reason to include msm_iomap.h. Remove it so that we can remove msm_iomap.h from include/mach in the future. Cc: Chris Ball Signed-off-by: Stephen Boyd --- drivers/mmc/host/msm_sdcc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc

[PATCH 1/5] ARM: msm: Move dma.h #defines that are private to dma.c

2012-09-19 Thread Stephen Boyd
h-msm). Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/dma.c | 26 ++ arch/arm/mach-msm/include/mach/dma.h | 26 -- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/arch/arm/mach-msm/dma.c b/arch/arm/mach-msm/dma.c

[PATCH 5/5] ARM: msm: Remove unused cpu.h header file

2012-09-19 Thread Stephen Boyd
This header file is no longer used now that the msm timer.c and the gpio driver have been made more runtime aware. Remove the header file so no future users pop-up. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/include/mach/cpu.h | 54 1 file changed, 54

rt73usb WARNING: at net/mac80211/driver-ops.h:12 check_sdata_in_driver

2012-09-20 Thread Stephen Boyd
Hi, I've noticed that if I suspend to disk and then resume with my usb wifi adapter plugged in I get a spew of these warnings from what looks to be the wifi driver and some warning from the usb layer. Are these known issues? rt73usb 1-2:1.0: no reset_resume for driver rt73usb? WARNING: at net/ma

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

2012-09-20 Thread Stephen Boyd
. Clear the breakpoints before enabling monitor mode so that we don't experience boot hangs/loops due to breakpoints being enabled out of reset. Signed-off-by: Stephen Boyd --- arch/arm/kernel/hw_breakpoint.c | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-)

Re: [PATCH 01/11] ARM: topology: mark init_cpu_topology as __init

2012-08-08 Thread Stephen Boyd
On 08/08/12 07:47, Arnd Bergmann wrote: > The init_cpu_topology function can be put into the __init section > and discarded after boot, because it is only called from > smp_prepare_cpus, which is also marked __init. This was reported > by gcc after Vincent Guittot added the parse_dt_topology functi

Re: [PATCH] ARM: Fix XIP build due to PHYS_OFFSET definition moving

2012-08-09 Thread Stephen Boyd
On 8/2/2012 6:23 PM, Stephen Boyd wrote: > During the p2v changes, the PHYS_OFFSET #define moved into a > !__ASSEMBLY__ section. This causes a XIP build to fail with > > arch/arm/kernel/head.o: In function 'stext': > arch/arm/kernel/head.S:146: undefined

Re: [PATCH] cpufreq: Fix sysfs deadlock with concurrent hotplug/frequency switch

2012-07-20 Thread Stephen Boyd
gt;> in another. The first task will hang and be detected by the hung >> task detector. >> >> Signed-off-by: Stephen Boyd >> --- >> >> Before you ask, I've seen the comment above cpufreq_add_dev() about >> concurrent hotplug/cpufreq. >> >>

[PATCHv2] cpufreq: Fix sysfs deadlock with concurrent hotplug/frequency switch

2012-07-20 Thread Stephen Boyd
lock you can insert an msleep() with a reasonably large value right after the fail label at the bottom of the store() function in cpufreq.c and then write scaling_setspeed in one task and offline the cpu in another. The first task will hang and be detected by the hung task detector. Signed-off-by:

Re: [RFC PATCH 07/13] driver core: firmware loader: introduce cache_firmware and uncache_firmware

2012-07-25 Thread Stephen Boyd
On 7/24/2012 10:00 AM, Ming Lei wrote: > > + > +int cache_firmware(const char *name) > +{ > + return -ENOENT; > +} > + > +int uncache_firmware(const char *name) > +{ > + return -EINVAL; > +} These stubs need to be static inline to avoid compiler warnings. -- Sent by an employee of the Qu

Re: [RFC PATCH 06/13] driver core: firmware loader: always let firmware_buf own the pages buffer

2012-07-25 Thread Stephen Boyd
Mostly trivia. On 7/24/2012 10:00 AM, Ming Lei wrote: > + > +static int fw_lookup_and_alloate_buf(const char *fw_name, allocate? > + struct firmware_cache *fwc, > + struct firmware_buf **buf) > +{ > + struct firmware_buf *tmp; > + > + spin_lock(&fwc->lock); > +

Re: [PATCH 1/2] vsprintf: Fix %ps on non symbols when using kallsyms

2012-07-25 Thread Stephen Boyd
Hi Andrew, On 4/23/2012 2:55 PM, Andrew Morton wrote: > On Mon, 23 Apr 2012 14:45:24 -0700 > Stephen Boyd wrote: > >> Using %ps in a printk format will sometimes fail silently and >> print the empty string if the address passed in does not match a >> symbol that kallsy

Re: [PATCH 1/2] kstrto*: add documentation

2012-07-12 Thread Stephen Boyd
On 07/12/12 13:53, Eldad Zack wrote: > > diff --git a/include/linux/kernel.h b/include/linux/kernel.h > index e07f5e0..582df0f 100644 > --- a/include/linux/kernel.h > +++ b/include/linux/kernel.h > @@ -220,6 +220,16 @@ int __must_check _kstrtol(const char *s, unsigned int > base, long *res); > >

Re: [PATCH 1/2] kstrto*: add documentation

2012-07-12 Thread Stephen Boyd
On 07/12/12 14:17, Stephen Boyd wrote: > On 07/12/12 13:53, Eldad Zack wrote: >> diff --git a/include/linux/kernel.h b/include/linux/kernel.h >> index e07f5e0..582df0f 100644 >> --- a/include/linux/kernel.h >> +++ b/include/linux/kernel.h >> @@ -220,6 +220,16 @

Re: [PATCH 1/2] clk: divider: prepare for minimum divider

2013-01-22 Thread Stephen Boyd
On 01/22/13 08:39, Afzal Mohammed wrote: > diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c > index a9204c6..0b34992 100644 > --- a/drivers/clk/clk-divider.c > +++ b/drivers/clk/clk-divider.c > @@ -236,7 +236,7 @@ EXPORT_SYMBOL_GPL(clk_divider_ops); > > static struct clk *_regi

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

2013-01-10 Thread Stephen Boyd
On 01/04/13 18:49, Prashant Gaikwad wrote: > On Saturday 05 January 2013 03:48 AM, Stephen Boyd wrote: >> On 01/03/13 21:51, Prashant Gaikwad wrote: >>> diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile >>> index f0b269a..baf7608 100644 >>> --- a/driver

Re: [PATCH 2/2] cpufreq: db8500: set CPUFREQ_CONST_LOOPS

2012-12-17 Thread Stephen Boyd
On 12/04/12 02:10, Fabio Baltieri wrote: > As ux500 is being converted to timer based delay loops, and the timer > used is not depending on CPUs clock frequency, set cpufreq_driver flag > CPUFREQ_CONST_LOOPS to prevent cpufreq rescaling loops_for_jiffies. > > Acked-by: Linus Walleij > Signed-off-b

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

2012-12-17 Thread Stephen Boyd
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 init struct is not initialized. Signed-off-by: Stephen Boyd Cc: Josh Cartwright Cc: Soren Brinkmann --- drivers/clk/clk-z

[PATCH 2/4] clk: highbank: Use of_init_clk_data()

2012-12-17 Thread Stephen Boyd
Reduce lines of code and simplify this driver by using the generic clock binding parsing function. Signed-off-by: Stephen Boyd Cc: Rob Herring --- drivers/clk/clk-highbank.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/drivers/clk/clk-highbank.c b

[PATCH 0/4] Introduce of_init_clk_data() for DT clock parsing

2012-12-17 Thread Stephen Boyd
rs of of_clk_get_parent_name() so we may want to delete it. Stephen Boyd (4): clk: Add of_init_clk_data() to parse common clock bindings clk: highbank: Use of_init_clk_data() clk: vt8500: Use of_init_clk_data() clk: zynq: Use of_init_clk_data() drivers/clk/clk-highbank.c

[PATCH 1/4] clk: Add of_init_clk_data() to parse common clock bindings

2012-12-17 Thread Stephen Boyd
ve to free the strings allocated here which could be cumbersome. Signed-off-by: Stephen Boyd Cc: Rob Herring --- drivers/clk/clk.c| 58 +++- include/linux/clk-provider.h | 2 ++ 2 files changed, 59 insertions(+), 1 deletion(-) diff --git a/dr

[PATCH 3/4] clk: vt8500: Use of_init_clk_data()

2012-12-17 Thread Stephen Boyd
Reduce lines of code and simplify this driver by using the generic clock binding parsing function. Signed-off-by: Stephen Boyd Cc: Tony Prisk --- drivers/clk/clk-vt8500.c | 39 +++ 1 file changed, 15 insertions(+), 24 deletions(-) diff --git a/drivers/clk

Re: [PATCH 08/11] ARM: Move some macros from entry-armv to entry-header

2012-09-26 Thread Stephen Boyd
On 09/24/12 14:27, Anton Vorontsov wrote: > Just move the macros into header file as we would want to use them for > KGDB FIQ entry code. > > The following macros were moved: > > - svc_entry > - usr_entry > - kuser_cmpxchg_check > - vector_stub > > To make kuser_cmpxchg_check actually work acro

Re: rt73usb WARNING: at net/mac80211/driver-ops.h:12 check_sdata_in_driver

2012-09-30 Thread Stephen Boyd
On 09/28/2012 05:46 AM, Dan Carpenter wrote: > Hi Stephen, > > I have created a bug for this: > https://bugzilla.kernel.org/show_bug.cgi?id=48041 > > We only recently added the warning on that path. > > Please add the following information. > *) Complete dmesg > Ok I've added the information t

Re: [PATCH] ARM: smp: Fix suspicious RCU originating from cpu_die()

2012-07-06 Thread Stephen Boyd
On 07/05/12 17:24, Paul E. McKenney wrote: > On Thu, Jul 05, 2012 at 04:45:58PM -0700, Stephen Boyd wrote: >> @@ -179,7 +184,7 @@ void __ref cpu_die(void) >> mb(); >> >> /* Tell __cpu_die() that this CPU is now safe to dispose of */ >> -complete(&am

Re: [PATCH] ARM: smp: Fix suspicious RCU originating from cpu_die()

2012-07-06 Thread Stephen Boyd
On 07/06/12 13:30, Russell King - ARM Linux wrote: > On Fri, Jul 06, 2012 at 11:39:09AM -0700, Stephen Boyd wrote: >> On 07/05/12 17:24, Paul E. McKenney wrote: >>> On Thu, Jul 05, 2012 at 04:45:58PM -0700, Stephen Boyd wrote: >>>> @@ -179,7 +184,7 @@ void

Re: [PATCHv2 0/4] clockevents: decouple broadcast mechanism from drivers

2013-01-09 Thread Stephen Boyd
;evt_handler check in tick_receive_broadcast > * Fix up tick_receive_broadcast when !GENERIC_CLOCKEVENTS_BROADCAST > * Fix checkpatch issues (multi-line strings) > > Thanks go to Stephen Boyd and Santosh Shilimkar for their commments. > > In some SMP systems, cpu-local timers may s

Re: [PATCH v2 0/3] Armada 7k/8k CP110 system controller fixes

2016-09-19 Thread Stephen Boyd
On 09/19, Marcin Wojtas wrote: > Hi Stephen, > > Did you have any chance to take a look at v2? Do you have any remarks? > Hmm I don't have any of these patches in my queue. Probably because there was some bug in the second patch so I assumed it would go for another round. Please fix that bug and

Re: [PATCH 1/4] clk: pxa25x: OSTIMER0 clocks from the main oscillator

2016-09-19 Thread Stephen Boyd
> Tested-by: Robert Jarzmik > --- Acked-by: Stephen Boyd -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: question about clk_hw_register_fixed_factor

2016-09-20 Thread Stephen Boyd
On 09/20, Julia Lawall wrote: > Hello, > > The function clk_hw_register_fixed_factor from > drivers/clk/clk-fixed-factor.c contains: > > struct clk_init_data init; > ... > fix->hw.init = &init; > ... > hw = &fix->hw; > ... > return hw; > > It looks like hw would then contain a dangling pointer,

Re: [PATCH] clk: mvebu: Add clk support for the orion5x SoC mv88f5181

2016-09-20 Thread Stephen Boyd
clk patch and the dts patch come together in -next via a merge instead of basing the dts patch on top of the clk patch would be how things are normally done. If we're really changing some dts to be backwards incompatible, then I understand the bisect problem and you can have my ack. Acked-by: Stephen Boyd

Re: [PATCH v2 1/1] clk: imx53: Add clocks configuration

2016-09-20 Thread Stephen Boyd
On 09/19, Fabien Lahoudere wrote: > From: Kalle Kankare > > Add clocks configuration for CSI, FIRI and IEEE1588. > > Signed-off-by: Fabien Lahoudere > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH v3 1/5] clk: at91: move slow clock controller clocks to sckc.c

2016-09-20 Thread Stephen Boyd
On 09/20, Alexandre Belloni wrote: > Move all clocks related to the slow clock controller to sckc.c. This avoids > extern definitions and allows to remove sckc.h > > Signed-off-by: Alexandre Belloni > --- Applied to clk-next drivers/clk/at91/sckc.c:146:13: warning: symbol 'of_at91sam9x5_clk_slo

Re: [PATCH v3 2/5] clk: at91: Add sama5d4 sckc support

2016-09-20 Thread Stephen Boyd
On 09/20, Alexandre Belloni wrote: > Starting with sama5d4, the crystal oscillator is always enabled at startup > and the SCKC doesn't have an OSC32EN bit anymore. > > Add support for that new controller. > > Signed-off-by: Alexandre Belloni > --- Applied to clk-next -- Qualcomm Innovation Ce

Re: [PATCH v3 3/5] clk: at91: sckc: optimize boot time

2016-09-20 Thread Stephen Boyd
On 09/20, Alexandre Belloni wrote: > Assume that if the oscillator is enabled (OSC32EN bit is present), the > delay has already elapsed as the bootloader probably waited for the > oscillator to settle. This could waste up to 1.2s. > > Signed-off-by: Alexandre Belloni > --- Applied to clk-next -

Re: [PATCH] clk: mediatek: clk-mt8173: Unmap region obtained by of_iomap

2016-09-21 Thread Stephen Boyd
On 09/20, Arvind Yadav wrote: > From: Arvind Yadav > > Free memory mapping, if init is not successful. > > Signed-off-by: Arvind Yadav > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH] clk: mvebu: Add clk support for the orion5x SoC mv88f5181

2016-09-21 Thread Stephen Boyd
On 09/21, Gregory CLEMENT wrote: > Hi Stephen, > > On mar., sept. 20 2016, Stephen Boyd wrote: > > > On 09/20, Gregory CLEMENT wrote: > >> From: Jamie Lentin > >> > >> Referring to the u-boot sources for the Netgear WNR854T, add support >

Re: [PATCH] clk: nxp: clk-lpc32xx: Unmap region obtained by of_iomap

2016-09-21 Thread Stephen Boyd
On 09/20, Arvind Yadav wrote: > From: Arvind Yadav > > Free memory mapping, if lpc32xx_clk_init is not successful. > > Signed-off-by: Arvind Yadav > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH v2] tty: serial: msm: Don't reconfigure same baud rate

2016-06-20 Thread Stephen Boyd
output data still being clocked out of > the TX fifo. > > By skipping the rate-change in the case where the baud rate is unchanged > since last request we can avoid the reset and the discarding of the > data. > > Signed-off-by: Bjorn Andersson > --- Reviewed-by: Stephen B

Re: [PATCH v2] firmware: qcom: scm: Expose PAS command 10 as reset-controller

2016-06-20 Thread Stephen Boyd
On 06/17, Bjorn Andersson wrote: > PAS command 10 is used to assert and deassert the MSS reset via > TrustZone, expose this as a reset-controller to mimic the direct > access case. > > Cc: Stephen Boyd > Acked-by: Rob Herring > Signed-off-by: Bjorn Andersson > --- R

Re: [PATCH 2/2] dt-bindings: qcom: Add MDM9615 bindings

2016-06-20 Thread Stephen Boyd
On 06/17, Neil Armstrong wrote: > Signed-off-by: Neil Armstrong > --- Reviewed-by: Stephen Boyd -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH 2/8] tty: serial: fsl_lpuart: support suspend/resume

2016-06-20 Thread Stephen Boyd
On 06/13, Stefan Agner wrote: > > > On June 13, 2016 5:18:19 PM PDT, Bhhuvanchandra DV > wrote: > >Hi Shawn, > > > >On 06/11/2016 02:03 PM, Shawn Guo wrote: > > > >> On Thu, Jun 09, 2016 at 08:40:33PM +0530, Bhuvanchandra DV wrote: > >>> From: Stefan Agner > >>> > >>> In order to allow wake su

Re: [PATCH 1/8] arm64: dts: db820c: add basic board support

2016-06-20 Thread Stephen Boyd
On 06/20/2016 01:01 PM, Srinivas Kandagatla wrote: > This patch adds apq8096 db820c basic support with serial port. > > Signed-off-by: Srinivas Kandagatla > --- > arch/arm64/boot/dts/qcom/Makefile| 2 +- > arch/arm64/boot/dts/qcom/apq8096-db820c.dts | 21 + > arch/ar

Re: [PATCH v2 2/2] clk: vt8500: rework wm8650_find_pll_bits()

2016-06-20 Thread Stephen Boyd
On 06/08, Roman Volkov wrote: > From: Roman Volkov > > PLL clock on WM8650 is calculated in the following way: > > M * parent [O1] => / P [O2] => / D [O3] > > Where O2 is 600MHz >= (M * parent) / P >= 300MHz. > > Current algorithm does not met this requirement, so that the > function may retur

Re: [PATCH v2 1/2] clk: vt8500: fix gcc-4.9 warnings

2016-06-20 Thread Stephen Boyd
On 06/08, Roman Volkov wrote: > From: Arnd Bergmann > > This fixes some false positive warnings we get with older compiler > versions: > > clk-vt8500.c: In function ‘wm8650_find_pll_bits’: > clk-vt8500.c:430:12: ‘best_div2’ may be used uninitialized in this function > clk-vt8500.c:429:12: ‘best_

Re: [PATCH 1/1] clk: Remove unused variable

2016-06-20 Thread Stephen Boyd
On 06/07, Lee Jones wrote: > Signed-off-by: Lee Jones > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [RESEND][PATCH] clk: fixed-factor: set CLK_SET_RATE_PARENT

2016-06-20 Thread Stephen Boyd
On 06/13, Jongsung Kim wrote: > Without CLK_SET_RATE_PARENT-flag set, clk_factor_round_rate() just > returns the current frequency. A fixed-factor-clock initialzed via > of_fixed_factor_clk_set() (ie, by device-tree) can't have the flag > set. It can be problematic when the parent of a fixed-factor

Re: [PATCH v2 04/15] clk: sunxi-ng: Add fixed factor clock support

2016-06-20 Thread Stephen Boyd
On 06/07, Maxime Ripard wrote: > + > +#include > + > +#include "ccu_common.h" > + > +struct ccu_fixed_factor { > + u16 div; > + u16 mult; > + > + struct ccu_common common; Does this use the common structure although we have no usage for th

Re: [PATCH 1/3] clk: mdm9615: Add support for MDM9615 Clock Controllers

2016-06-20 Thread Stephen Boyd
On 06/17, Neil Armstrong wrote: > In order to support the Qualcomm MDM9615 SoC, add support for > the Global and LPASS Clock Controllers. > > Signed-off-by: Neil Armstrong > --- > drivers/clk/qcom/Kconfig | 17 + > drivers/clk/qcom/Makefile |2 + > drivers/clk/qcom/gcc-mdm9615.c

Re: [PATCH] clk: correct comments for __clk_determine_rate

2016-06-20 Thread Stephen Boyd
On 06/13, Peng Fan wrote: > Correct comments for __clk_determine_rate. > > Signed-off-by: Peng Fan > Cc: Michael Turquette > Cc: Stephen Boyd > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH 1/3] clk: Add new function of_clk_is_provider()

2016-06-20 Thread Stephen Boyd
(Please don't top post) On 06/20, Ricardo Ribalda Delgado wrote: > Hi Stephen > > When the device tree is populated or when an overlay is added, all its > nodes have the flag OF_POPULATED set. The flag is enabled recursively > in > of_platform_bus_create->of_platform_device_create_pdata() > So we

Re: [PATCH v2 13/15] clk: sunxi-ng: Add N-K-M-P factor clock

2016-06-20 Thread Stephen Boyd
On 06/07, Maxime Ripard wrote: > diff --git a/drivers/clk/sunxi-ng/ccu_nkmp.c b/drivers/clk/sunxi-ng/ccu_nkmp.c > new file mode 100644 > index ..9f2b98e19dc9 > --- /dev/null > +++ b/drivers/clk/sunxi-ng/ccu_nkmp.c > @@ -0,0 +1,167 @@ > +/* > + * Copyright (C) 2016 Maxime Ripard > + * Ma

Re: [PATCH v2 00/15] clk: sunxi: introduce "modern" clock support

2016-06-20 Thread Stephen Boyd
On 06/07, Maxime Ripard wrote: > > The current code has been tested on the H3 and an Orange Pi PC, > including making sure that MMC still works, so the general approach > seems ok. > > Let me know what you think, Overall this looks pretty good. Thanks for taking the time to rework the driver. T

[PATCH] clk: qcom: Remove gcc_aggre1_pnoc_ahb_clk from msm8996

2016-06-21 Thread Stephen Boyd
This clk is critical to operation of the SoC and should never be turned off. Furthermore, there are no consumers of this clk so let's just delete it so things like eMMC work. Reported-by: Srinivas Kandagatla Signed-off-by: Stephen Boyd --- drivers/clk/qcom/gcc-msm8996.c

Re: [PATCH 1/2] PM / OPP: compatible is an optional property

2016-09-22 Thread Stephen Boyd
On 09/21/2016 02:32 AM, Viresh Kumar wrote: > It was never compulsory to have a compatible string in the OPP table. > Fix the documentation to mark it optional. > > Also update its description a bit. > > Signed-off-by: Viresh Kumar > --- Why? I'd prefer the compatible string to be required so we

Re: [PATCH] clk: change the type of clk_hw_onecell_data.num to unsigned int

2016-09-23 Thread Stephen Boyd
On 09/23, Masahiro Yamada wrote: > The "num" is the number of clk_hw entries in the structure, so > "unsigned int" would be a better fit. (size_t looks like data > size we count by byte.) > > Besides, struct clk_onecell_data already uses unsigned int for > "clk_num". > > Signed-off-by: Masahiro

Re: [PATCH v3 1/3] clk: mvebu: fix setting unwanted flags in CP110 gate clock

2016-09-23 Thread Stephen Boyd
On 09/21, Marcin Wojtas wrote: > Armada CP110 system controller comprises its own routine responsble > for registering gate clocks. Among others 'flags' field in > struct clk_init_data was not set, using a random values, which > may cause an unpredicted behavior. > > This patch fixes the problem b

Re: [PATCH v3 2/3] clk: mvebu: dynamically allocate resources in Armada CP110 system controller

2016-09-23 Thread Stephen Boyd
On 09/21, Marcin Wojtas wrote: > Original commit, which added support for Armada CP110 system controller > used global variables for storing all clock information. It worked > fine for Armada 7k SoC, with single CP110 block. After dual-CP110 Armada 8k > was introduced, the data got overwritten and

Re: [PATCH v3 3/3] clk: mvebu: migrate CP110 system controller to clk_hw API and registration

2016-09-23 Thread Stephen Boyd
On 09/21, Marcin Wojtas wrote: > @@ -203,80 +202,75 @@ static int cp110_syscon_clk_probe(struct > platform_device *pdev) > if (ret) > return ret; > > - cp110_clks = devm_kcalloc(&pdev->dev, sizeof(struct clk *), > - CP110_CLK_NUM, GFP_KERNEL)

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

2016-09-23 Thread Stephen Boyd
On 09/20, Yang Ling wrote: > This patch adds clock support to Loongson1C SoC. > > Signed-off-by: Yang Ling > > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH V1 1/3] clk: Loongson1: Refactor Loongson1 clock

2016-09-23 Thread Stephen Boyd
On 09/19, Keguang Zhang wrote: > From: Kelvin Cheung > > Factor out the common functions into loongson1/clk.c > to support both Loongson1B and Loongson1C. And, put > the rest into loongson1/clk-loongson1b.c. > > Signed-off-by: Kelvin Cheung > > --- Applied to clk-next -- Qualcomm Innovation

Re: [PATCH v3 3/3] clk: mvebu: migrate CP110 system controller to clk_hw API and registration

2016-09-23 Thread Stephen Boyd
On 09/24, Marcin Wojtas wrote: > Hi Stephen, > > 2016-09-23 23:47 GMT+02:00 Stephen Boyd : > > On 09/21, Marcin Wojtas wrote: > >> @@ -203,80 +202,75 @@ static int cp110_syscon_clk_probe(struct > >> platform_device *pdev) > >>

Re: [PATCH] pinctrl: qcom: fix masking of pinmux functions

2016-09-25 Thread Stephen Boyd
Now I'm confused how it ever worked but agreed, the code looks wrong. Reviewed-by: Stephen Boyd > --- > drivers/pinctrl/qcom/pinctrl-msm.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c > b/drivers/pinctrl

Re: [PATCH v2 4/4] PM / AVS: rockchip-cpu-avs: add driver handling Rockchip cpu avs

2016-09-27 Thread Stephen Boyd
On 09/26, Heiko Stuebner wrote: > Am Montag, 26. September 2016, 09:25:11 CEST schrieb Viresh Kumar: > > On 12-09-16, 14:55, Stephen Boyd wrote: > > > On 08/29, Viresh Kumar wrote: > > > > On 18-08-16, 16:52, Finlye Xiao wrote: > > > > > +static int roc

Re: [PATCH] spmi: pmic-arb: Return an error code if sanity check fails

2016-09-27 Thread Stephen Boyd
On 09/26, Christophe JAILLET wrote: > If the test 'if (channel > 5)' is true, then we will return 'err' which > is known to be 0 at this point. > Return -EINVAL instead. > > Signed-off-by: Christophe JAILLET > --- Reviewed-by: Stephen Boyd Looks right

Re: [PATCH v3 10/22] usb: chipidea: Consolidate extcon notifiers

2016-09-06 Thread Stephen Boyd
On Sun, Sep 4, 2016 at 7:39 PM, Peter Chen wrote: > On Fri, Sep 02, 2016 at 06:03:06PM -0700, Stephen Boyd wrote: >> On Thu, Sep 1, 2016 at 8:17 PM, Peter Chen wrote: >> > On Wed, Aug 31, 2016 at 05:40:24PM -0700, Stephen Boyd wrote: >> >> >> >

Re: [PATCH v6 1/2] clk: uniphier: add core support code for UniPhier clock driver

2016-09-06 Thread Stephen Boyd
On 09/05, Masahiro Yamada wrote: > 2016-08-30 3:22 GMT+09:00 Stephen Boyd : > > On 08/29, Masahiro Yamada wrote: > >> I tried this, but it did not work. > >> > >> To make dev_get_regmap() work, > >> the parent device needs to call dev_regmap_init_m

Re: [PATCH] clk: meson-gxbb: Export PWM related clocks for DT

2016-09-06 Thread Stephen Boyd
On 09/03, Neil Armstrong wrote: > > > Le 22/08/2016 14:49, Neil Armstrong a écrit : > > Add the PWM related clocks in order to be referenced as PWM source > > clocks. > > > > Signed-off-by: Neil Armstrong > > --- > > drivers/clk/meson/gxbb.h | 6 +++--- > > include/dt-bindings/clo

Re: [PATCH] clk: meson-gxbb: Export PWM related clocks for DT

2016-09-06 Thread Stephen Boyd
On 08/22, Neil Armstrong wrote: > Add the PWM related clocks in order to be referenced as PWM source > clocks. > > Signed-off-by: Neil Armstrong > --- Acked-by: Stephen Boyd With some more thought, it should go through whatever tree takes the dts changes. Conflicts in the

Re: [PATCH] MAINTAINERS: Add section for Renesas clock drivers

2016-09-06 Thread Stephen Boyd
On 08/31, Geert Uytterhoeven wrote: > Add a section for Renesas clock drivers, as found on Renesas ARM SoCs, > and list myself as the maintainer. > > Signed-off-by: Geert Uytterhoeven > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Founda

Re: [PATCH v4 1/2] ARM: dts: Add MDM9615 dtsi

2016-09-07 Thread Stephen Boyd
On 09/03, Neil Armstrong wrote: > In order to support the Qualcomm MDM9615 SoC, add the SoC dtsi. > > Signed-off-by: Neil Armstrong > --- Reviewed-by: Stephen Boyd -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH v3 0/4] clk: bcm2835: critical clocks and parent selection

2016-09-07 Thread Stephen Boyd
On 09/07, Martin Sperl wrote: > > > On 01.06.2016, at 21:05, Eric Anholt wrote: > > > > I figured out another critical clock (patch 3), but didn't use the > > CLK_IS_CRITICAL flag since I want to just protect whatever clock > > happens to be the parent (there are #ifdefs in the firmware indicati

Re: [PATCH] ARM: qcom_defconfig: Fix MDM9515 LCC and GCC config

2016-09-07 Thread Stephen Boyd
On 09/07, Neil Armstrong wrote: > Correct prefix is MDM instead of MSM. > > Fixes: 8aa788d3e59a ("ARM: configs: qualcomm: Add MDM9615 missing defconfigs") > Signed-off-by: Neil Armstrong > --- Reviewed-by: Stephen Boyd -- Qualcomm Innovation Center, Inc. is a membe

Re: [PATCH 3/7] clk: gxbb: expose spifc clock

2016-09-07 Thread Stephen Boyd
On 09/07, Jerome Brunet wrote: > SPI clock is needed for the spifc driver, expose to DT > (and comment out in the clk driver) > > Signed-off-by: Jerome Brunet > --- Acked-by: Stephen Boyd -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundatio

[PATCH v4 00/22] Support qcom's HSIC USB and rewrite USB2 HS support

2016-09-07 Thread Stephen Boyd
1-git-send-email-tim.b...@sonymobile.com [3] https://git.linaro.org/people/stephen.boyd/linux.git/shortlog/refs/heads/usb-hsic-8074 Stephen Boyd (22): of: device: Support loading a module with OF based modalias of: device: Export of_device_{get_modalias,uvent_modalias} to modules usb: ulpi: Support de

[PATCH v4 07/22] usb: chipidea: Notify events when switching host mode

2016-09-07 Thread Stephen Boyd
o any wrapper specific things after the device is stopped. So when we stop the host role, send the stopped event. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/host.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/chipidea/hos

[PATCH v4 08/22] usb: chipidea: Remove locking in ci_udc_start()

2016-09-07 Thread Stephen Boyd
Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/udc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index 065f5d97aa67..f16be4710cdb 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/udc.c

[PATCH v4 01/22] of: device: Support loading a module with OF based modalias

2016-09-07 Thread Stephen Boyd
ed to request it with the OF based modalias instead. Add a common function that allows anyone to request a module with the OF based modalias. Cc: Rob Herring Cc: Signed-off-by: Stephen Boyd --- drivers/of/device.c | 23 +++ include/linux/of_device.h | 6 ++ 2

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