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>

authored by

Sarah Sharp and committed by
Greg Kroah-Hartman
9ce669a8 f09a15e6

+7 -2
+7 -2
drivers/usb/host/xhci-mem.c
··· 566 if (interval < 3) 567 interval = 3; 568 if ((1 << interval) != 8*ep->desc.bInterval) 569 - dev_warn(&udev->dev, "ep %#x - rounding interval to %d microframes\n", 570 - ep->desc.bEndpointAddress, 1 << interval); 571 } 572 break; 573 default:
··· 566 if (interval < 3) 567 interval = 3; 568 if ((1 << interval) != 8*ep->desc.bInterval) 569 + dev_warn(&udev->dev, 570 + "ep %#x - rounding interval" 571 + " to %d microframes, " 572 + "ep desc says %d microframes\n", 573 + ep->desc.bEndpointAddress, 574 + 1 << interval, 575 + 8*ep->desc.bInterval); 576 } 577 break; 578 default: