From 703d79bf8297b34223cf749e133f6fad172f8a8b Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 21 May 2017 16:23:57 +0000 Subject: Actually wait on auto command done (ACD) as was the intention. --- sys/dev/fdt/dwmmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/fdt') 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); } -- cgit v1.2.3