]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
r8169: prevent excessive busy-waiting
authorFrancois Romieu <romieu@fr.zoreil.com>
Sat, 28 Jan 2006 23:49:09 +0000 (00:49 +0100)
committerFrancois Romieu <romieu@fr.zoreil.com>
Sat, 28 Jan 2006 23:49:09 +0000 (00:49 +0100)
commit2371408c021f961b92fd2c42480cfddc9c6254f0
treea3a1af14f9048a3492faf1ce044caea5236f84e1
parent3ee68c4af3fd7228c1be63254b9f884614f9ebb2
r8169: prevent excessive busy-waiting

The MII registers read/write function blindly busy waits for an
amount of 1000 us (1 ms), then up to 200 ms. These functions are
called from irq disabled context. Depending on the clock management,
it triggers lost ticks events. Since the value is way above the
standard delay required for mii register access, it strangely looks
like a bandaid against posted writes.

Fixes http://bugzilla.kernel.org/show_bug.cgi?id=5947

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
drivers/net/r8169.c