On 13/9/2026 4:26 am, Kathpalia, Tanmay wrote:

On 26-08-2026 08:23, [email protected] wrote:
From: Tze Yee Ng <[email protected]>

The per-mode PHY and controller configuration arrays are static globals
shared across all SD6HC instances. sdhci_cdns6_phy_adj() read device
tree overrides directly into these tables, so DT-derived values could
leak between controllers, and a missing DT property on one controller
would silently reuse a value programmed for another.

Mark the configuration tables const and copy the selected defaults into
per-call local storage before applying any device tree overrides, so the
shared defaults are never mutated

Signed-off-by: Tze Yee Ng <[email protected]>
This patch does not apply on current main. Please rebase and resend.

Hi Tanmay,

Thanks for review. I will rebase on current main and submit as v2.

Reply via email to