+ i2c-i801-fix-resume-when-pec-is-used.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     i2c-i801: Fix resume when PEC is used

has been added to the -mm tree.  Its filename is

     i2c-i801-fix-resume-when-pec-is-used.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this


From: Jean Delvare <khali@xxxxxxxxxxxx>

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@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/i2c/busses/i2c-i801.c |    5 +++++
 1 files changed, 5 insertions(+)

diff -puN drivers/i2c/busses/i2c-i801.c~i2c-i801-fix-resume-when-pec-is-used drivers/i2c/busses/i2c-i801.c
--- devel/drivers/i2c/busses/i2c-i801.c~i2c-i801-fix-resume-when-pec-is-used	2006-04-19 23:38:28.000000000 -0700
+++ devel-akpm/drivers/i2c/busses/i2c-i801.c	2006-04-19 23:38:28.000000000 -0700
@@ -478,6 +478,11 @@ static s32 i801_access(struct i2c_adapte
 		ret = i801_transaction();
 	}
 
+	/* Some BIOSes don't like it when PEC is enabled at reboot or resume
+	   time, so we forcibly disable it after every transaction. */
+	if (hwpec)
+		outb_p(0, SMBAUXCTL);
+
 	if(block)
 		return ret;
 	if(ret)
_

Patches currently in -mm which might be from khali@xxxxxxxxxxxx are

origin.patch
i2c-i801-fix-resume-when-pec-is-used.patch
fs-fix-ocfs2-warning-when-debug_fs-is-not-enabled.patch
scx200_acb-fix-for-cs5535-eratta.patch
scx200_acb-use-pci-i-o-resource-when-appropriate.patch
i2c-add-support-for-virtual-i2c-adapters.patch
i2c-pca954x-i2c-mux-driver.patch
i2c-mpc-fix-up-error-handling.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux