* [PATCH] ARM: ux500: Fix PMU IRQ regression
@ 2018-03-07 13:20 Linus Walleij
2018-03-07 15:42 ` Arnd Bergmann
0 siblings, 1 reply; 2+ messages in thread
From: Linus Walleij @ 2018-03-07 13:20 UTC (permalink / raw)
To: linux-arm-kernel
Commit 2b05f6ae1ee5 ("ARM: ux500: remove PMU IRQ bouncer")
deleted some code to bounce and work around the weird PMU
IRQs in the DB8500 ASIC, but did a semantic mistake:
since the auxdata was now unused, the call to
of_platform_populate() was removed, but this does not
work: the default platform population will only kick in
if .init_machine() is assigned NULL, and since the U8540
was still using the callback that was not the case.
Fix this by reinstating the call to of_platform_populate(),
but pass NULL as auxdata.
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Fixes: 2b05f6ae1ee5 ("ARM: ux500: remove PMU IRQ bouncer")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
ARM SoC folks: please pick this up directly for fixed if
Mark is OK with the fix. It'd be nice to have in v4.16 since
it is a boot regression.
---
arch/arm/mach-ux500/cpu-db8500.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch/arm/mach-ux500/cpu-db8500.c
index 7e5d7a083707..36cd23c8be9b 100644
--- a/arch/arm/mach-ux500/cpu-db8500.c
+++ b/arch/arm/mach-ux500/cpu-db8500.c
@@ -133,6 +133,9 @@ static void __init u8500_init_machine(void)
if (of_machine_is_compatible("st-ericsson,u8540"))
of_platform_populate(NULL, u8500_local_bus_nodes,
u8540_auxdata_lookup, NULL);
+ else
+ of_platform_populate(NULL, u8500_local_bus_nodes,
+ NULL, NULL);
}
static const char * stericsson_dt_platform_compat[] = {
--
2.14.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARM: ux500: Fix PMU IRQ regression
2018-03-07 13:20 [PATCH] ARM: ux500: Fix PMU IRQ regression Linus Walleij
@ 2018-03-07 15:42 ` Arnd Bergmann
0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2018-03-07 15:42 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Mar 7, 2018 at 2:20 PM, Linus Walleij <linus.walleij@linaro.org> wrote:
> Commit 2b05f6ae1ee5 ("ARM: ux500: remove PMU IRQ bouncer")
> deleted some code to bounce and work around the weird PMU
> IRQs in the DB8500 ASIC, but did a semantic mistake:
> since the auxdata was now unused, the call to
> of_platform_populate() was removed, but this does not
> work: the default platform population will only kick in
> if .init_machine() is assigned NULL, and since the U8540
> was still using the callback that was not the case.
>
> Fix this by reinstating the call to of_platform_populate(),
> but pass NULL as auxdata.
>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Cc: Will Deacon <will.deacon@arm.com>
> Fixes: 2b05f6ae1ee5 ("ARM: ux500: remove PMU IRQ bouncer")
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> ARM SoC folks: please pick this up directly for fixed if
> Mark is OK with the fix. It'd be nice to have in v4.16 since
> it is a boot regression.
Applied to fixes, thanks!
Arnd
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-07 15:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-07 13:20 [PATCH] ARM: ux500: Fix PMU IRQ regression Linus Walleij
2018-03-07 15:42 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).