On Wed, May 15, 2002, Johannes Erdfelt <[EMAIL PROTECTED]> wrote:
> This fixes up a couple of problems I came across while working on
> uhci-hcd. There are a couple of places where shifts are used where they
> shouldn't be and others where should be.
> 
> This cleans up a couple of cases and tidys it up.
> 
> The patch is relative to 2.4.19-pre8 and my other patches, but it's
> alright to wait for 2.4.20. It should also be applied to 2.5.
> 
> Thanks!

Woops, I sent the wrong version. There was one extra line that was
required.

Here's a patch relative to that last one.

JE

diff -ur -X dontdiff linux-2.4.19-pre8.orig/drivers/usb/uhci.h 
linux-2.4.19-pre8/drivers/usb/uhci.h
--- linux-2.4.19-pre8.orig/drivers/usb/uhci.h   Wed May 15 20:41:56 2002
+++ linux-2.4.19-pre8/drivers/usb/uhci.h        Wed May 15 19:42:22 2002
@@ -126,7 +126,7 @@
 
 #define uhci_maxlen(token)     ((token) >> 21)
 #define uhci_expected_length(info) (((info >> 21) + 1) & TD_TOKEN_EXPLEN_MASK) /* 
1-based */
-#define uhci_toggle(token)     (((token) >> TD_TOKEN_TOGGLE) & 1)
+#define uhci_toggle(token)     (((token) >> TD_TOKEN_TOGGLE_SHIFT) & 1)
 #define uhci_endpoint(token)   (((token) >> 15) & 0xf)
 #define uhci_devaddr(token)    (((token) >> 8) & 0x7f)
 #define uhci_devep(token)      (((token) >> 8) & 0x7ff)

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to