]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i2c: i801: Fix resume bug
authorVolker Rümelin <vr_qemu@t-online.de>
Tue, 1 Sep 2020 13:22:21 +0000 (15:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Sep 2020 11:00:00 +0000 (13:00 +0200)
commitc60801b98e5a39960b7914fa8fdeb3ae0fe90754
tree094ea26ee97cf194150399f9bd57a2981428588f
parent8a9e8484683fced8061af0759dd511dfe29be19a
i2c: i801: Fix resume bug

commit 66d402e2e9455cf0213c42b97f22a0493372d7cc upstream.

On suspend the original host configuration gets restored. The
resume routine has to undo this, otherwise the SMBus master
may be left in disabled state or in i2c mode.

[JD: Rebased on v5.8, moved the write into i801_setup_hstcfg.]

Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-i801.c