]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 1 Oct 2018 12:55:52 +0000 (14:55 +0200)
commit2deae24b30c14372dc0069b470e5188e0f74d335
treef191ae8c5d2b97ba1aa4e2b72b9c1b53ca036571
parent8a66565a6ed3edc758cf08f01882683ea5e72ec8
i2c: sprd: Prevent i2c accesses after suspend is called

BugLink: http://bugs.launchpad.net/bugs/1794889
[ Upstream commit da33aa03fa34c918faf2c371ebda0dd961d7ccb2 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/i2c/busses/i2c-sprd.c