From db79251b3796d686f36603dcac96572448e7a2ab Mon Sep 17 00:00:00 2001 From: Arpit Saini Date: Thu, 24 Sep 2026 16:03:46 +0530 Subject: [PATCH] FROMLIST: drm/bridge: anx7625: Fix register access in low-power mode The INTERFACE_CHANGE_INT_MASK register was accessed outside the Type-C initialization path added for minimal Type-C support. On platforms without Type-C support, this causes the driver to access the RX-P0 I2C client while the ANX7625 is in its low-power configuration. The access fails during probe and results in errors such as: [drm:i2c_access_workaround.isra.0 [anx7625]] *ERROR* fail to access i2c id=3f :39 [drm:anx7625_i2c_probe [anx7625]] *ERROR* fail to write i2c id=3f :43 Keep the interrupt-mask update within the low-power-mode check block. Link: https://lore.kernel.org/all/20260924-latest_tag-v1-1-7150d373f042@oss.qualcomm.com/ Fixes: f81455b2d332 ("drm: bridge: anx7625: implement minimal Type-C support") Reported-by: Salendarsingh Gaud Signed-off-by: Arpit Saini --- drivers/gpu/drm/bridge/analogix/anx7625.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c index 513c11cdbc74a..783c8150051ce 100644 --- a/drivers/gpu/drm/bridge/analogix/anx7625.c +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -2929,11 +2929,11 @@ static int anx7625_i2c_probe(struct i2c_client *client) pm_runtime_get_sync(dev); _anx7625_hpd_polling(platform, 5000 * 100); - } - if (platform->pdata.intp_irq) - anx7625_reg_write(platform, platform->i2c.rx_p0_client, - INTERFACE_CHANGE_INT_MASK, 0); + if (platform->pdata.intp_irq) + anx7625_reg_write(platform, platform->i2c.rx_p0_client, + INTERFACE_CHANGE_INT_MASK, 0); + } /* After getting runtime handle */ ret = anx7625_typec_register(platform);