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

From: Jonathan Cameron

Date: Sat Nov 28 2026 - 15:12:48 EST


On Tue, 24 Nov 2026 12:39:45 +0200
Andy Shevchenko <andriy.shevchenko@xxxxxxxxx> wrote:

> 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.
>
It is only going to fail if we have corrupted DT so I don't think it really matters
much. It is always nice to get failure cases out of the way if we can detect
them early though so if respinning move it up as Andy suggests - otherwise don't
bother.

This series looks fine to me. I'm just waiting on a dt review.

Jonathan