USB: EHCI: compute full-speed bandwidth usage correctly
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 11 Oct 2013 15:28:21 +0000 (11:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2013 23:37:46 +0000 (16:37 -0700)
commit2b90f01b219e390e1f1bf68dd7a2333efb3e3eff
tree77d664254c0376ea68850e86ba6c2df5aa1dabfd
parente24371a6be9c5c00b56607bd425cc409cba75d88
USB: EHCI: compute full-speed bandwidth usage correctly

Although the bandwidth statistics maintained by ehci-hcd show up only
in the /sys/kernel/debug/usb/devices file, they ought to be calculated
correctly.  The calculation for full-speed isochronous endpoints is
wrong; it mistakenly yields bytes per microframe instead of bytes per
frame.  The "interval" value, which is in frames, should not be
converted to microframes.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-sched.c