[PATCH v6 5/7] gpio: aspeed: Change the macro to support deferred probe

Andrew Jeffery andrew at codeconstruct.com.au
Mon Sep 30 14:37:39 AEST 2024


On Fri, 2024-09-27 at 19:17 +0800, Billy Tsai wrote:
> Use module_platform_driver() to replace module_platform_driver_probe().
> The former utilizes platform_driver_register(), which allows the driver to
> defer probing when it doesn't acquire the necessary resources due to probe
> order. In contrast, the latter uses __platform_driver_probe(), which
> includes the comment "Note that this is incompatible with deferred
> probing." Since our GPIO driver requires access to the clock resource, the
> former is more suitable.
> 
> Signed-off-by: Billy Tsai <billy_tsai at aspeedtech.com>

Seems okay to make it less of a deviant, though maybe we should fix the
sgpio drive as well? Anyway:

Reviewed-by: Andrew Jeffery <andrew at codeconstruct.com.au>

Andrew


More information about the Linux-aspeed mailing list