Re: [PATCH] memory: jz4780-nemc: publish drvdata before creating children

From: Pengpeng Hou

Date: Wed Dec 02 2026 - 22:52:22 EST


Hi Krzysztof,

You're right that I combined two different changes. The children are
created individually with of_platform_device_create(); that doesn't
set OF_POPULATED_BUS on the parent. My of_platform_depopulate() call
isn't the inverse of that registration.

The drvdata ordering is separate: a child can probe during device
registration, before the parent reaches platform_set_drvdata(). My
evidence for that ordering is source inspection, not a failing board
test. I'll drop the teardown change rather than claim it fixes removal.

Thanks,
Pengpeng