mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
serial: 8250_port: Remove redundant pm_runtime_mark_last_busy() call
The pm_runtime_mark_last_busy() call is redundant in the wrapper function as pm_runtime_put_autosuspend() already calls pm_runtime_mark_last_busy() internally to update the last access time of the device before queuing autosuspend. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20260814112435.3290545-2-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
92a8133c44
commit
041a275af5
|
|
@ -542,7 +542,6 @@ void serial8250_rpm_put(struct uart_8250_port *p)
|
|||
{
|
||||
if (!(p->capabilities & UART_CAP_RPM))
|
||||
return;
|
||||
pm_runtime_mark_last_busy(p->port.dev);
|
||||
pm_runtime_put_autosuspend(p->port.dev);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(serial8250_rpm_put);
|
||||
|
|
@ -683,7 +682,6 @@ static void serial8250_rpm_put_tx(struct uart_8250_port *p)
|
|||
rpm_active = xchg(&p->rpm_tx_active, 0);
|
||||
if (!rpm_active)
|
||||
return;
|
||||
pm_runtime_mark_last_busy(p->port.dev);
|
||||
pm_runtime_put_autosuspend(p->port.dev);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user