]> git.baikalelectronics.ru Git - kernel.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)
committerWolfram Sang <wsa@kernel.org>
Mon, 14 Sep 2020 07:02:52 +0000 (09:02 +0200)
commitc878986614233ae838cf67bbcb4291c0b322f096
treefeff146f663be4902f5ce9bd9e29e5a04684c6e7
parent6c9936a7ea23405aa8e84cc6c3c3ecdd0fc073dd
i2c: i801: Fix resume bug

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
drivers/i2c/busses/i2c-i801.c