]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: i801: Restore configuration at shutdown
authorJean Delvare <jdelvare@suse.de>
Wed, 11 Apr 2018 16:05:34 +0000 (18:05 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 11 Apr 2018 21:08:13 +0000 (23:08 +0200)
commit7ab5e7dbbd9bcc94d7684eadc15a58bd6ccc7c4c
tree16fe45f9a16a4827353f515a50bbbceac1657d17
parent4655b7849c019c6c70e9ee6fa65f81cfe0010a05
i2c: i801: Restore configuration at shutdown

On some systems, the BIOS expects certain SMBus register values to
match the hardware defaults. Restore these configuration registers at
shutdown time to avoid confusing the BIOS. This avoids hard-locking
such systems upon reboot.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Tested-by: Jason Andryuk <jandryuk@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@vger.kernel.org
drivers/i2c/busses/i2c-i801.c