aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/hcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/core/hcd.c')
-rw-r--r--drivers/usb/core/hcd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
index 73cbbd85219f..3b9d906339ef 100644
--- a/drivers/usb/core/hcd.c
+++ b/drivers/usb/core/hcd.c
@@ -1961,8 +1961,9 @@ int hcd_bus_suspend(struct usb_device *rhdev, pm_message_t msg)
1961 int status; 1961 int status;
1962 int old_state = hcd->state; 1962 int old_state = hcd->state;
1963 1963
1964 dev_dbg(&rhdev->dev, "bus %s%s\n", 1964 dev_dbg(&rhdev->dev, "bus %ssuspend, wakeup %d\n",
1965 (msg.event & PM_EVENT_AUTO ? "auto-" : ""), "suspend"); 1965 (PMSG_IS_AUTO(msg) ? "auto-" : ""),
1966 rhdev->do_remote_wakeup);
1966 if (HCD_DEAD(hcd)) { 1967 if (HCD_DEAD(hcd)) {
1967 dev_dbg(&rhdev->dev, "skipped %s of dead bus\n", "suspend"); 1968 dev_dbg(&rhdev->dev, "skipped %s of dead bus\n", "suspend");
1968 return 0; 1969 return 0;
@@ -1997,8 +1998,8 @@ int hcd_bus_resume(struct usb_device *rhdev, pm_message_t msg)
1997 int status; 1998 int status;
1998 int old_state = hcd->state; 1999 int old_state = hcd->state;
1999 2000
2000 dev_dbg(&rhdev->dev, "usb %s%s\n", 2001 dev_dbg(&rhdev->dev, "usb %sresume\n",
2001 (msg.event & PM_EVENT_AUTO ? "auto-" : ""), "resume"); 2002 (PMSG_IS_AUTO(msg) ? "auto-" : ""));
2002 if (HCD_DEAD(hcd)) { 2003 if (HCD_DEAD(hcd)) {
2003 dev_dbg(&rhdev->dev, "skipped %s of dead bus\n", "resume"); 2004 dev_dbg(&rhdev->dev, "skipped %s of dead bus\n", "resume");
2004 return 0; 2005 return 0;