Module Name: src Committed By: jmcneill Date: Sat Jan 19 17:45:28 UTC 2013
Modified Files: src/sys/arch/evbarm/rpi: rpi_machdep.c Log Message: if the firmware gives us a bad emmc clock rate, ignore it To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sys/arch/evbarm/rpi/rpi_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/evbarm/rpi/rpi_machdep.c diff -u src/sys/arch/evbarm/rpi/rpi_machdep.c:1.28 src/sys/arch/evbarm/rpi/rpi_machdep.c:1.29 --- src/sys/arch/evbarm/rpi/rpi_machdep.c:1.28 Fri Jan 11 12:47:38 2013 +++ src/sys/arch/evbarm/rpi/rpi_machdep.c Sat Jan 19 17:45:28 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: rpi_machdep.c,v 1.28 2013/01/11 12:47:38 jmcneill Exp $ */ +/* $NetBSD: rpi_machdep.c,v 1.29 2013/01/19 17:45:28 jmcneill Exp $ */ /*- * Copyright (c) 2012 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rpi_machdep.c,v 1.28 2013/01/11 12:47:38 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rpi_machdep.c,v 1.29 2013/01/19 17:45:28 jmcneill Exp $"); #include "opt_evbarm_boardtype.h" @@ -733,7 +733,8 @@ rpi_device_register(device_t dev, void * #if NSDHC > 0 if (device_is_a(dev, "sdhc") && - vcprop_tag_success_p(&vb.vbt_emmcclockrate.tag)) { + vcprop_tag_success_p(&vb.vbt_emmcclockrate.tag) && + vb.vbt_emmcclockrate.rate > 0) { prop_dictionary_set_uint32(dict, "frequency", vb.vbt_emmcclockrate.rate); }