i2c: i801: Restore configuration at shutdown
authorJean Delvare <jdelvare@suse.de>
Wed, 11 Apr 2018 16:05:34 +0000 (18:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2018 07:42:54 +0000 (09:42 +0200)
commita64854c5b2bae82d06baf665dd8b7c2fc20e8c94
tree35fb1dc2f4944c75ffa4579780d77730fb14319f
parent8598c72001ad5935f03266f0befc5779567ed933
i2c: i801: Restore configuration at shutdown

commit f7f6d915a10f7f2bce17e3b1b7d3376562395a28 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-i801.c