From: patrick Date: Thu, 9 Aug 2018 13:50:15 +0000 (+0000) Subject: Correct the bitmask that returns the function count. We missed a bit X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=154570e226f1f455bfd646dc2712101a0654dc8a;p=openbsd Correct the bitmask that returns the function count. We missed a bit and thus only supported 4 functions instead of 8. ok kettenis@ --- diff --git a/sys/dev/sdmmc/sdmmc_ioreg.h b/sys/dev/sdmmc/sdmmc_ioreg.h index 627c5f99b3a..b074ba785e7 100644 --- a/sys/dev/sdmmc/sdmmc_ioreg.h +++ b/sys/dev/sdmmc/sdmmc_ioreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sdmmc_ioreg.h,v 1.10 2018/06/04 13:33:10 patrick Exp $ */ +/* $OpenBSD: sdmmc_ioreg.h,v 1.11 2018/08/09 13:50:15 patrick Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler @@ -55,7 +55,7 @@ /* SD R4 response (IO OCR) */ #define SD_IO_OCR_MEM_READY (1<<31) -#define SD_IO_OCR_NUM_FUNCTIONS(ocr) (((ocr) >> 28) & 0x3) +#define SD_IO_OCR_NUM_FUNCTIONS(ocr) (((ocr) >> 28) & 0x7) /* XXX big fat memory present "flag" because we don't know better */ #define SD_IO_OCR_MEM_PRESENT (0xf<<24) #define SD_IO_OCR_MASK 0x00fffff0