shithub: riscv

Download patch

ref: 2f8ee8fb4ee529c8953f934dc7c6b1828b453a31
parent: 95dbc72801b507b9c2c42444347b98872576244a
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Nov 9 19:53:22 EST 2014

pc, pc64: command flag sometimes doesnt reset, just check for IBF

--- a/sys/src/9/pc/ec.c
+++ b/sys/src/9/pc/ec.c
@@ -96,7 +96,7 @@
 	lock(&ec);
 	if(!ec.init)
 		goto out;
-	if(ecwait(BURST|CMD, 0))
+	if(ecwait(IBF, 0))
 		goto out;
 	ecwr(EC_SC, RD_EC);
 	if(ecwait(IBF, 0))
@@ -120,7 +120,7 @@
 	lock(&ec);
 	if(!ec.init)
 		goto out;
-	if(ecwait(BURST|CMD, 0))
+	if(ecwait(IBF, 0))
 		goto out;
 	ecwr(EC_SC, WR_EC);
 	if(ecwait(IBF, 0))