shithub: riscv

Download patch

ref: f43a5c825cdb437d85d948ab6c40173c821516a5
parent: b31cc134e7cca59b8dd67bb30271b80f554e0da0
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Feb 22 17:53:19 EST 2016

libfis: dont reject drives lacking SSP (sata ssd connected to ide with adapter)

--- a/sys/src/libfis/fis.c
+++ b/sys/src/libfis/fis.c
@@ -288,14 +288,14 @@
 		if(i != 0 && i >> 12 == 1 && j != 0){
 			j >>= 1;
 			f->speeds = j & 7;
-			i = gbit16(id + 78) & gbit16(id + 79);
 			/*
 			 * not acceptable for comreset to
 			 * wipe out device configuration.
 			 * reject drive.
-			 */
+			i = gbit16(id + 78) & gbit16(id + 79);
 			if((i & 1<<6) == 0)
 				return -1;
+			 */
 		}
 	}
 	if(gbit16(id + 206) & 1)