Adds runtime pm suspend / resume callback status flag to check
whether runtime pm callback was called or not.
Change-Id: I603d33f730b8b778fbfeb17e827f602416f66524
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
clk_disable(i2c->clk);
exynos_update_ip_idle_status(i2c->idle_ip_index, 1);
+ i2c->runtime_resumed = 0;
return 0;
}
exynos_update_ip_idle_status(i2c->idle_ip_index, 0);
ret = clk_enable(i2c->clk);
+ i2c->runtime_resumed = 1;
if (ret) {
exynos_update_ip_idle_status(i2c->idle_ip_index, 1);
return ret;
int idle_ip_index;
int reset_before_trans;
+ unsigned int runtime_resumed;
};
#endif /*__I2C_EXYNOS5_H */