mirror-linux/drivers/misc/cardreader
Ricky Wu d2e6fb2c31 misc: rtsx: usb card reader: add OCP support
This patch adds support for Over Current Protection (OCP) to the Realtek
USB card reader driver.

The OCP mechanism protects the hardware by detecting and handling current
overload conditions.
This implementation includes:

- Register configurations to enable OCP monitoring.
- Handling of OCP interrupt events and associated error reporting.
- Card power management changes in response to OCP triggers.

This enhancement improves the robustness of the driver when operating in
environments where electrical anomalies may occur, particularly with SD
and MS card interfaces.

Signed-off-by: Ricky Wu <ricky_wu@realtek.com>
Link: https://lore.kernel.org/r/20250812030811.2426112-1-ricky_wu@realtek.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2025-08-19 14:34:15 +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
rts5228.c
rts5228.h
rts5229.c
rts5249.c
rts5260.c
rts5260.h
rts5261.c
rts5261.h
rts5264.c misc: rtsx: Add support for RTS5264 Version B and optimize init flow 2025-06-24 16:45:55 +01:00
rts5264.h misc: rtsx: Add support for RTS5264 Version B and optimize init flow 2025-06-24 16:45:55 +01: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: Remove deadcode 2025-04-25 15:53:59 +02:00
rtsx_usb.c misc: rtsx: usb card reader: add OCP support 2025-08-19 14:34:15 +02:00