Commit 7c5b3c15 authored by Rajat Jain's avatar Rajat Jain Committed by Wolfram Sang
Browse files

i2c: designware: Enable async suspend / resume of designware devices



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: default avatarRajat Jain <rajatja@google.com>
Acked-by: default avatarJarkko Nikula <jarkko.nikula@linux.intel.com>
Tested-by: default avatarJarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent ebe82cf9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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));