[PATCH 0/4] Add support SDUC for Realtek card readers

From: Ricky Wu
Date: Fri Jul 19 2024 - 01:34:01 EST


Summary:
this patch is for mmc to support SDUC(Secure Digital Ultra Capacity)
and add Realtek Cardreaders to support it

About SDUC:
SDUC is defined in SD7.0 spec, it support the max capacity is 128TB[1]

Roughly implemented functions by this patch:
1.Mutual identification of SDUC in ACMD41 initialization (5.2.1[2])
2.SDUC card user area capacity calculation (5.2.2[2])
3.Memory read/write commands sequence (5.2.3[2])
4.Erase Commands Sequence (5.2.4[2])

patches:
patch#1: Defined functions and modified some type of parameter
patch#2: For mmc to support SDUC
patch#3: Add Realtek sdmmc host to support SDUC
patch#4: Add Realtek card readers to support SDUC

Reference:
[1] SD Specifications Part 1 Physical Layer Specification Version 7.00
[2] SD Specifications SDUC Host Implementation Guideline Version 1.00

Ricky Wu(4):
mmc: core: some definitions and type modifications for SDUC
mmc: core: add SDUC init rw erase flow to mmc
mmc: rtsx: make Realtek sdmmc to support SDUC
misc: rtsx: add Realtek card readers to support SDUC

drivers/misc/cardreader/rts5227.c | 1 +
drivers/misc/cardreader/rts5228.c | 1 +
drivers/misc/cardreader/rts5249.c | 1 +
drivers/misc/cardreader/rts5260.c | 1 +
drivers/misc/cardreader/rts5261.c | 1 +
drivers/misc/cardreader/rts5264.c | 2 +-
drivers/mmc/core/block.c | 13 +++++++--
drivers/mmc/core/bus.c | 4 ++-
drivers/mmc/core/card.h | 3 ++
drivers/mmc/core/core.c | 38 +++++++++++++++++--------
drivers/mmc/core/core.h | 6 ++--
drivers/mmc/core/host.h | 5 ++++
drivers/mmc/core/queue.h | 1 +
drivers/mmc/core/sd.c | 47 +++++++++++++++++++++++++++++++
drivers/mmc/host/rtsx_pci_sdmmc.c | 6 ++++
include/linux/mmc/card.h | 2 +-
include/linux/mmc/core.h | 1 +
include/linux/mmc/host.h | 1 +
include/linux/mmc/sd.h | 5 ++++
include/linux/rtsx_pci.h | 1 +
20 files changed, 121 insertions(+), 19 deletions(-)


--
2.25.1