]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
bus: sunxi-rsb: Remove redundant pm_runtime_mark_last_busy() calls
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 27 Oct 2025 13:33:59 +0000 (15:33 +0200)
committerChen-Yu Tsai <wens@kernel.org>
Tue, 28 Oct 2025 17:10:10 +0000 (01:10 +0800)
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: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://patch.msgid.link/20251027133359.392984-1-sakari.ailus@linux.intel.com
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
drivers/bus/sunxi-rsb.c

index 7a33c3b31d1e948ca2dfa88ef13c5b59d18f7e74..82735c58be114546e71d035a4ad852b07646de81 100644 (file)
@@ -373,7 +373,6 @@ static int sunxi_rsb_read(struct sunxi_rsb *rsb, u8 rtaddr, u8 addr,
 unlock:
        mutex_unlock(&rsb->lock);
 
-       pm_runtime_mark_last_busy(rsb->dev);
        pm_runtime_put_autosuspend(rsb->dev);
 
        return ret;
@@ -417,7 +416,6 @@ static int sunxi_rsb_write(struct sunxi_rsb *rsb, u8 rtaddr, u8 addr,
 
        mutex_unlock(&rsb->lock);
 
-       pm_runtime_mark_last_busy(rsb->dev);
        pm_runtime_put_autosuspend(rsb->dev);
 
        return ret;