From 9a166de2c267e5ddadbf0ecb239d817f311f553b Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Tue, 15 Jul 2008 21:06:46 +0000 Subject: [PATCH] Dumping the register values before and after every transaction was useful during driver development but now it's only spamming the log. Backport from Linux 2.6. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5306 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + kernel/busses/i2c-i801.c | 18 ------------------ 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/CHANGES b/CHANGES index 68457087..7f17d165 100644 --- a/CHANGES +++ b/CHANGES @@ -3,6 +3,7 @@ lm_sensors CHANGES file SVN-HEAD Library: Avoid namespace pollution + Module i2c-i801: Remove verbose debugging messages (2.6 backport) Module i2c-piix4: Minor cleanups (2.6 backport) Program sensors-detect: Add VIA VT1212 support Add SMSC EMC2700LPC support diff --git a/kernel/busses/i2c-i801.c b/kernel/busses/i2c-i801.c index 2ca74164..e71544b2 100644 --- a/kernel/busses/i2c-i801.c +++ b/kernel/busses/i2c-i801.c @@ -255,11 +255,6 @@ static int i801_transaction(void) int result = 0; int timeout = 0; - dev_dbg(I801_dev, "Transaction (pre): CNT=%02x, CMD=%02x, " - "ADD=%02x, DAT0=%02x, DAT1=%02x\n", inb_p(SMBHSTCNT), - inb_p(SMBHSTCMD), inb_p(SMBHSTADD), inb_p(SMBHSTDAT0), - inb_p(SMBHSTDAT1)); - /* Make sure the SMBus host is ready to start transmitting */ /* 0x1f = Failed, Bus_Err, Dev_Err, Intr, Host_Busy */ if ((temp = (0x1f & inb_p(SMBHSTSTS))) != 0x00) { @@ -312,10 +307,6 @@ static int i801_transaction(void) dev_dbg(I801_dev, "Failed reset at end of transaction " "(%02x)\n", temp); } - dev_dbg(I801_dev, "Transaction (post): CNT=%02x, CMD=%02x, " - "ADD=%02x, DAT0=%02x, DAT1=%02x\n", inb_p(SMBHSTCNT), - inb_p(SMBHSTCMD), inb_p(SMBHSTADD), inb_p(SMBHSTDAT0), - inb_p(SMBHSTDAT1)); return result; } @@ -362,11 +353,6 @@ static int i801_block_transaction(union i2c_smbus_data *data, char read_write, smbcmd = I801_BLOCK_DATA; outb_p(smbcmd | ENABLE_INT9, SMBHSTCNT); - dev_dbg(I801_dev, "Block (pre %d): CNT=%02x, CMD=%02x, " - "ADD=%02x, DAT0=%02x, BLKDAT=%02x\n", i, - inb_p(SMBHSTCNT), inb_p(SMBHSTCMD), inb_p(SMBHSTADD), - inb_p(SMBHSTDAT0), inb_p(SMBBLKDAT)); - /* Make sure the SMBus host is ready to start transmitting */ temp = inb_p(SMBHSTSTS); if (i == 1) { @@ -447,10 +433,6 @@ static int i801_block_transaction(union i2c_smbus_data *data, char read_write, "Bad status (%02x) at end of transaction\n", temp); } - dev_dbg(I801_dev, "Block (post %d): CNT=%02x, CMD=%02x, " - "ADD=%02x, DAT0=%02x, BLKDAT=%02x\n", i, - inb_p(SMBHSTCNT), inb_p(SMBHSTCMD), inb_p(SMBHSTADD), - inb_p(SMBHSTDAT0), inb_p(SMBBLKDAT)); if (result < 0) goto END;