]> git.neil.brown.name Git - history.git/commit
[PATCH] natsemi long cable fix
authorGary N. Spiess <gary.spiess@intermec.com>
Sun, 20 Feb 2005 16:18:44 +0000 (11:18 -0500)
committerJeff Garzik <jgarzik@pobox.com>
Sun, 20 Feb 2005 16:18:44 +0000 (11:18 -0500)
commitc0d51c67f9c398279a95c5a7df387f2d9a586c98
tree0f9e9ea0ec18517a707c63944442390adee99b59
parent09c4fa6796f13f6c02de0d40ed494e1021af145f
[PATCH] natsemi long cable fix

This is a minor modification to the previous patch submission that does
not assume the default contents of the DSPCFG register are zero.

When used with Revision D of the DP83815, the "Recommended Registers
Configuration" from page 78 of the DP83815 data sheet is not entirely
compatible with the driver's "short cable patch".  When the DSPCFG
register is written with the value suggested in the document, then
do_cable_magic() can't read the DSP coefficient and determines that all
cables attached to the DP83815D are 'short', regardless of actual
length.  Short cables (< 30m) cause do_cable_magic to enable additional
attenuation to reduce CRC and idle errors.  If the extra attenuation is
unintentionally enabled for long cables (> 50m?), they will not operate
properly.  The National Semiconductor driver, 'dp83815.c' from
http://www.national.com/appinfo/networks/files/linux_2_4.tar.gz was used
as a basis for this modification.

Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/natsemi.c