diff mbox series

[4/4] misc: rtsx: add Realtek card readers to support SDUC

Message ID 20240719053314.1636649-5-ricky_wu@realtek.com (mailing list archive)
State New
Headers show
Series Add support SDUC for Realtek card readers | expand

Commit Message

Ricky WU July 19, 2024, 5:33 a.m. UTC
Realtek Card readers to support SDUC
RTS5227/RTS522A/RTS5249/RTS524A/RTS525A/
RTS5260/RTS5261/RTS5228/RTS5264

Signed-off-by: Ricky Wu <ricky_wu@realtek.com>
---
 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 +-
 6 files changed, 6 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/misc/cardreader/rts5227.c b/drivers/misc/cardreader/rts5227.c
index cd512284bfb3..020cc7f7cdc2 100644
--- a/drivers/misc/cardreader/rts5227.c
+++ b/drivers/misc/cardreader/rts5227.c
@@ -331,6 +331,7 @@  static const u32 rts5227_ms_pull_ctl_disable_tbl[] = {
 void rts5227_init_params(struct rtsx_pcr *pcr)
 {
 	pcr->extra_caps = EXTRA_CAPS_SD_SDR50 | EXTRA_CAPS_SD_SDR104;
+	pcr->extra_caps |= EXTRA_CAPS_SDUC;
 	pcr->num_slots = 2;
 	pcr->ops = &rts5227_pcr_ops;
 
diff --git a/drivers/misc/cardreader/rts5228.c b/drivers/misc/cardreader/rts5228.c
index 0c7f10bcf6f1..11598adb03c6 100644
--- a/drivers/misc/cardreader/rts5228.c
+++ b/drivers/misc/cardreader/rts5228.c
@@ -686,6 +686,7 @@  void rts5228_init_params(struct rtsx_pcr *pcr)
 	struct rtsx_hw_param *hw_param = &pcr->hw_param;
 
 	pcr->extra_caps = EXTRA_CAPS_SD_SDR50 | EXTRA_CAPS_SD_SDR104;
+	pcr->extra_caps |= EXTRA_CAPS_SDUC;
 	pcr->num_slots = 1;
 	pcr->ops = &rts5228_pcr_ops;
 
diff --git a/drivers/misc/cardreader/rts5249.c b/drivers/misc/cardreader/rts5249.c
index 6c81040e18be..10c6b97a41e9 100644
--- a/drivers/misc/cardreader/rts5249.c
+++ b/drivers/misc/cardreader/rts5249.c
@@ -540,6 +540,7 @@  void rts5249_init_params(struct rtsx_pcr *pcr)
 	struct rtsx_cr_option *option = &(pcr->option);
 
 	pcr->extra_caps = EXTRA_CAPS_SD_SDR50 | EXTRA_CAPS_SD_SDR104;
+	pcr->extra_caps |= EXTRA_CAPS_SDUC;
 	pcr->num_slots = 2;
 	pcr->ops = &rts5249_pcr_ops;
 
diff --git a/drivers/misc/cardreader/rts5260.c b/drivers/misc/cardreader/rts5260.c
index d2d3a6ccb8f7..b35914af593b 100644
--- a/drivers/misc/cardreader/rts5260.c
+++ b/drivers/misc/cardreader/rts5260.c
@@ -586,6 +586,7 @@  void rts5260_init_params(struct rtsx_pcr *pcr)
 	struct rtsx_hw_param *hw_param = &pcr->hw_param;
 
 	pcr->extra_caps = EXTRA_CAPS_SD_SDR50 | EXTRA_CAPS_SD_SDR104;
+	pcr->extra_caps |= EXTRA_CAPS_SDUC;
 	pcr->num_slots = 2;
 
 	pcr->flags = 0;
diff --git a/drivers/misc/cardreader/rts5261.c b/drivers/misc/cardreader/rts5261.c
index 67252512a132..b4faf831ecbd 100644
--- a/drivers/misc/cardreader/rts5261.c
+++ b/drivers/misc/cardreader/rts5261.c
@@ -766,6 +766,7 @@  void rts5261_init_params(struct rtsx_pcr *pcr)
 	u8 val;
 
 	pcr->extra_caps = EXTRA_CAPS_SD_SDR50 | EXTRA_CAPS_SD_SDR104;
+	pcr->extra_caps |= EXTRA_CAPS_SDUC;
 	rtsx_pci_read_register(pcr, RTS5261_FW_STATUS, &val);
 	if (!(val & RTS5261_EXPRESS_LINK_FAIL_MASK))
 		pcr->extra_caps |= EXTRA_CAPS_SD_EXPRESS;
diff --git a/drivers/misc/cardreader/rts5264.c b/drivers/misc/cardreader/rts5264.c
index 8be4ed7d9d47..bd2ae5c525fb 100644
--- a/drivers/misc/cardreader/rts5264.c
+++ b/drivers/misc/cardreader/rts5264.c
@@ -845,7 +845,7 @@  void rts5264_init_params(struct rtsx_pcr *pcr)
 	u8 val;
 
 	pcr->extra_caps = EXTRA_CAPS_SD_SDR50 | EXTRA_CAPS_SD_SDR104;
-	pcr->extra_caps |= EXTRA_CAPS_NO_MMC;
+	pcr->extra_caps |= EXTRA_CAPS_NO_MMC | EXTRA_CAPS_SDUC;
 	rtsx_pci_read_register(pcr, RTS5264_FW_STATUS, &val);
 	if (!(val & RTS5264_EXPRESS_LINK_FAIL_MASK))
 		pcr->extra_caps |= EXTRA_CAPS_SD_EXPRESS;