Skip to content

mmc: cavium: Fix MMC supply switching for cards

Wojciech Bartczak linux-devicetree linux-mmc lkml oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mmc: cavium: Fix voltage reg. switching for card slotsdrivers/mmc/host/cavium.c drivers/mmc/host/cavium.h+157 -190 replies
2/2dt-bindings: mmc: Add vmmc/vqmmc for Cavium driverDocumentation/devicetree/bindings/mmc/cavium-mmc.txt+45 -21 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.17.1