diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/sdmmc/sdmmc_mem.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/sdmmc/sdmmc_mem.c b/sys/dev/sdmmc/sdmmc_mem.c index d7980b58d3d..8750b53c715 100644 --- a/sys/dev/sdmmc/sdmmc_mem.c +++ b/sys/dev/sdmmc/sdmmc_mem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdmmc_mem.c,v 1.13 2009/10/03 18:42:36 kettenis Exp $ */ +/* $OpenBSD: sdmmc_mem.c,v 1.14 2010/02/10 23:33:08 drahn Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -96,6 +96,8 @@ sdmmc_mem_enable(struct sdmmc_softc *sc) /* Tell the card(s) to enter the idle state (again). */ sdmmc_go_idle_state(sc); + host_ocr &= card_ocr; /* only allow the common voltages */ + if (sdmmc_send_if_cond(sc, card_ocr) == 0) host_ocr |= SD_OCR_SDHC_CAP; |