summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-mt65xx.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2023-05-30 18:38:18 +0100
committerMark Brown <broonie@kernel.org>2023-05-30 18:38:18 +0100
commitfdc523137457d3547900e3dfbe5fcdd49675f6ba (patch)
tree9dd79122d566a35d8b93c92e0b77c9590f6a6ebd /drivers/spi/spi-mt65xx.c
parentfe73245592fef75a7c41180a3fbb07c9a75f622e (diff)
parent0c331fd1dccfba657129380ee084b95c1cedfbef (diff)
spi: Merge up fixes to help CI
Get the fixes into CI for development.
Diffstat (limited to 'drivers/spi/spi-mt65xx.c')
-rw-r--r--drivers/spi/spi-mt65xx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c
index ef64fc28f703..39272ad6641b 100644
--- a/drivers/spi/spi-mt65xx.c
+++ b/drivers/spi/spi-mt65xx.c
@@ -1276,6 +1276,9 @@ static void mtk_spi_remove(struct platform_device *pdev)
struct mtk_spi *mdata = spi_master_get_devdata(master);
int ret;
+ if (mdata->use_spimem && !completion_done(&mdata->spimem_done))
+ complete(&mdata->spimem_done);
+
ret = pm_runtime_get_sync(&pdev->dev);
if (ret < 0) {
dev_warn(&pdev->dev, "Failed to resume hardware (%pe)\n", ERR_PTR(ret));