spi: rockchip-sfc: Wait for thunder boot DMA status change before rockchip_sfc_get_gpio_descs

Signed-off-by: Yuefu Su <yuefu.su@rock-chips.com>
Change-Id: I977ea73a372328313cfc2728786b123abaaecc7b
This commit is contained in:
Yuefu Su
2025-09-29 15:36:50 +08:00
committed by Tao Huang
parent 7235aafc8f
commit 36d177c27c

View File

@@ -1010,12 +1010,6 @@ static int rockchip_sfc_probe(struct platform_device *pdev)
if (sfc->max_dll_cells > SFC_DLL_CTRL0_DLL_MAX_VER5)
sfc->max_dll_cells = SFC_DLL_CTRL0_DLL_MAX_VER5;
ret = rockchip_sfc_get_gpio_descs(master, sfc);
if (ret) {
dev_err(&pdev->dev, "Failed to get gpio_descs\n");
return ret;
}
ret = clk_prepare_enable(sfc->hclk);
if (ret) {
dev_err(&pdev->dev, "Failed to enable ahb clk\n");
@@ -1063,6 +1057,12 @@ static int rockchip_sfc_probe(struct platform_device *pdev)
dev_err(dev, "Wait for SFC idle timeout!\n");
}
ret = rockchip_sfc_get_gpio_descs(master, sfc);
if (ret) {
dev_err(&pdev->dev, "Failed to get gpio_descs\n");
goto err_irq;
}
ret = rockchip_sfc_init(sfc);
if (ret)
goto err_irq;