Skip to content
Commit ed37a9fa authored by Jonathan Bell's avatar Jonathan Bell Committed by popcornmix
Browse files

usb: add plumbing for updating interrupt endpoint interval state



xHCI caches device and endpoint data after the interface is configured,
so an explicit command needs to be issued for any device driver wanting
to alter the polling interval of an endpoint.

Add usb_fixup_endpoint() to allow drivers to do this. The fixup must be
called after calculating endpoint bandwidth requirements but before any
URBs are submitted.

If polling intervals are shortened, any bandwidth reservations are no
longer valid but in practice polling intervals are only ever relaxed.

Limit the scope to interrupt transfers for now.

Signed-off-by: default avatarJonathan Bell <jonathan@raspberrypi.org>
parent 9fb65a12
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