Re: [PATCH 3/4] iio: proximity: vl53l0x-i2c: Fix reset sequence

From: Andy Shevchenko

Date: Mon Jan 19 2026 - 13:22:46 EST


On Mon, Jan 19, 2026 at 06:19:57PM +0100, Petr Hodina via B4 Relay wrote:

> Fix the reset GPIO handling and power-up timing to better match the
> VL53L0X reset requirements.

...

> - usleep_range(3200, 5000);
> + usleep_range(5000, 6000);

> + usleep_range(5000, 6000);

> + usleep_range(5000, 6000);

Can you switch to fsleep() while at it?

...

> - data->reset_gpio = devm_gpiod_get_optional(&client->dev, "reset", GPIOD_OUT_HIGH);
> + data->reset_gpio = devm_gpiod_get_optional(&client->dev, "reset", GPIOD_OUT_LOW);
> if (IS_ERR(data->reset_gpio))
> return dev_err_probe(&client->dev, PTR_ERR(data->reset_gpio),
> "Cannot get reset GPIO\n");

Wondering if in a future change this can be converted to use reset-gpio driver
instead of poking GPIOs directly.

--
With Best Regards,
Andy Shevchenko