From 7ee99a09682c7a290daaa44b74aa1f31d5807b96 Mon Sep 17 00:00:00 2001 From: Ziyuan Xu Date: Mon, 7 Jul 2025 16:22:05 +0800 Subject: [PATCH] spi: spi-rockchip-sfc: prefer asynchronous probing when CONFIG_ROCKCHIP_THUNDER_BOOT=y Save boot time about 5ms on rv1126b-evb2-v10-tb-400w board. Signed-off-by: Ziyuan Xu Change-Id: Ie70a3e96c88d71bbc78729cbc64ead792fe319fc --- drivers/spi/spi-rockchip-sfc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/spi/spi-rockchip-sfc.c b/drivers/spi/spi-rockchip-sfc.c index 3e767e30246f..500503c6338b 100644 --- a/drivers/spi/spi-rockchip-sfc.c +++ b/drivers/spi/spi-rockchip-sfc.c @@ -1214,6 +1214,9 @@ static struct platform_driver rockchip_sfc_driver = { .name = "rockchip-sfc", .of_match_table = rockchip_sfc_dt_ids, .pm = &rockchip_sfc_pm_ops, +#ifdef CONFIG_ROCKCHIP_THUNDER_BOOT + .probe_type = PROBE_PREFER_ASYNCHRONOUS, +#endif }, .probe = rockchip_sfc_probe, .remove = rockchip_sfc_remove,