Skip to content

Commit a3a06ea

Browse files
jlabundyLee Jones
authored andcommitted
mfd: iqs62x: Increase interrupt handler return delay
The time the device takes to deassert its RDY output following an I2C stop condition scales with the core clock frequency. To prevent level-triggered interrupts from being reasserted after the interrupt handler returns, increase the time before returning to account for the worst-case delay (~90 us) plus margin. Signed-off-by: Jeff LaBundy <jeff@labundy.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent f0c7112 commit a3a06ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mfd/iqs62x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ static irqreturn_t iqs62x_irq(int irq, void *context)
533533
* ensure the device's RDY output has been deasserted by the time the
534534
* interrupt handler returns.
535535
*/
536-
usleep_range(50, 100);
536+
usleep_range(150, 200);
537537

538538
return IRQ_HANDLED;
539539
}

0 commit comments

Comments
 (0)