]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 15:48:26 +0000 (11:48 -0400)
commit8f1da1e1401ae6ebcc5640863f4769d5d48b89ad
tree4d4c97aed21eb8c87334f17750d1992e2f0607f2
parentecdb8d176e485e65d865cbdf4cc1102b9b8b1119
i2c: i801: Restore configuration at shutdown

BugLink: http://bugs.launchpad.net/bugs/1773233
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/i2c/busses/i2c-i801.c