summaryrefslogtreecommitdiffstats
path: root/board/mpl/common/usb_uhci.c
diff options
context:
space:
mode:
authorRemy Bohmer <linux@bohmer.net>2008-10-10 10:23:22 +0200
committerMarkus Klotzbuecher <mk@denx.de>2008-10-14 16:43:06 +0200
commit9dbc366744960013965fce8851035b6141f3b3ae (patch)
tree32ce48313c2edb817abc02651543b18fffa05b1e /board/mpl/common/usb_uhci.c
parent48867208444cb2a82e2af9c3249e90b7ed4a1751 (diff)
downloadbootable_bootloader_goldelico_gta04-9dbc366744960013965fce8851035b6141f3b3ae.zip
bootable_bootloader_goldelico_gta04-9dbc366744960013965fce8851035b6141f3b3ae.tar.gz
bootable_bootloader_goldelico_gta04-9dbc366744960013965fce8851035b6141f3b3ae.tar.bz2
The PIPE_INTERRUPT flag is used wrong
At a lot of places in the code the PIPE_INTERRUPT flags and friends are used wrong. The wrong bits are compared to this flag resulting in wrong conditions. Also there are macros that should be used for PIPE_* flags. This patch tries to fix them all, however, I was not able to test the changes, because I do not have any of these boards. Review required! Signed-off-by: Remy Bohmer <linux@bohmer.net> Signed-off-by: Markus Klotzbuecher <mk@denx.de>
Diffstat (limited to 'board/mpl/common/usb_uhci.c')
-rw-r--r--board/mpl/common/usb_uhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/mpl/common/usb_uhci.c b/board/mpl/common/usb_uhci.c
index 666b999..03d142b 100644
--- a/board/mpl/common/usb_uhci.c
+++ b/board/mpl/common/usb_uhci.c
@@ -792,7 +792,7 @@ int uhci_submit_rh_msg(struct usb_device *dev, unsigned long pipe, void *buffer,
unsigned short wIndex;
unsigned short wLength;
- if ((pipe & PIPE_INTERRUPT) == PIPE_INTERRUPT) {
+ if (usb_pipeint(pipe)) {
printf("Root-Hub submit IRQ: NOT implemented\n");
#if 0
uhci->rh.urb = urb;