[PATCH 3/5] imx_keypad: add PM support

Russell King - ARM Linux linux at arm.linux.org.uk
Fri May 21 15:22:07 EDT 2010


On Fri, May 21, 2010 at 01:12:41PM +0200, Eric Bénard wrote:
> +static int mxc_kpp_resume(struct platform_device *pdev)
> +{
> +	struct imx_keypad *keypad = platform_get_drvdata(pdev);
> +
> +	clk_enable(keypad->clk);
> +	if (device_may_wakeup(&pdev->dev)) {
> +		/* The irq routine already cleared KRIE if it was set */
> +	} else {
> +		enable_irq(keypad->irq);

What happens if an IRQ happens here?

> +		keypad->enabled = true;




More information about the linux-arm-kernel mailing list