mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user