Skip to content
Snippets Groups Projects
Commit de5e88d6 authored by Ankit Gupta's avatar Ankit Gupta
Browse files

i2c-qup: avoid multiple request for enable clocks


If i2c transfers are called before system wakeup, i2c
runtime pm gets called and enabled the clock and requesit
gpios to complete the transfer. But for subsequent
transfers we do not need to enable the clocks again if
they are already enabled.

Change-Id: I8fbe4099791e08c67896c4340b1a390145788867
Signed-off-by: default avatarAnkit Gupta <ankgupta@codeaurora.org>
parent a5b90464
Branches
Tags
No related merge requests found
......@@ -599,6 +599,11 @@ static void i2c_qup_sys_suspend(struct qup_i2c_dev *dev)
static void i2c_qup_resume(struct qup_i2c_dev *dev)
{
if (dev->pwr_state == MSM_I2C_PM_ACTIVE) {
dev_err(dev->dev, "attempt to resume when already active\n");
return;
}
i2c_qup_gpio_request(dev);
i2c_qup_clk_path_postponed_register(dev);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment