Re: [PATCH 1/4] gpio: sa1100: register software node for GPIO controller
From: Dmitry Torokhov
Date: Thu Oct 29 2026 - 15:09:43 EST
Hi Arnd, Guenter,
On Thu, Oct 29, 2026 at 10:26:05AM +0100, Arnd Bergmann wrote:
> On Thu, Oct 29, 2026, at 05:23, Guenter Roeck wrote:
> > With this patch in the tree, the qemu "collie" emulation no longer works.
> > There is no console output.
...
> Hopefully Dmitry can spot an obvious fix for the regression, otherwise
> a revert is probably best so we can leave collie working in the LTS
> kernel and not spend much work on that.
sa1100_init_gpio() runs during init_IRQ(), before driver_init() sets up
swnode_kset, so software_node_register() crashed dereferencing a NULL
kset pointer before the console came up.
Only the GPIO IRQ setup needs to happen in init_IRQ(), so I posted a fix
deferring the software node and gpiochip registration to
postcore_initcall (verified with qemu collie):
https://lore.kernel.org/r/20261029-sa1100-swnode-fix-v1-1-112f4d83d191@xxxxxxxxx
Thanks.
--
Dmitry