Skip to contentSkip to conversation

remove broken SW PEC support for read_byte

PATCH New Hideki IWAMOTO 1 participant 1 message Sep 24, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove broken SW PEC support for read_byte

Index: TODO
=================================RCS file: /home/cvs/i2c/TODO,v retrieving revision 1.20

TODO +1 -1
diff -u -r1.20 TODO
@@ -14,7 +14,7 @@
 * SMBus 2.0 Completion
   SMBus 2.0 adds PEC, ARP, and a block process call message.
   All is complete in release 2.6.4 except for:
-	- SW PEC for Word Data and Process Call. No place to put PEC
+	- SW PEC for Read Byte, Word Data and Process Call. No place to put PEC
 	  in the current i2c_smbus_data structure.
   For a summary of SMBus protocol support, see
 	http://www2.lm-sensors.nu/~lm78/protocol.html

Index: kernel/i2c-core.c
=================================RCS file: /home/cvs/i2c/kernel/i2c-core.c,v retrieving revision 1.110

i2c-core.c +0 -5
diff -u -r1.110 i2c-core.c
@@ -1002,11 +1002,6 @@
 
 	buf[1] = command;
 	switch(size) {
-		case I2C_SMBUS_BYTE_DATA:
-			buf[0] = (addr << 1) | 1;
-			cpec = i2c_smbus_pec(2, buf, NULL);
-			rpec = data->byte;
-			break;
 		case I2C_SMBUS_WORD_DATA:
 			buf[0] = (addr << 1) | 1;
 			buf[2] = data->word & 0xff;

----
Hideki IWAMOTO [email protected]