changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: ether8169: fix thinkpad A485 ethernet (thanks mischief)

changeset 7177: eb2ef71ad17e
parent 7176: 8eca5306b6d9
child 7178: c15a95dfdc11
author: cinap_lenrek@felloff.net
date: Sat, 27 Apr 2019 21:55:16 +0200
files: sys/src/9/pc/ether8169.c
description: ether8169: fix thinkpad A485 ethernet (thanks mischief)

attached is a patch to fix receive in the 8169 chip on my thinkpad
A485. i'm not sure why, but the same thing was done in 3d56a0fc4645
for Macv45.

nick
     1.1--- a/sys/src/9/pc/ether8169.c
     1.2+++ b/sys/src/9/pc/ether8169.c
     1.3@@ -726,6 +726,7 @@ rtl8169init(Ether* edev)
     1.4 	csr32w(ctlr, Tcr, Ifg1|Ifg0|Mtxdmaunlimited);
     1.5 	ctlr->tcr = csr32r(ctlr, Tcr);
     1.6 	switch(ctlr->macv){
     1.7+	case Macv42:
     1.8 	case Macv45:
     1.9 		ctlr->rcr = Rxfth256|Mrxdmaunlimited|Ab|Am|Apm;
    1.10 		break;