Re: [PATCH 09/12] iio: light: rohm-bu27034: Fix infinite delay on error

From: Matti Vaittinen

Date: Tue Aug 11 2026 - 05:09:24 EST


On 10/08/2026 23:09, Andy Shevchenko wrote:
On Mon, Aug 10, 2026 at 10:54:04AM +0300, Matti Vaittinen wrote:

When reading an integration-time fails, the code will use error code to
compute the sleep time.

Fix this by using the smallest integration time as a default if
reading fails.

...

+#define BU27034_INT_TIME_MIN 55000

#define BU27034_INT_TIME_US_MIN (55 * USEC_PER_MSEC)

Yes. That looks better, thanks.

--
Matti Vaittinen
Linux kernel developer at ROHM Semiconductors
Oulu Finland

~~ When things go utterly wrong vim users can always type :help! ~~