summaryrefslogtreecommitdiff
path: root/common/soft_i2c.c
diff options
context:
space:
mode:
authorShinya Kuribayashi <shinya.kuribayashi@necel.com>2008-01-16 16:11:14 +0900
committerBen Warren <biggerbadderben@gmail.com>2008-01-16 17:37:35 -0500
commitd1276c76c1e2b5035296689280ba1acb2c425104 (patch)
tree2ef8ecc21b7d213e0ee6664306acdd5d0aaff44f /common/soft_i2c.c
parent18ee320ff63edbf7b27bbeb05f0e12a52302c68a (diff)
downloadu-boot-imx-d1276c76c1e2b5035296689280ba1acb2c425104.zip
u-boot-imx-d1276c76c1e2b5035296689280ba1acb2c425104.tar.gz
u-boot-imx-d1276c76c1e2b5035296689280ba1acb2c425104.tar.bz2
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>
Diffstat (limited to 'common/soft_i2c.c')
0 files changed, 0 insertions, 0 deletions