am335x boneblack memory size and dtb: is memory live patched?

2015-01-16 Thread Paolo Pisati
Lately i've been trying to track down a panic i hit when i pass the mem=256M option to a 3.16 kernel on a bleaglebone black, and i noticed this: dtc -I dtb ./arch/arm/boot/dts/am335x-boneblack.dtb ... memory { device_type = memory; reg = 0x8000

Re: [PATCH] ASoC: OMAP: mcbsp: ensure that CLKX and CLKR are not used as ouput pins when they are used as input clock for the SRG.

2015-01-16 Thread Peter Ujfalusi
On 01/16/2015 12:28 AM, Thomas Niederprüm wrote: This patch fixes faulty behaviour in a setup where the input clock for the SRG is fed through the CLKR pin but the McBSP is configured to be master (SND_SOC_DAIFMT_CBS_CFS). In that case of course CLKR must not be configured as output pin.

Re: [PATCH] ASoC: OMAP: mcbsp: ensure that CLKX and CLKR are not used as ouput pins when they are used as input clock for the SRG.

2015-01-16 Thread Jarkko Nikula
Hi On Thu, Jan 15, 2015 at 11:28:21PM +0100, Thomas Niederprüm wrote: This patch fixes faulty behaviour in a setup where the input clock for the SRG is fed through the CLKR pin but the McBSP is configured to be master (SND_SOC_DAIFMT_CBS_CFS). In that case of course CLKR must not be

Re: [PATCH] ASoC: OMAP: mcbsp: ensure that CLKX and CLKR are not used as ouput pins when they are used as input clock for the SRG.

2015-01-16 Thread Thomas Niederprüm
Am Freitag, den 16.01.2015, 11:15 +0200 schrieb Peter Ujfalusi: On 01/16/2015 12:28 AM, Thomas Niederprüm wrote: This patch fixes faulty behaviour in a setup where the input clock for the SRG is fed through the CLKR pin but the McBSP is configured to be master (SND_SOC_DAIFMT_CBS_CFS). In

Re: [PATCH v7 1/4] Documentation: dt: add common bindings for hwspinlock

2015-01-16 Thread Mark Rutland
On Fri, Jan 16, 2015 at 06:09:00AM +, Ohad Ben-Cohen wrote: On Thu, Jan 15, 2015 at 4:42 PM, Rob Herring robherri...@gmail.com wrote: On Thu, Jan 15, 2015 at 7:55 AM, Mark Rutland mark.rutl...@arm.com wrote: On Thu, Jan 15, 2015 at 01:52:01PM +, Mark Rutland wrote: On Wed, Jan 14,

Re: [PATCH v7 1/4] Documentation: dt: add common bindings for hwspinlock

2015-01-16 Thread Mark Rutland
On Thu, Jan 15, 2015 at 02:42:23PM +, Rob Herring wrote: On Thu, Jan 15, 2015 at 7:55 AM, Mark Rutland mark.rutl...@arm.com wrote: On Thu, Jan 15, 2015 at 01:52:01PM +, Mark Rutland wrote: On Wed, Jan 14, 2015 at 08:58:18PM +, Suman Anna wrote: This patch adds the generic

Re: [PATCH] ASoC: OMAP: mcbsp: ensure that CLKX and CLKR are not used as ouput pins when they are used as input clock for the SRG.

2015-01-16 Thread Peter Ujfalusi
On 01/16/2015 12:15 PM, Thomas Niederprüm wrote: Am Freitag, den 16.01.2015, 11:15 +0200 schrieb Peter Ujfalusi: On 01/16/2015 12:28 AM, Thomas Niederprüm wrote: This patch fixes faulty behaviour in a setup where the input clock for the SRG is fed through the CLKR pin but the McBSP is

Re: [PATCH] ASoC: OMAP: mcbsp: ensure that CLKX and CLKR are not used as ouput pins when they are used as input clock for the SRG.

2015-01-16 Thread Thomas Niederprüm
Am Freitag, den 16.01.2015, 14:42 +0200 schrieb Peter Ujfalusi: On 01/16/2015 12:15 PM, Thomas Niederprüm wrote: Am Freitag, den 16.01.2015, 11:15 +0200 schrieb Peter Ujfalusi: On 01/16/2015 12:28 AM, Thomas Niederprüm wrote: This patch fixes faulty behaviour in a setup where the input

