drivers/net/rtl8139.c: Fix tx timeout
authorShinya Kuribayashi <shinya.kuribayashi@necel.com>
Wed, 16 Jan 2008 07:11:14 +0000 (16:11 +0900)
committerBen Warren <biggerbadderben@gmail.com>
Wed, 16 Jan 2008 22:37:35 +0000 (17:37 -0500)
commitd1276c76c1e2b5035296689280ba1acb2c425104
tree2ef8ecc21b7d213e0ee6664306acdd5d0aaff44f
parent18ee320ff63edbf7b27bbeb05f0e12a52302c68a
drivers/net/rtl8139.c: Fix tx timeout

"to = (currticks() + RTL_TIMEOUT)" has possibilities to wrap around. If it
does, the condition "(currticks() < to)" becomes invalid and immediately
leads to tx timeout error. This patch introduces the fine-graded udely(10)
loops to ease the impact of wrapping around.

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
Cc: Masami Komiya <mkomiya@sonare.it>
Cc: Lucas Jin <lucasjin@gmail.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
drivers/net/rtl8139.c