[PATCH v5 2/4] iio: magnetometer: mmc5633: Reference the datasheet for the SET/RESET wait
From: Gerard Marull-Paretas
Date: Tue Nov 24 2026 - 04:50:32 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.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
Signed-off-by: Gerard Marull-Paretas <gerard@xxxxxxxxxxx>
---
drivers/iio/magnetometer/mmc5633.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/drivers/iio/magnetometer/mmc5633.c b/drivers/iio/magnetometer/mmc5633.c
index b651f01e1b5d..8142ba741ddc 100644
--- a/drivers/iio/magnetometer/mmc5633.c
+++ b/drivers/iio/magnetometer/mmc5633.c
@@ -63,6 +63,12 @@
#define MMC5633_CTRL1_BW_MASK GENMASK(1, 0)
+/*
+ * tSR, minimum time between SET or RESET and other operations, per
+ * Operating Timing Diagram section in
+ * - MMC5603NJ datasheet (Rev. B, page 15)
+ * - MMC5633NJL datasheet (Rev. A, page 23)
+ */
#define MMC5633_WAIT_SET_RESET_US (1 * USEC_PER_MSEC)
#define MMC5633_HDR_CTRL0_MEAS_M 0x01
@@ -144,10 +150,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