In the process of making the sdhci driver work with my laptop, I noted a
cosmetic issue where the SD card's serial number is not correctly
reported (it's always zero). Possible patch attached,

        imb
Index: mmc.c
===================================================================
--- mmc.c	(revision 217480)
+++ mmc.c	(working copy)
@@ -749,7 +749,10 @@
 	uint32_t retval = bits[i] >> shift;
 	if (size + shift > 32)
 		retval |= bits[i - 1] << (32 - shift);
-	return (retval & ((1 << size) - 1));
+        if (size < 32)
+		return (retval & ((1 << size) - 1));
+	else 
+		return (retval);
 }
 
 static void
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to