mirror-linux/drivers/misc/cardreader
Ricky Wu 807221d3c5 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>
2025-08-19 12:37:10 +02:00
..
Kconfig misc: rtsx: list supported models in Kconfig help 2024-10-18 13:40:17 +02:00
Makefile
alcor_pci.c misc: cardreader: Return -EBUSY if regions are busy 2025-04-25 15:54:08 +02:00
rtl8411.c
rts5209.c
rts5227.c misc: rtsx_pci: Add separate CD/WP pin polarity reversal support 2025-08-19 12:37:10 +02:00
rts5228.c misc: rtsx_pci: Add separate CD/WP pin polarity reversal support 2025-08-19 12:37:10 +02:00
rts5228.h
rts5229.c
rts5249.c misc: rtsx_pci: Add separate CD/WP pin polarity reversal support 2025-08-19 12:37:10 +02:00
rts5260.c
rts5260.h
rts5261.c
rts5261.h
rts5264.c misc: rtsx_pci: Add separate CD/WP pin polarity reversal support 2025-08-19 12:37:10 +02:00
rts5264.h misc: rtsx_pci: Add separate CD/WP pin polarity reversal support 2025-08-19 12:37:10 +02:00
rtsx_pcr.c misc: rtsx: Add support for RTS5264 Version B and optimize init flow 2025-06-24 16:45:55 +01:00
rtsx_pcr.h misc: rtsx_pci: Add separate CD/WP pin polarity reversal support 2025-08-19 12:37:10 +02:00
rtsx_usb.c misc: rtsx: usb: Ensure mmc child device is active when card is present 2025-07-16 14:26:39 +02:00