[PATCH 1/5] usb: host: tegra: Remove redundant pm_runtime_mark_last_busy() call

Diogo Ivo posted 5 patches 2 weeks ago
[PATCH 1/5] usb: host: tegra: Remove redundant pm_runtime_mark_last_busy() call
Posted by Diogo Ivo 2 weeks ago
As pm_runtime_put_autosuspend() called at the end of tegra_xhci_id_work()
already calls pm_runtime_mark_last_busy() remove the prior redundant call.

Signed-off-by: Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt>
---
 drivers/usb/host/xhci-tegra.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c
index 5255b1002893..9c69fccdc6e8 100644
--- a/drivers/usb/host/xhci-tegra.c
+++ b/drivers/usb/host/xhci-tegra.c
@@ -1399,8 +1399,6 @@ static void tegra_xhci_id_work(struct work_struct *work)
 		}
 
 		tegra_xhci_set_port_power(tegra, true, true);
-		pm_runtime_mark_last_busy(tegra->dev);
-
 	} else {
 		if (tegra->otg_usb3_port >= 0)
 			tegra_xhci_set_port_power(tegra, false, false);

-- 
2.52.0
Re: [PATCH 1/5] usb: host: tegra: Remove redundant pm_runtime_mark_last_busy() call
Posted by Diogo Ivo 1 week, 5 days ago
Please ignore this patch as this has already been addressed in a patch
in this merge window; sorry for the extra noise.

On 12/4/25 21:27, Diogo Ivo wrote:
> As pm_runtime_put_autosuspend() called at the end of tegra_xhci_id_work()
> already calls pm_runtime_mark_last_busy() remove the prior redundant call.
> 
> Signed-off-by: Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt>
> ---
>   drivers/usb/host/xhci-tegra.c | 2 --
>   1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c
> index 5255b1002893..9c69fccdc6e8 100644
> --- a/drivers/usb/host/xhci-tegra.c
> +++ b/drivers/usb/host/xhci-tegra.c
> @@ -1399,8 +1399,6 @@ static void tegra_xhci_id_work(struct work_struct *work)
>   		}
>   
>   		tegra_xhci_set_port_power(tegra, true, true);
> -		pm_runtime_mark_last_busy(tegra->dev);
> -
>   	} else {
>   		if (tegra->otg_usb3_port >= 0)
>   			tegra_xhci_set_port_power(tegra, false, false);
>