Skip to content

Commit 7aad3a4

Browse files
tlebgregkh
authored andcommitted
usb: xhci: tegra: rename runtime boolean to is_auto_runtime
Unify naming convention: use `is_auto_runtime` in xhci-tegra, to be in phase with (future) drivers/usb/host/xhci.c. Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> Link: https://lore.kernel.org/r/20250205-s2r-cdns-v7-2-13658a271c3c@bootlin.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 64eb182 commit 7aad3a4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/usb/host/xhci-tegra.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2162,11 +2162,11 @@ static void tegra_xhci_program_utmi_power_lp0_exit(struct tegra_xusb *tegra)
21622162
}
21632163
}
21642164

2165-
static int tegra_xusb_enter_elpg(struct tegra_xusb *tegra, bool runtime)
2165+
static int tegra_xusb_enter_elpg(struct tegra_xusb *tegra, bool is_auto_resume)
21662166
{
21672167
struct xhci_hcd *xhci = hcd_to_xhci(tegra->hcd);
21682168
struct device *dev = tegra->dev;
2169-
bool wakeup = runtime ? true : device_may_wakeup(dev);
2169+
bool wakeup = is_auto_resume ? true : device_may_wakeup(dev);
21702170
unsigned int i;
21712171
int err;
21722172
u32 usbcmd;
@@ -2232,11 +2232,11 @@ static int tegra_xusb_enter_elpg(struct tegra_xusb *tegra, bool runtime)
22322232
return err;
22332233
}
22342234

2235-
static int tegra_xusb_exit_elpg(struct tegra_xusb *tegra, bool runtime)
2235+
static int tegra_xusb_exit_elpg(struct tegra_xusb *tegra, bool is_auto_resume)
22362236
{
22372237
struct xhci_hcd *xhci = hcd_to_xhci(tegra->hcd);
22382238
struct device *dev = tegra->dev;
2239-
bool wakeup = runtime ? true : device_may_wakeup(dev);
2239+
bool wakeup = is_auto_resume ? true : device_may_wakeup(dev);
22402240
unsigned int i;
22412241
u32 usbcmd;
22422242
int err;
@@ -2287,7 +2287,7 @@ static int tegra_xusb_exit_elpg(struct tegra_xusb *tegra, bool runtime)
22872287
if (wakeup)
22882288
tegra_xhci_disable_phy_sleepwalk(tegra);
22892289

2290-
err = xhci_resume(xhci, runtime ? PMSG_AUTO_RESUME : PMSG_RESUME);
2290+
err = xhci_resume(xhci, is_auto_resume ? PMSG_AUTO_RESUME : PMSG_RESUME);
22912291
if (err < 0) {
22922292
dev_err(tegra->dev, "failed to resume XHCI: %d\n", err);
22932293
goto disable_phy;

0 commit comments

Comments
 (0)