On Tue, 29 Aug 2017, Manuel Bouyer wrote:
But it depends on the order in which the devices are probed/attached, isn't it ?
The MD FDT code hooks up the powerdown handler very early, in initarm: https://nxr.netbsd.org/xref/src/sys/arch/evbarm/fdt/fdt_machdep.c#392