public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] mmc: cavium: Fix MMC supply switching for cards
@ 2021-11-17 22:27 Wojciech Bartczak
  2021-11-17 22:28 ` [PATCH 1/2] mmc: cavium: Fix voltage reg. switching for card slots Wojciech Bartczak
  2021-11-17 22:28 ` [PATCH 2/2] dt-bindings: mmc: Add vmmc/vqmmc for Cavium driver Wojciech Bartczak
  0 siblings, 2 replies; 5+ messages in thread
From: Wojciech Bartczak @ 2021-11-17 22:27 UTC (permalink / raw)
  To: linux-mmc
  Cc: ulf.hansson, beanhuo, tanxiaofei, robh+dt, devicetree,
	linux-kernel, wbartczak

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-11-23 11:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-17 22:27 [PATCH 0/2] mmc: cavium: Fix MMC supply switching for cards Wojciech Bartczak
2021-11-17 22:28 ` [PATCH 1/2] mmc: cavium: Fix voltage reg. switching for card slots Wojciech Bartczak
2021-11-19  3:50   ` kernel test robot
2021-11-17 22:28 ` [PATCH 2/2] dt-bindings: mmc: Add vmmc/vqmmc for Cavium driver Wojciech Bartczak
2021-11-23 11:51   ` Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox