]> 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)
commit4c3814dae14976155b6defddc53164230c9dddeb
treee84cbc68a2d68b3dc2afb61e62e6a9bdc9852173
parent7ece320545a2f83345d28ae0fea5eb7140c42da4
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