[RFC] ARM: dts: imx27-pdk: Add PMIC support

Russell King - ARM Linux linux at arm.linux.org.uk
Tue Apr 15 14:33:26 PDT 2014


On Tue, Apr 15, 2014 at 06:07:07PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam at freescale.com>
> 
> Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
> ---
> Hi,
> 
> I am sending it as RFC because I am getting the warning below.
> 
> Booting the non-dt kernel does not cause this warning.
> 
> Appreciate any comments/suggestions.

Quite simply, the driver is buggy.  You seem to be getting an interrupt
delivered to the thread right after the IRQ is requested:

        ret = request_threaded_irq(mc13xxx->irq, NULL, mc13xxx_irq_thread,
                        IRQF_ONESHOT | IRQF_TRIGGER_HIGH, "mc13xxx", mc13xxx);
        if (ret)
                return ret;

        mutex_init(&mc13xxx->lock);

and the thread tries to lock mc13xxx->lock.

There's nothing quite like initialising resources before using them...

-- 
FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly
improving, and getting towards what was expected from it.



More information about the linux-arm-kernel mailing list