Re: [PATCH] iio: accel: bmc150: Do not configure IRQ registers if no IRQ connected

From: Linus Walleij
Date: Fri Jan 09 2026 - 04:28:13 EST


On Thu, Jan 8, 2026 at 10:55 PM Marek Vasut <marek.vasut@xxxxxxxxxxx> wrote:

> On 6/21/25 10:14 PM, Hans de Goede wrote:
>
> Hello Hans,
>
> > IIO has separate interfaces for exporting channels which can be polled by
> > userspace and for triggers which is a more event driven interface.
> >
> > It should be possible to modify the driver to skip the trigger registration,
> > while keeping the channels. E.g. iio-sensor-proxy will then automaticallt
> > switch to polling in userspace.
> I wonder if this got fixed by this commit in the meantime:
>
> 3aa385a9c75c ("iio: accel: bmc150: Fix irq assumption regression")

I think so.

It was causing a NULL dereference for me, so I had to fix it.

Yours,
Linus Walleij