[PATCH 0/2] soc: qcom: geni-se: Avoid redundant transfer mode selection

From: Viken Dadhaniya

Date: Mon Oct 12 2026 - 08:22:44 EST


The GENI transfer mode is commonly unchanged across consecutive transfers,
but geni_se_select_mode() currently reprograms mode-related registers on
every call.

Avoid redundant mode programming by caching the previously selected mode.
Pending GENI and DMA interrupt status is still cleared for cached selections
so stale completion status cannot complete a subsequent transfer after a
timeout, abort, or reset. GSI event routing remains enabled for cached GPI
mode selections.

This series:

1. Separates IRQ status clearing from the full mode-reset operation.
2. Adds transfer-mode caching to avoid redundant mode programming.

Signed-off-by: Viken Dadhaniya <viken.dadhaniya@xxxxxxxxxxxxxxxx>
---
Viken Dadhaniya (2):
soc: qcom: geni-se: Split IRQ status clearing from mode selection
soc: qcom: geni-se: Avoid redundant transfer mode selection

drivers/soc/qcom/qcom-geni-se.c | 20 +++++++++++++++++---
include/linux/soc/qcom/geni-se.h | 1 +
2 files changed, 18 insertions(+), 3 deletions(-)
---
base-commit: becb95e45ef0dda9ffb35156d909d3da7a2789c3
change-id: 20261012-cache-se-mode-578c2fa35af1

Best regards,
--
Viken Dadhaniya <viken.dadhaniya@xxxxxxxxxxxxxxxx>