i2c: rk3x: Make sure the i2c transfer to be finished before system reboot
authorDavid Wu <david.wu@rock-chips.com>
Wed, 3 Aug 2016 03:27:31 +0000 (11:27 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 26 May 2017 04:03:12 +0000 (12:03 +0800)
commitaa96c283d37621ec3b88ea8b42f21011768525d6
tree2b89b709edbf2476801d82fe9a31c9f9c9fb376e
parentc6b11bfdef50b338eecc9a933b531a03b06d8e1e
i2c: rk3x: Make sure the i2c transfer to be finished before system reboot

If the system rebooted, there might be i2c transfer at the
same time, it will make something unpredictable, because
the i2c host was reseted, but the slave device wasn't, such
as rk808 pmic, so make sure the i2c transfer to be finished
before system shutdown at the reset mode.

Change-Id: I3c09f3acbe86595c295edc191aa38351adb7d5dc
Signed-off-by: David Wu <david.wu@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
arch/arm/kernel/reboot.c
arch/arm64/kernel/process.c
drivers/i2c/busses/i2c-rk3x.c
include/linux/reboot.h
kernel/reboot.c