diff options
Diffstat (limited to 'sys/dev/fdt/sximmc.c')
| -rw-r--r-- | sys/dev/fdt/sximmc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/fdt/sximmc.c b/sys/dev/fdt/sximmc.c index 71c2cbacd5a..1d6e1ba7132 100644 --- a/sys/dev/fdt/sximmc.c +++ b/sys/dev/fdt/sximmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sximmc.c,v 1.10 2020/01/09 14:35:20 mpi Exp $ */ +/* $OpenBSD: sximmc.c,v 1.11 2020/01/11 01:18:29 cheloha Exp $ */ /* $NetBSD: awin_mmc.c,v 1.23 2015/11/14 10:32:40 bouyer Exp $ */ /*- @@ -978,8 +978,8 @@ sximmc_exec_command(sdmmc_chipset_handle_t sch, struct sdmmc_command *cmd) cmd->c_error = sximmc_dma_prepare(sc, cmd); MMC_WRITE(sc, SXIMMC_CMD, cmdval | cmd->c_opcode); if (cmd->c_error == 0) { - cmd->c_error = tsleep(&sc->sc_idma_idst, - PWAIT, "idma", hz*10); + cmd->c_error = tsleep_nsec(&sc->sc_idma_idst, + PWAIT, "idma", SEC_TO_NSEC(10)); } sximmc_dma_complete(sc); if (sc->sc_idma_idst & SXIMMC_IDST_ERROR) { |
