Message ID | 20220816211519.2175022-1-brood@curbellmedical.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v2] Input: pixcir_i2c_ts - lengthen reset pulse to touchscreen controller | expand |
diff --git a/drivers/input/touchscreen/pixcir_i2c_ts.c b/drivers/input/touchscreen/pixcir_i2c_ts.c index dc148b4bed74..4af4b9016c94 100644 --- a/drivers/input/touchscreen/pixcir_i2c_ts.c +++ b/drivers/input/touchscreen/pixcir_i2c_ts.c @@ -222,7 +222,7 @@ static void pixcir_reset(struct pixcir_i2c_ts_data *tsdata) { if (!IS_ERR_OR_NULL(tsdata->gpio_reset)) { gpiod_set_value_cansleep(tsdata->gpio_reset, 1); - ndelay(100); /* datasheet section 1.2.3 says 80ns min. */ + usleep_range(500, 1000); /* datasheet section 1.2.3 says 80ns min. */ gpiod_set_value_cansleep(tsdata->gpio_reset, 0); /* wait for controller ready. 100ms guess. */ msleep(100);