[BUG] i2c_check_addr is broken in 2.8.0

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

 



Hello!

In i2c-2.8.0 i2c_check_addr() is broken - it always returns 0,
therefore the duplicate address check is not done. i2cdetect does not
ever report 'UU', and I have even seen a case when two chips are
registered at the same address.

This one-line patch fixes the problem:


--- i2c-2.8.0/kernel/i2c-core.c.check-addr-fix	2003-06-28 22:19:12 +0400
+++ i2c-2.8.0/kernel/i2c-core.c	2003-07-22 20:49:39 +0400
@@ -315,7 +315,7 @@
 	rval = __i2c_check_addr(adapter, addr);
 	up(&adapter->list);
 
-	return 0;
+	return rval;
 }
 
 int i2c_attach_client(struct i2c_client *client)

-- 
Sergey Vlasov



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux