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.

mei: 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>
Acked-by: Alexander Usyskin <alexander.usyskin@intel.com>
Link: https://patch.msgid.link/20251027114118.390775-1-sakari.ailus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Sakari Ailus and committed by
Greg Kroah-Hartman
58796560 2c8ad5cf

+2 -14
+2 -12
drivers/misc/mei/client.c
··· 709 709 710 710 schedule_work(&dev->bus_rescan_work); 711 711 712 - pm_runtime_mark_last_busy(dev->parent); 713 712 dev_dbg(&dev->dev, "rpm: autosuspend\n"); 714 713 pm_request_autosuspend(dev->parent); 715 714 } ··· 990 991 rets = __mei_cl_disconnect(cl); 991 992 992 993 cl_dbg(dev, cl, "rpm: autosuspend\n"); 993 - pm_runtime_mark_last_busy(dev->parent); 994 994 pm_runtime_put_autosuspend(dev->parent); 995 995 996 996 return rets; ··· 1165 1167 rets = cl->status; 1166 1168 out: 1167 1169 cl_dbg(dev, cl, "rpm: autosuspend\n"); 1168 - pm_runtime_mark_last_busy(dev->parent); 1169 1170 pm_runtime_put_autosuspend(dev->parent); 1170 1171 1171 1172 mei_io_cb_free(cb); ··· 1551 1554 1552 1555 out: 1553 1556 cl_dbg(dev, cl, "rpm: autosuspend\n"); 1554 - pm_runtime_mark_last_busy(dev->parent); 1555 1557 pm_runtime_put_autosuspend(dev->parent); 1556 1558 1557 1559 mei_io_cb_free(cb); ··· 1698 1702 1699 1703 out: 1700 1704 cl_dbg(dev, cl, "rpm: autosuspend\n"); 1701 - pm_runtime_mark_last_busy(dev->parent); 1702 1705 pm_runtime_put_autosuspend(dev->parent); 1703 1706 nortpm: 1704 1707 if (rets) ··· 2087 2092 rets = buf_len; 2088 2093 err: 2089 2094 cl_dbg(dev, cl, "rpm: autosuspend\n"); 2090 - pm_runtime_mark_last_busy(dev->parent); 2091 2095 pm_runtime_put_autosuspend(dev->parent); 2092 2096 free: 2093 2097 mei_io_cb_free(cb); ··· 2110 2116 case MEI_FOP_WRITE: 2111 2117 mei_tx_cb_dequeue(cb); 2112 2118 cl->writing_state = MEI_WRITE_COMPLETE; 2113 - if (waitqueue_active(&cl->tx_wait)) { 2119 + if (waitqueue_active(&cl->tx_wait)) 2114 2120 wake_up_interruptible(&cl->tx_wait); 2115 - } else { 2116 - pm_runtime_mark_last_busy(dev->parent); 2121 + else 2117 2122 pm_request_autosuspend(dev->parent); 2118 - } 2119 2123 break; 2120 2124 2121 2125 case MEI_FOP_READ: ··· 2358 2366 mei_cl_dma_free(cl); 2359 2367 2360 2368 cl_dbg(dev, cl, "rpm: autosuspend\n"); 2361 - pm_runtime_mark_last_busy(dev->parent); 2362 2369 pm_runtime_put_autosuspend(dev->parent); 2363 2370 2364 2371 mei_io_cb_free(cb); ··· 2435 2444 mei_cl_dma_free(cl); 2436 2445 out: 2437 2446 cl_dbg(dev, cl, "rpm: autosuspend\n"); 2438 - pm_runtime_mark_last_busy(dev->parent); 2439 2447 pm_runtime_put_autosuspend(dev->parent); 2440 2448 2441 2449 mei_io_cb_free(cb);
-2
drivers/misc/mei/interrupt.c
··· 229 229 cl_dbg(dev, cl, "completed read length = %zu\n", cb->buf_idx); 230 230 list_move_tail(&cb->list, cmpl_list); 231 231 } else { 232 - pm_runtime_mark_last_busy(dev->parent); 233 232 pm_request_autosuspend(dev->parent); 234 233 } 235 234 ··· 309 310 return ret; 310 311 } 311 312 312 - pm_runtime_mark_last_busy(dev->parent); 313 313 pm_request_autosuspend(dev->parent); 314 314 315 315 list_move_tail(&cb->list, &cl->rd_pending);