]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: EHCI: adjust error return code
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 4 Dec 2014 15:22:57 +0000 (10:22 -0500)
committerJiri Slaby <jslaby@suse.cz>
Thu, 5 Mar 2015 14:37:15 +0000 (15:37 +0100)
commit8920e92c8062bb6ee89605a7b72ec9c466fde608
treea8120e200fe4afa3f0e00873e1256e77fcc9cf53
parent5bebf22856156a533aa6a107385e17b1422dba2e
USB: EHCI: adjust error return code

commit c401e7b4a808d50ab53ef45cb8d0b99b238bf2c9 upstream.

The USB stack uses error code -ENOSPC to indicate that the periodic
schedule is too full, with insufficient bandwidth to accommodate a new
allocation.  It uses -EFBIG to indicate that an isochronous transfer
could not be linked into the schedule because it would exceed the
number of isochronous packets the host controller driver can handle
(generally because the new transfer would extend too far into the
future).

ehci-hcd uses the wrong error code at one point.  This patch fixes it,
along with a misleading comment and debugging message.

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