[[email protected]: Linux 2.6.2 i2c debug bug]
----- Forwarded message from Steve Wormley <[email protected]> -----
From: Steve Wormley <[email protected]>
To: [email protected]
Subject: Linux 2.6.2 i2c debug bug
X-Spam-Status: No, hits=-5.0 required=5.0 tests=UNIFIED_PATCH version=2.20 X-Spam-Level:
Apparently one of the dev_dbg in i2c_master_recv in i2c_core.c in 2.6.2
has a little issue in that it's dereferencing the wrong element (client->dev instead of client->adapter->dev)
Fix is below
drivers/i2c/i2c-core.c Wed Feb 4 22:34:23 2004 renamed from linux-2.6.2/drivers/i2c/i2c-core.c Tue Feb 3 19:43:13 2004 +1 -1
@@ -598,7 +598,7 @@ ret = adap->algo->master_xfer(adap,&msg,1); up(&adap->bus_lock); - dev_dbg(&client->dev, "master_recv: return:%d (count:%d, addr:0x%02x)\n", + dev_dbg(&client->adapter->dev, "master_recv: return:%d (count:%d, addr:0x%02x)\n", ret, count, client->addr); /* if everything went ok (i.e. 1 msg transmitted), return #bytes
-Steve Wormley
----- End forwarded message -----
Signature · 4 lines
Frodo Looijaard <[email protected]> PGP key and more: http://huizen.dds.nl/~frodol Defenestration n. (formal or joc.): The act of removing Windows from your computer in disgust, usually followed by the installation of Linux or some other Unix-like operating system.