]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] i2c-i801: Fix resume when PEC is used
authorJean Delvare <khali@linux-fr.org>
Thu, 20 Apr 2006 09:43:18 +0000 (02:43 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 20 Apr 2006 14:54:04 +0000 (07:54 -0700)
commita651b3285bbb17a4c984506581fb5e96004ed191
treeb5b5eaf90c1bc1043073fd1ba76feb99f1232131
parent198d553d1269714c93ff95c25b6f22b4e5ec8ce8
[PATCH] i2c-i801: Fix resume when PEC is used

Fix for bug #6395:

Fail to resume on Tecra M2 with ADM1032 and Intel 82801DBM

The BIOS of the Tecra M2 doesn't like it when it has to reboot or resume
after the i2c-i801 driver has left the SMBus in PEC mode.  The most simple
fix is to clear the PEC bit after after every transaction.  That's what
this driver was doing up to 2.6.15 (inclusive).

Thanks to Daniele Gaffuri for the very good report.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/i2c/busses/i2c-i801.c