[PATCH v4 2/4] iio: magnetometer: mmc5633: Reference the datasheet for the SET/RESET wait
From: Gerard Marull-Paretas
Date: Mon Nov 23 2026 - 15:26:28 EST
The 1 ms wait after a SET or RESET is tSR in the Operating Timing Diagram
section of both datasheets. Describe it where it is defined, with the
revision and page of each datasheet, in place of the comment at its use
that pointed at the datasheet without either.
Signed-off-by: Gerard Marull-Paretas <gerard@xxxxxxxxxxx>
---
drivers/iio/magnetometer/mmc5633.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/iio/magnetometer/mmc5633.c b/drivers/iio/magnetometer/mmc5633.c
index b651f01e1b5d..92a09316ccdc 100644
--- a/drivers/iio/magnetometer/mmc5633.c
+++ b/drivers/iio/magnetometer/mmc5633.c
@@ -63,6 +63,11 @@
#define MMC5633_CTRL1_BW_MASK GENMASK(1, 0)
+/*
+ * tSR, minimum time between SET or RESET and other operations, per MMC5603NJ
+ * datasheet (Rev. B, page 15) and MMC5633NJL datasheet (Rev. A, page 23),
+ * Operating Timing Diagram section.
+ */
#define MMC5633_WAIT_SET_RESET_US (1 * USEC_PER_MSEC)
#define MMC5633_HDR_CTRL0_MEAS_M 0x01
@@ -144,10 +149,6 @@ static int mmc5633_init(struct mmc5633_data *data)
if (ret)
return ret;
- /*
- * Minimum time interval between SET or RESET to other operations is
- * 1ms according to Operating Timing Diagram in datasheet.
- */
fsleep(MMC5633_WAIT_SET_RESET_US);
ret = regmap_write(data->regmap, MMC5633_REG_CTRL0, MMC5633_CTRL0_RESET);
--
2.45.2