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 misc: rtsx: add to support new card reader rts5264 new definition and function 2023-12-15 17:27:04 +01:00
alcor_pci.c misc: cardreader: Return -EBUSY if regions are busy 2025-04-25 15:54:08 +02:00
rtl8411.c misc: rtsx: Quiesce rts5249 on system suspend 2022-01-26 18:53:28 +01:00
rts5209.c misc: rtsx: Quiesce rts5249 on system suspend 2022-01-26 18:53:28 +01:00
rts5227.c misc: rtsx: Fix some platforms can not boot and move the l1ss judgment to probe 2023-09-25 10:48:19 +02:00
rts5228.c misc: rtsx: Fix some platforms can not boot and move the l1ss judgment to probe 2023-09-25 10:48:19 +02:00
rts5228.h misc: rtsx: Add support new chip rts5228 mmc: rtsx: Add support MMC_CAP2_NO_MMC 2020-07-10 14:58:47 +02:00
rts5229.c misc: rtsx: Quiesce rts5249 on system suspend 2022-01-26 18:53:28 +01:00
rts5249.c misc: rtsx: Fix some platforms can not boot and move the l1ss judgment to probe 2023-09-25 10:48:19 +02:00
rts5260.c misc: rtsx: Fix some platforms can not boot and move the l1ss judgment to probe 2023-09-25 10:48:19 +02:00
rts5260.h
rts5261.c misc: rtsx: Fix some platforms can not boot and move the l1ss judgment to probe 2023-09-25 10:48:19 +02:00
rts5261.h misc: rtsx: Check mmc support for RTS5261 2020-11-16 11:59:30 +01:00
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