Commit 9cdda28d authored by Peter Chen's avatar Peter Chen Committed by Greg Kroah-Hartman

usb: host: xhci-plat: improve the comments for xhci_plat_suspend

To reflect the current code status.
Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
Signed-off-by: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20200918131752.16488-7-mathias.nyman@linux.intel.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4bb4fc0d
......@@ -421,11 +421,7 @@ static int __maybe_unused xhci_plat_suspend(struct device *dev)
return ret;
/*
* xhci_suspend() needs `do_wakeup` to know whether host is allowed
* to do wakeup during suspend. Since xhci_plat_suspend is currently
* only designed for system suspend, device_may_wakeup() is enough
* to dertermine whether host is allowed to do wakeup. Need to
* reconsider this when xhci_plat_suspend enlarges its scope, e.g.,
* also applies to runtime suspend.
* to do wakeup during suspend.
*/
return xhci_suspend(xhci, device_may_wakeup(dev));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment