Re: [PATCH v5 4/4] iio: magnetometer: mmc5633: Add mount matrix support

From: Andy Shevchenko

Date: Tue Nov 24 2026 - 05:39:58 EST


On Tue, Nov 24, 2026 at 10:46:32AM +0100, Gerard Marull-Paretas wrote:
> Read the mount matrix from the firmware and expose it, so that user
> space can account for how the sensor is oriented on the board.

...

> fsleep(MMC5633_POWER_ON_US);
>
> + ret = iio_read_mount_matrix(dev, &data->orientation);
> + if (ret)
> + return dev_err_probe(dev, ret, "Failed to read mount matrix\n");

Thinking about this more, maybe slightly better to check it before touching
the regulators? No need to resend until specifically asked, let's wait what
Jonathan says about this.

--
With Best Regards,
Andy Shevchenko