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

From: Abel Vesa

Date: Tue Oct 13 2026 - 04:50:26 EST


On 26-10-12 17:50:22, Viken Dadhaniya wrote:
> geni_se_select_mode() is called for every FIFO and SE-DMA transfer, even
> when the serial engine is already configured for the requested mode. Each
> call clears interrupt status and accesses mode-related registers, causing
> unnecessary MMIO operations on the transfer path.
>
> Cache the previously selected mode and skip only redundant mode
> programming. Preserve pending interrupt status cleanup and GPI event
> routing. Invalidate the cache from geni_se_init(). Update it only after a
> valid mode selection.
>
> Signed-off-by: Viken Dadhaniya <viken.dadhaniya@xxxxxxxxxxxxxxxx>

Reviewed-by: Abel Vesa <abel.vesa@xxxxxxxxxxxxxxxx>