[PATCH v8 2/6] iio: proximity: rfd77402: Align polling timeout with datasheet

Shrikant Raskar via B4 Relay posted 6 patches 1 week, 4 days ago
[PATCH v8 2/6] iio: proximity: rfd77402: Align polling timeout with datasheet
Posted by Shrikant Raskar via B4 Relay 1 week, 4 days ago
From: Shrikant Raskar <raskar.shree97@gmail.com>

Update the polling delay to use a 100 ms timeout, as specified
in the RFD77402 datasheet.

Signed-off-by: Shrikant Raskar <raskar.shree97@gmail.com>
---
 drivers/iio/proximity/rfd77402.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/iio/proximity/rfd77402.c b/drivers/iio/proximity/rfd77402.c
index 69cc1505b964..8f7debf0e61f 100644
--- a/drivers/iio/proximity/rfd77402.c
+++ b/drivers/iio/proximity/rfd77402.c
@@ -132,7 +132,11 @@ static int rfd77402_measure(struct i2c_client *client)
 			goto err;
 		if (ret & RFD77402_ICSR_RESULT)
 			break;
-		msleep(20);
+		/*
+		 * As per RFD77402 datasheet section '3.1.1 Single Measure',
+		 * the suggested timeout value for single measure is 100ms.
+		 */
+		msleep(10);
 	}
 
 	if (tries < 0) {

-- 
2.43.0
Re: [PATCH v8 2/6] iio: proximity: rfd77402: Align polling timeout with datasheet
Posted by Andy Shevchenko 1 week, 4 days ago
On Wed, Jan 28, 2026 at 11:21:49PM +0530, Shrikant Raskar via B4 Relay wrote:

> Update the polling delay to use a 100 ms timeout, as specified
> in the RFD77402 datasheet.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>

-- 
With Best Regards,
Andy Shevchenko