Date: Thu, 27 Aug 2015 16:24:31 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287213 - head/sys/dev/mmc/host Message-ID: <201508271624.t7RGOV3l031698@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: andrew Date: Thu Aug 27 16:24:30 2015 New Revision: 287213 URL: https://svnweb.freebsd.org/changeset/base/287213 Log: Limit the speed to the bus frequency. Sponsored by: ABT Systems Ltd Modified: head/sys/dev/mmc/host/dwmmc.c Modified: head/sys/dev/mmc/host/dwmmc.c ============================================================================== --- head/sys/dev/mmc/host/dwmmc.c Thu Aug 27 16:18:22 2015 (r287212) +++ head/sys/dev/mmc/host/dwmmc.c Thu Aug 27 16:24:30 2015 (r287213) @@ -651,7 +651,7 @@ dwmmc_attach(device_t dev) WRITE4(sc, SDMMC_CTRL, SDMMC_CTRL_INT_ENABLE); sc->host.f_min = 400000; - sc->host.f_max = 200000000; + sc->host.f_max = min(200000000, sc->bus_hz); sc->host.host_ocr = MMC_OCR_320_330 | MMC_OCR_330_340; sc->host.caps = MMC_CAP_4_BIT_DATA;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508271624.t7RGOV3l031698>