Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dmaengine: ste_dma40: Remove redundant pm_runtime_mark_last_busy() calls

pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(),
pm_runtime_autosuspend() and pm_request_autosuspend() now include a call
to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to
pm_runtime_mark_last_busy().

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patch.msgid.link/20251027133232.392898-4-sakari.ailus@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Sakari Ailus and committed by
Vinod Koul
01f2bcf0 5f6f0cad

+2 -12
+2 -12
drivers/dma/ste_dma40.c
··· 1452 1452 1453 1453 res = d40_channel_execute_command(d40c, D40_DMA_SUSPEND_REQ); 1454 1454 1455 - pm_runtime_mark_last_busy(d40c->base->dev); 1456 1455 pm_runtime_put_autosuspend(d40c->base->dev); 1457 1456 spin_unlock_irqrestore(&d40c->lock, flags); 1458 1457 return res; ··· 1478 1479 if (d40_residue(d40c) || d40_tx_is_linked(d40c)) 1479 1480 res = d40_channel_execute_command(d40c, D40_DMA_RUN); 1480 1481 1481 - pm_runtime_mark_last_busy(d40c->base->dev); 1482 1482 pm_runtime_put_autosuspend(d40c->base->dev); 1483 1483 spin_unlock_irqrestore(&d40c->lock, flags); 1484 1484 return res; ··· 1579 1581 if (d40_queue_start(d40c) == NULL) { 1580 1582 d40c->busy = false; 1581 1583 1582 - pm_runtime_mark_last_busy(d40c->base->dev); 1583 1584 pm_runtime_put_autosuspend(d40c->base->dev); 1584 1585 } 1585 1586 ··· 2051 2054 else 2052 2055 d40c->base->lookup_phy_chans[phy->num] = NULL; 2053 2056 2054 - if (d40c->busy) { 2055 - pm_runtime_mark_last_busy(d40c->base->dev); 2057 + if (d40c->busy) 2056 2058 pm_runtime_put_autosuspend(d40c->base->dev); 2057 - } 2058 2059 2059 2060 d40c->busy = false; 2060 2061 d40c->phy_chan = NULL; 2061 2062 d40c->configured = false; 2062 2063 mark_last_busy: 2063 - pm_runtime_mark_last_busy(d40c->base->dev); 2064 2064 pm_runtime_put_autosuspend(d40c->base->dev); 2065 2065 return res; 2066 2066 } ··· 2460 2466 if (is_free_phy) 2461 2467 d40_config_write(d40c); 2462 2468 mark_last_busy: 2463 - pm_runtime_mark_last_busy(d40c->base->dev); 2464 2469 pm_runtime_put_autosuspend(d40c->base->dev); 2465 2470 spin_unlock_irqrestore(&d40c->lock, flags); 2466 2471 return err; ··· 2611 2618 chan_err(d40c, "Failed to stop channel\n"); 2612 2619 2613 2620 d40_term_all(d40c); 2614 - pm_runtime_mark_last_busy(d40c->base->dev); 2615 2621 pm_runtime_put_autosuspend(d40c->base->dev); 2616 - if (d40c->busy) { 2617 - pm_runtime_mark_last_busy(d40c->base->dev); 2622 + if (d40c->busy) 2618 2623 pm_runtime_put_autosuspend(d40c->base->dev); 2619 - } 2620 2624 d40c->busy = false; 2621 2625 2622 2626 spin_unlock_irqrestore(&d40c->lock, flags);