The gpio_get_value function of I2C/SPI GPIO expander may sleep thus this function call can not be called in a timer function. Signed-off-by: Alek Du <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>