[patch-net-next v3 1/2] net: ethernet: cpsw: unroll IRQ request loop

2015-01-16 Thread Felipe Balbi
This patch is in preparation for a nicer IRQ handling scheme where we use different IRQ handlers for each IRQ line (as it should be). Later, we will also drop IRQs offset 0 and 3 because they are always disabled in this driver. Signed-off-by: Felipe Balbi ba...@ti.com --- no changes

[patch-net-next v3 2/2] net: ethernet: cpsw: don't requests IRQs we don't use

2015-01-16 Thread Felipe Balbi
CPSW never uses RX_THRESHOLD or MISC interrupts. In fact, they are always kept masked in their appropriate IRQ Enable register. Instead of allocating an IRQ that never fires, it's best to remove that code altogether and let future patches implement it if anybody needs those. Signed-off-by:

Re: Regression with legacy IRQ numbers caused by 9a1091ef0017

2015-01-16 Thread Tony Lindgren
* Russell King - ARM Linux li...@arm.linux.org.uk [150115 09:22]: On Thu, Jan 15, 2015 at 07:28:39AM -0800, Tony Lindgren wrote: * Russell King - ARM Linux li...@arm.linux.org.uk [150115 02:53]: I don't think we've proven a link there. While you're right that it causes the wrong

Re: Regression with legacy IRQ numbers caused by 9a1091ef0017

2015-01-16 Thread Russell King - ARM Linux
On Fri, Jan 16, 2015 at 08:21:20AM -0800, Tony Lindgren wrote: * Russell King - ARM Linux li...@arm.linux.org.uk [150115 09:22]: On Thu, Jan 15, 2015 at 07:28:39AM -0800, Tony Lindgren wrote: * Russell King - ARM Linux li...@arm.linux.org.uk [150115 02:53]: I don't think we've proven a

Re: Regression with legacy IRQ numbers caused by 9a1091ef0017

2015-01-16 Thread Tony Lindgren
* Russell King - ARM Linux li...@arm.linux.org.uk [150116 08:33]: On Fri, Jan 16, 2015 at 08:21:20AM -0800, Tony Lindgren wrote: * Russell King - ARM Linux li...@arm.linux.org.uk [150115 09:22]: On Thu, Jan 15, 2015 at 07:28:39AM -0800, Tony Lindgren wrote: * Russell King - ARM Linux

Re: Regression with legacy IRQ numbers caused by 9a1091ef0017

2015-01-16 Thread Felipe Balbi
On Fri, Jan 16, 2015 at 08:41:06AM -0800, Tony Lindgren wrote: * Russell King - ARM Linux li...@arm.linux.org.uk [150116 08:33]: On Fri, Jan 16, 2015 at 08:21:20AM -0800, Tony Lindgren wrote: * Russell King - ARM Linux li...@arm.linux.org.uk [150115 09:22]: On Thu, Jan 15, 2015 at

Re: Regression with legacy IRQ numbers caused by 9a1091ef0017

2015-01-16 Thread Arnd Bergmann
On Thursday 15 January 2015 07:37:48 Tony Lindgren wrote: * Marc Zyngier marc.zyng...@arm.com [150115 06:46]: On Thu, Jan 15 2015 at 2:27:56 pm GMT, Arnd Bergmann a...@arndb.de wrote: On Thursday 15 January 2015 13:42:57 Marc Zyngier wrote: Probably there is a workable strategy, but my

Re: Regression with legacy IRQ numbers caused by 9a1091ef0017

2015-01-16 Thread Russell King - ARM Linux
On Fri, Jan 16, 2015 at 08:41:06AM -0800, Tony Lindgren wrote: * Russell King - ARM Linux li...@arm.linux.org.uk [150116 08:33]: I would still like to understand /why/ enabling preempt causes the error. Changing the preempt configuration really should not change what happens on the bus.

Re: Regression with legacy IRQ numbers caused by 9a1091ef0017

