summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRicky Wu <ricky_wu@realtek.com>2025-08-12 09:35:21 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-08-19 13:37:10 +0300
commit807221d3c5ff6e3c91ff57bc82a0b7a541462e20 (patch)
tree87b2069866b02286e2b17e23126c14e8670b99f5 /include/linux
parent6e6fe5a99048c020594d815a1c0f8ad183073e66 (diff)
downloadlinux-807221d3c5ff6e3c91ff57bc82a0b7a541462e20.tar.xz
misc: rtsx_pci: Add separate CD/WP pin polarity reversal support
Previously, the Card Detect (CD) and Write Protect (WP) pins shared the same reverse polarity setting in the configuration space. This meant both signals were reversed together, without the ability to configure them individually. This patch introduces two new parameters: sd_cd_reverse_en – enable reverse polarity for the CD pin. sd_wp_reverse_en – enable reverse polarity for the WP pin. With this change, the controller can now support: 1.Reversing both CD and WP pins together (original behavior). 2.Reversing CD and WP pins separately (newly added behavior), if supported by the configuration space. This provides greater flexibility when dealing with devices that have independent polarity requirements for CD and WP pins. Signed-off-by: Ricky Wu <ricky_wu@realtek.com> Link: https://lore.kernel.org/r/20250812063521.2427696-1-ricky_wu@realtek.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/rtsx_pci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/rtsx_pci.h b/include/linux/rtsx_pci.h
index 3b4c36705a9b..3c5689356004 100644
--- a/include/linux/rtsx_pci.h
+++ b/include/linux/rtsx_pci.h
@@ -1160,6 +1160,8 @@ struct rtsx_cr_option {
bool ocp_en;
u8 sd_400mA_ocp_thd;
u8 sd_800mA_ocp_thd;
+ u8 sd_cd_reverse_en;
+ u8 sd_wp_reverse_en;
};
/*