diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-05-21 16:23:57 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-05-21 16:23:57 +0000 |
commit | 703d79bf8297b34223cf749e133f6fad172f8a8b (patch) | |
tree | 664fa591e61a827473cadcd2db5cc11740403181 /sys/dev/fdt | |
parent | aa81e0842e8d36a0c45977a53a08f6963818ccc6 (diff) |
Actually wait on auto command done (ACD) as was the intention.
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r-- | sys/dev/fdt/dwmmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fdt/dwmmc.c b/sys/dev/fdt/dwmmc.c index 70311150174..0fad25875ca 100644 --- a/sys/dev/fdt/dwmmc.c +++ b/sys/dev/fdt/dwmmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwmmc.c,v 1.1 2017/05/21 08:59:45 kettenis Exp $ */ +/* $OpenBSD: dwmmc.c,v 1.2 2017/05/21 16:23:56 kettenis Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * @@ -501,7 +501,7 @@ dwmmc_exec_command(sdmmc_chipset_handle_t sch, struct sdmmc_command *cmd) if (cmdval & SDMMC_CMD_SEND_AUTO_STOP) { for (timeout = 10000; timeout > 0; timeout--) { status = HREAD4(sc, SDMMC_RINTSTS); - if (status & SDMMC_RINTSTS_CD) + if (status & SDMMC_RINTSTS_ACD) break; delay(10); } |