]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: sprd: Prevent i2c accesses after suspend is called
authorBaolin Wang <baolin.wang@linaro.org>
Mon, 9 Apr 2018 06:40:54 +0000 (14:40 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 27 Apr 2018 12:12:17 +0000 (14:12 +0200)
commit38d0344da2ecb84c86df71b21aabe5b66c8f5281
treee84cbc68a2d68b3dc2afb61e62e6a9bdc9852173
parent13fddbdca9cdcb4d08e63cba7b327f7ad1092f61
i2c: sprd: Prevent i2c accesses after suspend is called

Add one flag to indicate if the i2c controller has been in suspend state,
which can prevent i2c accesses after i2c controller is suspended following
system suspend.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-sprd.c