diff options
author | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2018-03-20 04:18:41 +0000 |
---|---|---|
committer | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2018-03-20 04:18:41 +0000 |
commit | c197a2671fbc08ee04c0abf2b9c9234d1068a3a7 (patch) | |
tree | 5b3f31f860e1492dec5fe86010f865c8e85fced8 /sys/dev/sdmmc/sdmmc.c | |
parent | bd46ffe0b1436669d82cab30d7f84932ab86c278 (diff) |
Add hibernate IO path for sdmmc(4). This requires some help from the
sdmmc chipset driver, currently only implemented in sdhc(4), but
mostly uses the regular path. sdhc(4) also needed the ability to
perform IO while cold.
ok deraadt@
Diffstat (limited to 'sys/dev/sdmmc/sdmmc.c')
-rw-r--r-- | sys/dev/sdmmc/sdmmc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/sdmmc/sdmmc.c b/sys/dev/sdmmc/sdmmc.c index bb7d4cc96b6..7a7fc01389e 100644 --- a/sys/dev/sdmmc/sdmmc.c +++ b/sys/dev/sdmmc/sdmmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdmmc.c,v 1.49 2018/02/11 20:58:40 patrick Exp $ */ +/* $OpenBSD: sdmmc.c,v 1.50 2018/03/20 04:18:40 jmatthew Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -630,7 +630,8 @@ sdmmc_mmc_command(struct sdmmc_softc *sc, struct sdmmc_command *cmd) #endif error = cmd->c_error; - wakeup(cmd); + if (!cold) + wakeup(cmd); return error; } |