shithub: riscv

Download patch

ref: f3749669bae190d13eb76f3402feca7edae8a74a
parent: 28f7f3f9d7b556c2e315a31a046860a00ec68240
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Apr 26 14:22:17 EDT 2014

pmmc: recognize generic mmc controllers (untested)

--- a/sys/src/9/pc/pmmc.c
+++ b/sys/src/9/pc/pmmc.c
@@ -221,6 +221,8 @@
 
 	p = nil;
 	while((p = pcimatch(p, 0, 0)) != nil){
+		if(p->ccrb == 8 && p->ccru == 5)
+			break;
 		if(p->vid == 0x1180){	/* Ricoh */
 			if(p->did == 0xe822)	/* 5U822 SD/MMC */
 				break;