Skip to content

Commit 1af59cd

Browse files
raagjadavlucasdemarchi
authored andcommitted
drm/xe/i2c: Don't rely on d3cold.allowed flag in system PM path
In S3 and above sleep states, the device can loose power regardless of d3cold.allowed flag. Bring up I2C controller explicitly in system PM path to ensure its normal operation after losing power. v2: Cover S3 and above states (Rodrigo) Fixes: 0ea07b6 ("drm/xe/pm: Wire up suspend/resume for I2C controller") Signed-off-by: Raag Jadav <[email protected]> Reviewed-by: Rodrigo Vivi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rodrigo Vivi <[email protected]> (cherry picked from commit e4863f1) Signed-off-by: Lucas De Marchi <[email protected]>
1 parent 08fdfd2 commit 1af59cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/xe/xe_pm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ int xe_pm_resume(struct xe_device *xe)
201201
if (err)
202202
goto err;
203203

204-
xe_i2c_pm_resume(xe, xe->d3cold.allowed);
204+
xe_i2c_pm_resume(xe, true);
205205

206206
xe_irq_resume(xe);
207207

0 commit comments

Comments
 (0)