2015-01-16 Thread Marc Zyngier
On 16/01/15 16:56, Arnd Bergmann wrote: On Thursday 15 January 2015 07:37:48 Tony Lindgren wrote: * Marc Zyngier marc.zyng...@arm.com [150115 06:46]: On Thu, Jan 15 2015 at 2:27:56 pm GMT, Arnd Bergmann a...@arndb.de wrote: On Thursday 15 January 2015 13:42:57 Marc Zyngier wrote: Probably

Re: Regression with legacy IRQ numbers caused by 9a1091ef0017

2015-01-16 Thread Tony Lindgren
* Russell King - ARM Linux li...@arm.linux.org.uk [150116 09:25]: On Fri, Jan 16, 2015 at 08:41:06AM -0800, Tony Lindgren wrote: * Russell King - ARM Linux li...@arm.linux.org.uk [150116 08:33]: I would still like to understand /why/ enabling preempt causes the error. Changing the preempt

Re: [PATCH v7 1/4] Documentation: dt: add common bindings for hwspinlock

2015-01-16 Thread Suman Anna
On 01/16/2015 04:19 AM, Mark Rutland wrote: On Thu, Jan 15, 2015 at 02:42:23PM +, Rob Herring wrote: On Thu, Jan 15, 2015 at 7:55 AM, Mark Rutland mark.rutl...@arm.com wrote: On Thu, Jan 15, 2015 at 01:52:01PM +, Mark Rutland wrote: On Wed, Jan 14, 2015 at 08:58:18PM +, Suman Anna

Re: [v3,15/21] ARM: exynos4/5: convert pmu wakeup to stacked domains

2015-01-16 Thread Marc Zyngier
Hi Pankaj, On 15/01/15 06:41, Pankaj Dubey wrote: +CC: Thomas Abraham thomas...@samsung.com Hi Mark, On Monday 12 January 2015 11:56 PM, Marc Zyngier wrote: Exynos has been (ab)using the gic_arch_extn to provide wakeup from suspend, and it makes a lot of sense to convert this code to

[PATCH 1/1] gpio: omap: Fix bad device access with setup_irq()

2015-01-16 Thread Tony Lindgren
Similar to omap_gpio_irq_type() let's make sure that the GPIO is usable as an interrupt if the platform init code did not call gpio_request(). Otherwise we can get invalid device access after setup_irq(): WARNING: CPU: 0 PID: 1 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x214/0x340()

Re: Regression with legacy IRQ numbers caused by 9a1091ef0017

2015-01-16 Thread Tony Lindgren
* Tony Lindgren t...@atomide.com [150116 09:36]: * Russell King - ARM Linux li...@arm.linux.org.uk [150116 09:25]: On Fri, Jan 16, 2015 at 08:41:06AM -0800, Tony Lindgren wrote: * Russell King - ARM Linux li...@arm.linux.org.uk [150116 08:33]: I would still like to understand /why/

Re: [PATCH 1/1] gpio: omap: Fix bad device access with setup_irq()

2015-01-16 Thread Felipe Balbi
On Fri, Jan 16, 2015 at 02:50:50PM -0800, Tony Lindgren wrote: Similar to omap_gpio_irq_type() let's make sure that the GPIO is usable as an interrupt if the platform init code did not call gpio_request(). Otherwise we can get invalid device access after setup_irq(): WARNING: CPU: 0 PID: 1

Re: Regression with legacy IRQ numbers caused by 9a1091ef0017

2015-01-16 Thread Russell King - ARM Linux
On Fri, Jan 16, 2015 at 02:52:44PM -0800, Tony Lindgren wrote: * Tony Lindgren t...@atomide.com [150116 09:36]: * Russell King - ARM Linux li...@arm.linux.org.uk [150116 09:25]: So, the GPIO driver really needs fixing - and I'd suggest fixing it first, before fixing the DMA problem,

Re: [PATCH 1/5] mfd: tps65218: make INT[12] and STATUS registers volatile

2015-01-16 Thread Felipe Balbi
Hi, On Wed, Jan 14, 2015 at 09:07:17AM -0800, Tony Lindgren wrote: STATUS register can be modified by the HW, so we should bypass cache because of that. In the case of INT[12] registers, they are the ones that actually clear the IRQ source at the time they are read.

Re: Regression with legacy IRQ numbers caused by 9a1091ef0017

