@@ -2162,11 +2162,11 @@ static void tegra_xhci_program_utmi_power_lp0_exit(struct tegra_xusb *tegra)
2162
2162
}
2163
2163
}
2164
2164
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 )
2166
2166
{
2167
2167
struct xhci_hcd * xhci = hcd_to_xhci (tegra -> hcd );
2168
2168
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 );
2170
2170
unsigned int i ;
2171
2171
int err ;
2172
2172
u32 usbcmd ;
@@ -2232,11 +2232,11 @@ static int tegra_xusb_enter_elpg(struct tegra_xusb *tegra, bool runtime)
2232
2232
return err ;
2233
2233
}
2234
2234
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 )
2236
2236
{
2237
2237
struct xhci_hcd * xhci = hcd_to_xhci (tegra -> hcd );
2238
2238
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 );
2240
2240
unsigned int i ;
2241
2241
u32 usbcmd ;
2242
2242
int err ;
@@ -2287,7 +2287,7 @@ static int tegra_xusb_exit_elpg(struct tegra_xusb *tegra, bool runtime)
2287
2287
if (wakeup )
2288
2288
tegra_xhci_disable_phy_sleepwalk (tegra );
2289
2289
2290
- err = xhci_resume (xhci , runtime ? PMSG_AUTO_RESUME : PMSG_RESUME );
2290
+ err = xhci_resume (xhci , is_auto_resume ? PMSG_AUTO_RESUME : PMSG_RESUME );
2291
2291
if (err < 0 ) {
2292
2292
dev_err (tegra -> dev , "failed to resume XHCI: %d\n" , err );
2293
2293
goto disable_phy ;
0 commit comments