Re: [PATCH 2/2] gpio: mmio: don't use legacy GPIO chip setters
From: Mark Brown
Date: Wed Jun 18 2025 - 12:54:18 EST
On Wed, Jun 18, 2025 at 03:02:07PM +0200, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
>
> We've converted this driver to using the new GPIO line value setters but
> missed the instances where the legacy callback is accessed directly using
> the function pointer. This will lead to a NULL-pointer dereference as
> this pointer is no longer populated. The issue needs fixing locally as
> well as in the already converted previously users of gpio-mmio.
Tested-by: Mark Brown <broonie@xxxxxxxxxx>
This fixes boot breakage in -next on at least the i.MX6 platforms I
have, I'm also seeing similar issues on a bunch of i.MX8 systems which
look to be due to the same issue but didn't verify them yet. I'll let
you know if it looks like something else.
Attachment:
signature.asc
Description: PGP signature