Re: [PATCH] ARM: cns3xxx: fix allmodconfig panic in pci driver

From: Arnd Bergmann
Date: Thu Sep 04 2014 - 16:33:15 EST


On Wednesday 03 September 2014, Xia Kaixu wrote:
> From: Xia Kaixu <kaixu.xia@xxxxxxxxxx>
>
> The kernel panic occurs when running an allmodconfig kernel on
> OMAP4460. The inicall "cns3xxx_pcie_init" does not check which
> hardware it's running on and just tries to access to its specific
> registers. Now call it from .init_late callback from the two
> machine descriptors.
>
> Signed-off-by: Xia Kaixu <kaixu.xia@xxxxxxxxxx>
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
> Cc: Anton Vorontsov <anton@xxxxxxxxxx>
> Cc: Felix Fietkau <nbd@xxxxxxxxxxx>
> Cc: Imre Kaloz <kaloz@xxxxxxxxxxx>
> Cc: linaro-kernel@xxxxxxxxxxxxxxxx
> Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
> ---
> arch/arm/mach-cns3xxx/cns3420vb.c | 1 +
> arch/arm/mach-cns3xxx/core.c | 1 +
> arch/arm/mach-cns3xxx/core.h | 9 +++++++++
> arch/arm/mach-cns3xxx/pcie.c | 3 +--
> 4 files changed, 12 insertions(+), 2 deletions(-)

I've applied this to next/fixes-non-critical now. I'm fairly confident
that this helps more than it can hurt, but not confident enough
to put it into 3.17 or stable for now.

It would be nice to get some testing from someone with
hardware access. If necessary, I'll revert the change or
do a fixup on top.

Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/