difos/target/linux/starfive/patches-6.12/0025-spi-pl022-Fix-spi-overlay-falut.patch
Zoltan HERPAI 8f0f02d297 starfive: 6.12: refresh patches and drop upstreamed ones
- refresh, rebase and reorder patches
 - JH7110 media drivers have been dropped for now
 - JH7110 E24 and mailbox drivers were added
 - JH7100 DMA- and errata-patches have been dropped as they were
   upstreamed

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2025-06-05 16:39:15 +02:00

33 lines
1.2 KiB
Diff

From 1b818a33e3cd20250b72306946789d09d2c7b2c8 Mon Sep 17 00:00:00 2001
From: Hal Feng <hal.feng@starfivetech.com>
Date: Sun, 26 Jan 2025 16:56:05 +0800
Subject: [PATCH 25/55] spi: pl022: Fix spi overlay falut
set_cs() should not be set for spi controller when using overlay.
clk_disable_unprepare() is not needed after using
devm_clk_get_enabled() to get and enable clocks.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
---
drivers/spi/spi-pl022.c | 3 ---
1 file changed, 3 deletions(-)
--- a/drivers/spi/spi-pl022.c
+++ b/drivers/spi/spi-pl022.c
@@ -1908,7 +1908,6 @@ static int pl022_platform_probe(struct p
/* If open CONFIG_PM, auto_runtime_pm should be false when of-platform.*/
host->auto_runtime_pm = true;
host->transfer_one = pl022_transfer_one;
- host->set_cs = pl022_cs_control;
host->handle_err = pl022_handle_err;
host->unprepare_transfer_hardware = pl022_unprepare_transfer_hardware;
host->rt = platform_info->rt;
@@ -2435,8 +2434,6 @@ static void starfive_of_pl022_remove(str
if (pl022->host_info->enable_dma)
pl022_dma_remove(pl022);
- clk_disable_unprepare(pl022->clk);
-
pm_runtime_put_noidle(&pdev->dev);
pm_runtime_disable(&pdev->dev);
pm_runtime_set_suspended(&pdev->dev);