aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-timer.c
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2012-09-19 17:02:29 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-21 12:37:53 -0400
commitd16ba48774913d244c7eb894d28d8ae2c019a827 (patch)
treedabcfac2e0901ac71d0327cbebe83162d2f18375 /drivers/usb/host/ehci-timer.c
parent17dcfc9bd3dfb699e00205ec9d431b5a5cb00b34 (diff)
USB: EHCI: convert warning messages to debug-level
This patch (as1606) converts two warning messages in the ehci-hcd driver to debug messages, and adds a little extra information to each. The log messages occur when an EHCI controller takes too long (more than 20 ms) to turn its async or periodic schedule on or off. If this happens at all, it's liable to happen quite often and there's no point spamming the system log with these warnings. Furthermore, there's nothing much we can do about it when the problem happens. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Reported-and-tested-by: Thomas Voegtle <tv@lio96.de> Cc: stable <stable@vger.kernel.org> # [3.6] Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-timer.c')
-rw-r--r--drivers/usb/host/ehci-timer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-timer.c b/drivers/usb/host/ehci-timer.c
index eb896a2c8f2e..20dbdcbe9b0f 100644
--- a/drivers/usb/host/ehci-timer.c
+++ b/drivers/usb/host/ehci-timer.c
@@ -118,7 +118,8 @@ static void ehci_poll_ASS(struct ehci_hcd *ehci)
118 ehci_enable_event(ehci, EHCI_HRTIMER_POLL_ASS, true); 118 ehci_enable_event(ehci, EHCI_HRTIMER_POLL_ASS, true);
119 return; 119 return;
120 } 120 }
121 ehci_warn(ehci, "Waited too long for the async schedule status, giving up\n"); 121 ehci_dbg(ehci, "Waited too long for the async schedule status (%x/%x), giving up\n",
122 want, actual);
122 } 123 }
123 ehci->ASS_poll_count = 0; 124 ehci->ASS_poll_count = 0;
124 125
@@ -163,7 +164,8 @@ static void ehci_poll_PSS(struct ehci_hcd *ehci)
163 ehci_enable_event(ehci, EHCI_HRTIMER_POLL_PSS, true); 164 ehci_enable_event(ehci, EHCI_HRTIMER_POLL_PSS, true);
164 return; 165 return;
165 } 166 }
166 ehci_warn(ehci, "Waited too long for the periodic schedule status, giving up\n"); 167 ehci_dbg(ehci, "Waited too long for the periodic schedule status (%x/%x), giving up\n",
168 want, actual);
167 } 169 }
168 ehci->PSS_poll_count = 0; 170 ehci->PSS_poll_count = 0;
169 171