2015-01-16 Thread Tony Lindgren
* Russell King - ARM Linux li...@arm.linux.org.uk [150116 15:00]: On Fri, Jan 16, 2015 at 02:52:44PM -0800, Tony Lindgren wrote: * Tony Lindgren t...@atomide.com [150116 09:36]: * Russell King - ARM Linux li...@arm.linux.org.uk [150116 09:25]: So, the GPIO driver really needs fixing -

[GIT PULL 1/3] omap non-urgent fixes for v3.20

2015-01-16 Thread Tony Lindgren
The following changes since commit 97bf6af1f928216fd6c5a66e8a57bfa95a659672: Linux 3.19-rc1 (2014-12-20 17:08:50 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap tags/omap-for-v3.20/fixes-not-urgent-pt1 for you to fetch changes

[GIT PULL 3/3] omap device tree changes for v3.20

2015-01-16 Thread Tony Lindgren
The following changes since commit 97bf6af1f928216fd6c5a66e8a57bfa95a659672: Linux 3.19-rc1 (2014-12-20 17:08:50 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap tags/omap-for-v3.20/dt-pt1 for you to fetch changes up to

[GIT PULL 2/3] omap clean-up for v3.20

2015-01-16 Thread Tony Lindgren
The following changes since commit 97bf6af1f928216fd6c5a66e8a57bfa95a659672: Linux 3.19-rc1 (2014-12-20 17:08:50 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap tags/omap-for-v3.20/cleanup-pt1 for you to fetch changes up to

Re: [PATCH 1/1] gpio: omap: Fix bad device access with setup_irq()

2015-01-16 Thread santosh shilimkar
On 1/16/2015 2:50 PM, Tony Lindgren wrote: Similar to omap_gpio_irq_type() let's make sure that the GPIO is usable as an interrupt if the platform init code did not call gpio_request(). Otherwise we can get invalid device access after setup_irq(): I let Linus W comment on it but IIRC we chewed

Re: [PATCH v7 1/4] Documentation: dt: add common bindings for hwspinlock

2015-01-16 Thread Ohad Ben-Cohen
Mark, On Fri, Jan 16, 2015 at 12:17 PM, Mark Rutland mark.rutl...@arm.com wrote: The hwlock is a basic hardware primitive that allow synchronization between different processors in the system, which may be running Linux as well as other operating systems, and may have no other means of

Re: Regression with legacy IRQ numbers caused by 9a1091ef0017

2015-01-16 Thread Simon Horman
On Fri, Jan 16, 2015 at 05:23:05PM +, Marc Zyngier wrote: On 16/01/15 16:56, Arnd Bergmann wrote: On Thursday 15 January 2015 07:37:48 Tony Lindgren wrote: * Marc Zyngier marc.zyng...@arm.com [150115 06:46]: On Thu, Jan 15 2015 at 2:27:56 pm GMT, Arnd Bergmann a...@arndb.de wrote:

Re: [PATCH RESEND v8 1/2] clk: Make clk API return per-user struct clk instances

2015-01-16 Thread Stephen Boyd
On 01/12, Tomeu Vizoso wrote: Moves clock state to struct clk_core, but takes care to change as little API as possible. struct clk_hw still has a pointer to a struct clk, which is the implementation's per-user clk instance, for backwards compatibility. The struct clk that

Re: [PATCH 1/1] gpio: omap: Fix bad device access with setup_irq()

2015-01-16 Thread Tony Lindgren
* santosh shilimkar santosh.shilim...@oracle.com [150116 16:23]: On 1/16/2015 2:50 PM, Tony Lindgren wrote: Similar to omap_gpio_irq_type() let's make sure that the GPIO is usable as an interrupt if the platform init code did not call gpio_request(). Otherwise we can get invalid device access

Re: [PATCH RESEND v8 2/2] clk: Add floor and ceiling constraints to clock rates

2015-01-16 Thread Stephen Boyd
On 01/12, Tomeu Vizoso wrote: diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 7eddfd8..2793bd7 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -1013,8 +1015,8 @@ static unsigned long clk_core_round_rate_nolock(struct clk_core *clk, if (clk-ops-determine_rate) {