git: 9front

Download patch

ref: f968d09932a707678885e1afda91c476d2c27d6e
parent: c8afd04d4c9e32b9e234e33e80b4a365cd408919
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Apr 27 17:55:16 EDT 2019

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

--- a/sys/src/9/pc/ether8169.c
+++ b/sys/src/9/pc/ether8169.c
@@ -726,6 +726,7 @@
 	csr32w(ctlr, Tcr, Ifg1|Ifg0|Mtxdmaunlimited);
 	ctlr->tcr = csr32r(ctlr, Tcr);
 	switch(ctlr->macv){
+	case Macv42:
 	case Macv45:
 		ctlr->rcr = Rxfth256|Mrxdmaunlimited|Ab|Am|Apm;
 		break;
--