i2c: imx-lpi2c: add runtime pm support
authorFugang Duan <fugang.duan@nxp.com>
Tue, 2 Jan 2018 09:11:52 +0000 (17:11 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 24 Jan 2018 06:20:30 +0000 (07:20 +0100)
commit13d6eb20fc79a1e606307256dad4098375539a09
treebaa432a295e9a72e589696a6b250c72e1bcba369
parentfe34fbf93f87e9e0f78eeeb6f21b2fc310cb6080
i2c: imx-lpi2c: add runtime pm support

Add runtime pm support to dynamically manage the clock to avoid enable/disable
clock in frequently that can improve the i2c bus transfer performance.

And use pm_runtime_force_suspend/resume() instead of lpi2c_imx_suspend/resume().

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-imx-lpi2c.c