Thread (8 messages) 8 messages, 2 authors, 2021-11-29
STALE1667d REVIEWED: 2 (0M)

[PATCH v2 1/3] i2c: designware: Enable async suspend / resume of designware devices

From: Rajat Jain <hidden>
Date: 2021-10-25 21:35:44
Also in: linux-i2c, lkml
Subsystem: i2c subsystem, i2c subsystem host drivers, synopsys designware i2c driver, the rest · Maintainers: Andi Shyti, Mika Westerberg, Linus Torvalds

Mark the designware devices for asynchronous suspend. With this, the
resume for designware devices does not get stuck behind other unrelated
devices (e.g. intel_backlight that takes hundreds of ms to resume,
waiting for its parent devices).

Signed-off-by: Rajat Jain <redacted>
Acked-by: Jarkko Nikula <redacted>
Tested-by: Jarkko Nikula <redacted>
---
v2: Add Jarkko's ack / tested by

 drivers/i2c/busses/i2c-designware-platdrv.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c
index 21113665ddea..2bd81abc86f6 100644
--- a/drivers/i2c/busses/i2c-designware-platdrv.c
+++ b/drivers/i2c/busses/i2c-designware-platdrv.c
@@ -293,6 +293,8 @@ static int dw_i2c_plat_probe(struct platform_device *pdev)
 					DPM_FLAG_MAY_SKIP_RESUME);
 	}
 
+	device_enable_async_suspend(&pdev->dev);
+
 	/* The code below assumes runtime PM to be disabled. */
 	WARN_ON(pm_runtime_enabled(&pdev->dev));
 
-- 
2.33.0.1079.g6e70778dc9-goog
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help