Re: [PATCH v3 1/2] misc: sram: Move probe of sram subsystem

From: Arnd Bergmann
Date: Tue Apr 09 2024 - 08:10:34 EST


On Tue, Apr 9, 2024, at 14:06, Pascal FONTAIN wrote:
> From: Pascal Fontain <pascal.fontain@xxxxxxxxxxxxx>
>
> The sram subsystem might use the dma-buf subsystem which only gets
> initialized in subsys_initcall phase. Because of this we move the sram
> initcall into the device phase.
>
> Signed-off-by: Pascal Fontain <pascal.fontain@xxxxxxxxxxxxx>

This does not look safe unless you check all users of the sram
driver to ensure they are not needed early and they can handle
deferred probing.

Arnd