]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-i801: Restore the device state before leaving
authorJean Delvare <khali@linux-fr.org>
Thu, 22 Mar 2007 18:49:01 +0000 (19:49 +0100)
committerJean Delvare <khali@arrakis.delvare>
Thu, 22 Mar 2007 18:49:01 +0000 (19:49 +0100)
commit5a6cdecae62f24b08fd12fb77a017d32017e5fa4
treee0470ae1e5c1e4d3114865e15c471f30bc047dea
parent02a1e416f8dadcac84dd58eb166adccaebdced01
i2c-i801: Restore the device state before leaving

Restore the original host configuration on driver unload and on
suspend. In particular this returns the SMBus master in I2C mode if it
was originally in I2C mode, which should help with suspend/resume if
the BIOS expects to find the SMBus master in I2C mode.

This fixes bug #6449 (for real this time.)
http://bugzilla.kernel.org/show_bug.cgi?id=6449

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Tommi Kyntola <tommi.kyntola@ray.fi>
drivers/i2c/busses/i2c-i801.c