提交 32b5bfab 编写于 作者: P Philippe De Muyter 提交者: Jeff Garzik

[PATCH] tulip DC21143 rev 48 10Mbit HDX fix

The patch below is necessary to allow my Digital DS21143 Tulip rev 48
ethernet interface to work in a 10Mbit Half Duplex network.  Without
it, the driver keeps retrying other modes in an endless loop.  It seems
like someone already had the same problem with a rev 65 board :)
Signed-off-by: NPhilippe De Muyter <phdm@macqel.be>
Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
上级 217df670
...@@ -172,7 +172,7 @@ void t21142_lnk_change(struct net_device *dev, int csr5) ...@@ -172,7 +172,7 @@ void t21142_lnk_change(struct net_device *dev, int csr5)
int i; int i;
for (i = 0; i < tp->mtable->leafcount; i++) for (i = 0; i < tp->mtable->leafcount; i++)
if (tp->mtable->mleaf[i].media == dev->if_port) { if (tp->mtable->mleaf[i].media == dev->if_port) {
int startup = ! ((tp->chip_id == DC21143 && tp->revision == 65)); int startup = ! ((tp->chip_id == DC21143 && (tp->revision == 48 || tp->revision == 65)));
tp->cur_index = i; tp->cur_index = i;
tulip_select_media(dev, startup); tulip_select_media(dev, startup);
setup_done = 1; setup_done = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册