Re: [PATCH] USB and Driver Core patches for 2.6.10

Greg KH
2005-01-08T06:49:14Z

ChangeSet 1.1938.446.19, 2004/12/15 16:34:18-08:00, david-b@pacbell.net

[PATCH] USB: EHCI HCD and usb_dev->epmaxpacket (7/15)

Makes EHCI stop referencing the udev->epmaxpacket[] arrays.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>

drivers/usb/host/ehci-sched.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)

diff -Nru a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c
--- a/drivers/usb/host/ehci-sched.c 2005-01-07 15:49:06 -08:00
+++ b/drivers/usb/host/ehci-sched.c 2005-01-07 15:49:06 -08:00
@@ -614,11 +614,10 @@
*/
epnum = usb_pipeendpoint (pipe);
is_input = usb_pipein (pipe) ? USB_DIR_IN : 0;
+ maxp = usb_maxpacket(dev, pipe, !is_input);
if (is_input) {
- maxp = dev->epmaxpacketin [epnum];
buf1 = (1 << 11);
} else {
- maxp = dev->epmaxpacketout [epnum];
buf1 = 0;
}