Skip to contentSkip to conversation

dmaengine: imx-sdma: dovetail: Fix duplicate unlock

PATCH Applied Jan Kiszka 2 participants 2 messages Nov 25

Subsystems (2)
lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 dmaengine: imx-sdma: dovetail: Fix duplicate unlock

From: Jan Kiszka <[email protected]>

The dovetail conversion forgot to drop the spin_unlock which is supposed to be replaced with the vchan_unlock some lines later.

Reported-by opencode:Opus-5.5
Fixes 187b1d6237e5, v7.1-dovetail-rebase ("dmaengine: imx-sdma: dovetail: enable out-of-band operations")
---
 drivers/dma/imx-sdma.c | 1 -
 1 file changed, 1 deletion(-)
drivers/dma/imx-sdma.c +0 -1
index 22c7cccc60179..5414df2269d4d 100644
@@ -986,7 +986,6 @@ static unsigned long sdma_do_channels(struct sdma_engine *sdma,
 			}
 		}
 
-		spin_unlock(&sdmac->vc.lock);
 		__clear_bit(channel, &stat);
 	next:
 		vchan_unlock(&sdmac->vc);
Signature · 1 line
2.47.3
#1 lore raw
Quoted 17 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

The dovetail conversion forgot to drop the spin_unlock which is supposed to be replaced with the vchan_unlock some lines later.

Reported-by opencode:Opus-5.5
Fixes 187b1d6237e5, v7.1-dovetail-rebase ("dmaengine: imx-sdma: dovetail: enable out-of-band operations")
---
 drivers/dma/imx-sdma.c | 1 -
 1 file changed, 1 deletion(-)
drivers/dma/imx-sdma.c +0 -0
index 22c7cccc60179..5414df2269d4d 100644

drivers/dma/imx-sdma.c static unsigned long sdma_do_channels(struct sdma_engine *sdma, · line 991

Quoted 7 lines
drivers/dma/imx-sdma.c +0 -1
@@ -986,7 +986,6 @@ static unsigned long sdma_do_channels(struct sdma_engine *sdma,
 			}
 		}
 
-		spin_unlock(&sdmac->vc.lock);
 		__clear_bit(channel, &stat);
 	next:
 		vchan_unlock(&sdmac->vc);

Merged, thanks.

Signature · 1 line
Philippe.