[PATCH 0/2] mmc: cavium: Fix MMC supply switching for cards

From: Wojciech Bartczak
Date: Wed Nov 17 2021 - 17:29:52 EST


Following series of patches fix code related to switching
voltage regulators used by multiple cards in Octeon/OcteonTX2
systems.

Change is necessary to support cards with different voltages,
which is common case in modern configuration where the mix of SD cards
and MMC memory chips is used as main storage.

Aside custom system, the change is required to support reference designs
for CN96xx and CN98xx systems.

First patch contains mid-size rework of do_switch() routine that
includes:
- separation of vmmc/vqmmc switch logic
- separation of register accesses to functions for better readibility
- forming do_switch() as high-level function that controls the flow of
switch operation.

Second patch adds extended description of device-tree usage to
enable code contained in former patch.

Wojciech Bartczak (2):
mmc: cavium: Fix voltage reg. switching for card slots
dt-bindings: mmc: Add vmmc/vqmmc for Cavium driver

.../devicetree/bindings/mmc/cavium-mmc.txt | 47 ++++-
drivers/mmc/host/cavium.c | 168 ++++++++++++++++--
drivers/mmc/host/cavium.h | 8 +-
3 files changed, 202 insertions(+), 21 deletions(-)

--
2.17.1