i2c: i801: store and restore the SLVCMD register at load and unload
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Thu, 13 Oct 2016 12:10:35 +0000 (14:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 29 Apr 2018 09:31:56 +0000 (11:31 +0200)
commitfbd45e2957fbf7ed392deab29cd3050a1ab2562f
treec11060eea257c03be5c752b3f860bcfe2833deda
parent9c87602abe12b555e5176403dc7e8b4ddb8ace33
i2c: i801: store and restore the SLVCMD register at load and unload

commit 22e94bd6779e1140350c0792e85c79552ec43673 upstream.

Also do not override any other configuration in this register.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-i801.c