shithub: riscv

Download patch

ref: 7106166b11abc6f38309cf864e3e4de7cfa685c3
parent: bc3457726a551cc92b17ad4006620cd8b8dc102e
author: cinap_lenrek <[email protected]>
date: Sat Mar 17 21:27:30 EDT 2012

etherigbe: fixup PciCLS if not initialized (qemu)

--- a/sys/src/9/pc/etherigbe.c
+++ b/sys/src/9/pc/etherigbe.c
@@ -1958,8 +1958,9 @@
 				break;
 			case 0x00:
 			case 0xFF:
-				print("igbe: unusable CLS - %d\n", cls*4);
-				continue;
+				cls = 0x08;
+				pcicfgw8(p, PciCLS, cls);
+				break;
 			case 0x08:
 			case 0x10:
 				break;