shithub: riscv

Download patch

ref: f8f118423c894a028a99e02e7eec7e85f785d919
parent: aadc58104016170b61b62a31daa295895a640b60
author: cinap_lenrek <[email protected]>
date: Sat Nov 24 11:41:38 EST 2012

usbohci: revert td overrun error handling change from sources

regarding the ohci spec, a overrun td might supply a full
packet of data. this change seemed to have caused nusb/kb to
fail with getting spurious zero byte reads. reverting for now.

--- a/sys/src/9/pc/usbohci.c
+++ b/sys/src/9/pc/usbohci.c
@@ -1147,7 +1147,6 @@
 
 	switch(err){
 	case Tddataovr:			/* Overrun is not an error */
-		break;
 	case Tdok:
 		/* virtualbox doesn't always report underflow on short packets */
 		if(td->cbp == 0)