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 <xzy.xu@rock-chips.com>
Change-Id: Ie70a3e96c88d71bbc78729cbc64ead792fe319fc
This commit is contained in:
Ziyuan Xu
2025-07-07 16:22:05 +08:00
committed by Tao Huang
parent 26b5e473be
commit 7ee99a0968

View File

@@ -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,