u-boot-brain/drivers
Remy Bohmer 0e38c938ed DM9000 fix status check fail 0x6d error for trizeps board
According to the Application Notes of the DM9000, only the 2 bits 0:1 of
the status byte need to be checked to identify a valid packet in the fifo

But, The several different Application Notes do not all speak the same
language on these bits. They do not disagree, but only 1 Application Note
noted explicitly that only these 2 bits need to be checked.
Even the datasheets do not mention anything about these 2 bits.

Because the old code, and the kernel check the whole byte, I left this piece
untouched.

However, I tested all board/DM9000[A|E|EP] devices with this 2 bit check, so
it should work.

Notice, that the 2nd iteration through this receive loop (when a 2nd packet is
in the fifo) is much shorter now, compared to the older U-boot driver code,
so that we can maybe run into a hardware condition now that was never seen
before, or maybe was seen very unfrequently.

Additionaly added a cleanup of a stack variable.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
2008-06-05 23:47:28 -07:00
..
bios_emulator Big white-space cleanup. 2008-05-21 00:14:08 +02:00
block Big white-space cleanup. 2008-05-21 00:14:08 +02:00
dma Big white-space cleanup. 2008-05-21 00:14:08 +02:00
hwmon LM73 bug fix for negative temperatures and cleanup 2008-04-13 08:58:36 -07:00
i2c Big white-space cleanup. 2008-05-21 00:14:08 +02:00
input Big white-space cleanup. 2008-05-21 00:14:08 +02:00
misc Big white-space cleanup. 2008-05-21 00:14:08 +02:00
mtd Big white-space cleanup. 2008-05-21 00:14:08 +02:00
net DM9000 fix status check fail 0x6d error for trizeps board 2008-06-05 23:47:28 -07:00
pci Big white-space cleanup. 2008-05-21 00:14:08 +02:00
pcmcia Big white-space cleanup. 2008-05-21 00:14:08 +02:00
qe Big white-space cleanup. 2008-05-21 00:14:08 +02:00
rtc Big white-space cleanup. 2008-05-21 00:14:08 +02:00
serial Big white-space cleanup. 2008-05-21 00:14:08 +02:00
spi Big white-space cleanup. 2008-05-21 00:14:08 +02:00
usb Fix endianess conversion in usb_ohci.c 2008-05-22 17:14:17 +02:00
video Big white-space cleanup. 2008-05-21 00:14:08 +02:00