summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorSarah Sharp <sarah.a.sharp@linux.intel.com>2010-03-16 12:59:24 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-19 07:24:24 -0700
commit9ce669a8924c61b7321d6e2f27ed67bcd46c1fbb (patch)
treedd479c02f9fe84a4c5ad9e4d4cb9d58beddf07d6 /drivers/usb
parentf09a15e6e69884cedec4d1c022089a973aa01f1e (diff)
downloadlinux-rpi-9ce669a8924c61b7321d6e2f27ed67bcd46c1fbb.tar.gz
linux-rpi-9ce669a8924c61b7321d6e2f27ed67bcd46c1fbb.tar.bz2
linux-rpi-9ce669a8924c61b7321d6e2f27ed67bcd46c1fbb.zip
USB: xhci: Make endpoint interval debugging clearer.
The xHCI hardware can only handle polling intervals that are a power of two. When we add a new endpoint during a bandwidth allocation, and the polling interval is rounded down to a power of two, print the original polling interval in the endpoint descriptor. Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/xhci-mem.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c
index 49f7d72f8b1b..bba9b19ed1b9 100644
--- a/drivers/usb/host/xhci-mem.c
+++ b/drivers/usb/host/xhci-mem.c
@@ -566,8 +566,13 @@ static inline unsigned int xhci_get_endpoint_interval(struct usb_device *udev,
if (interval < 3)
interval = 3;
if ((1 << interval) != 8*ep->desc.bInterval)
- dev_warn(&udev->dev, "ep %#x - rounding interval to %d microframes\n",
- ep->desc.bEndpointAddress, 1 << interval);
+ dev_warn(&udev->dev,
+ "ep %#x - rounding interval"
+ " to %d microframes, "
+ "ep desc says %d microframes\n",
+ ep->desc.bEndpointAddress,
+ 1 << interval,
+ 8*ep->desc.bInterval);
}
break;
default: