Commit 3b4f1bc8 authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman

[PATCH] PATCH 2.5.10 -- polling interval (hub + ...)

This patch is the result of that discussion a short while back
to fix the "hub driver polls too quickly at high speed" bug.

    - redefines "interval" of usb_fill_int_urb() to be what
      the endpoint descriptor returns, and transparently
      does the log-to-linear conversion if it's high speed

    - (most of the patch by volume!!) moves declarations
      forward so testing dev->speed there will compile.

No driver changes were needed -- most drivers pass the
endpoint bInterval value already, and those that don't are
not dealing with high speed device quirks.

p.s. Includes an unrelated one-liner:  deletes export of
    usb_inc_dev_use() so it now shows up in kernel doc.
    Minor oversight in an earlier patch.
parent 1ac7140f
...@@ -2625,7 +2625,6 @@ EXPORT_SYMBOL(usb_scan_devices); ...@@ -2625,7 +2625,6 @@ EXPORT_SYMBOL(usb_scan_devices);
EXPORT_SYMBOL(usb_alloc_dev); EXPORT_SYMBOL(usb_alloc_dev);
EXPORT_SYMBOL(usb_free_dev); EXPORT_SYMBOL(usb_free_dev);
EXPORT_SYMBOL(usb_inc_dev_use);
EXPORT_SYMBOL(usb_find_interface_driver_for_ifnum); EXPORT_SYMBOL(usb_find_interface_driver_for_ifnum);
EXPORT_SYMBOL(usb_driver_claim_interface); EXPORT_SYMBOL(usb_driver_claim_interface);
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment