From c5fc75d9fef37e69848eaeb79be5e1241eff63bf Mon Sep 17 00:00:00 2001 From: manu Date: Thu, 26 Nov 2020 16:40:39 +0000 Subject: [PATCH] sdhci: mmccam: Update vccq in the driver ios Otherwise we always report that the card is running at 1.2V. --- sys/dev/sdhci/sdhci.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/dev/sdhci/sdhci.c b/sys/dev/sdhci/sdhci.c index 75c6253e682f1..d81f26a6f41e8 100644 --- a/sys/dev/sdhci/sdhci.c +++ b/sys/dev/sdhci/sdhci.c @@ -2683,6 +2683,11 @@ sdhci_cam_settran_settings(struct sdhci_slot *slot, union ccb *ccb) if (sdhci_debug > 1) slot_printf(slot, "Bus mode => %d\n", ios->bus_mode); } + if (cts->ios_valid & MMC_VCCQ) { + ios->vccq = new_ios->vccq; + if (sdhci_debug > 1) + slot_printf(slot, "VCCQ => %d\n", ios->vccq); + } /* XXX Provide a way to call a chip-specific IOS update, required for TI */ return (sdhci_cam_update_ios(slot));