On Sat, Mar 17, 2018 at 07:41:39PM +0100, Mark Kettenis wrote:
> Index: dev/sdmmc/sdhc.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/sdmmc/sdhc.c,v
> retrieving revision 1.56
> diff -u -p -r1.56 sdhc.c
> --- dev/sdmmc/sdhc.c  10 Feb 2018 05:21:13 -0000      1.56
> +++ dev/sdmmc/sdhc.c  17 Mar 2018 18:34:08 -0000
> @@ -203,6 +203,11 @@ sdhc_host_found(struct sdhc_softc *sc, b
>                       hp->clkbase = SDHC_BASE_FREQ_KHZ(caps);
>       }
>       if (hp->clkbase == 0) {
> +             /* Make sure we can clock down to 400 kHz. */
> +             max_clock = 400 * 2046;
> +             hp->clkbase = sc->sc_clkbase;
> +     }

The above looks strange. Did you mean "up to 400 MHz"?
max_clock is in kHz.

Reply via email to