Skip to content

Commit c10a777

Browse files
tuocao1991vinodkoul
authored andcommitted
dmaengine: qcom: gpi: move read_lock_bh to read_lock in tasklet
it is unnecessary to call read_lock_bh in a tasklet. Signed-off-by: Tuo Cao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 26696d4 commit c10a777

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/dma/qcom/gpi.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,9 +1150,9 @@ static void gpi_ev_tasklet(unsigned long data)
11501150
{
11511151
struct gpii *gpii = (struct gpii *)data;
11521152

1153-
read_lock_bh(&gpii->pm_lock);
1153+
read_lock(&gpii->pm_lock);
11541154
if (!REG_ACCESS_VALID(gpii->pm_state)) {
1155-
read_unlock_bh(&gpii->pm_lock);
1155+
read_unlock(&gpii->pm_lock);
11561156
dev_err(gpii->gpi_dev->dev, "not processing any events, pm_state:%s\n",
11571157
TO_GPI_PM_STR(gpii->pm_state));
11581158
return;
@@ -1163,7 +1163,7 @@ static void gpi_ev_tasklet(unsigned long data)
11631163

11641164
/* enable IEOB, switching back to interrupts */
11651165
gpi_config_interrupts(gpii, MASK_IEOB_SETTINGS, 1);
1166-
read_unlock_bh(&gpii->pm_lock);
1166+
read_unlock(&gpii->pm_lock);
11671167
}
11681168

11691169
/* marks all pending events for the channel as stale */

0 commit comments

Comments
 (0)