[PATCH 2/3] input: keyboad: imx: add snvs power key driver
Zhi Li
lznuaa at gmail.com
Wed May 13 07:35:09 PDT 2015
>> +static irqreturn_t imx_snvs_pwrkey_interrupt(int irq, void *dev_id)
>> +{
>> + struct platform_device *pdev = dev_id;
>> + struct pwrkey_drv_data *pdata = platform_get_drvdata(pdev);
>> + void __iomem *ioaddr = pdata->ioaddr;
>> + u32 lp_status;
>> +
>> + pm_wakeup_event(pdata->input->dev.parent, 0);
>> + lp_status = readl_relaxed(ioaddr + SNVS_LPSR_REG);
>> + if (lp_status & SNVS_LPSR_SPO)
>> + mod_timer(&pdata->check_timer, jiffies + msecs_to_jiffies(2));
>
> Why 2 and not 1 or 0?
>
I checked internal team about this. no special reason for that.
Just do debounce.
best regards
Frank Li
More information about the linux-arm-kernel
mailing list