Patch "i2c: print correct device invalid address" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
i2c: print correct device invalid address
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
i2c-print-correct-device-invalid-address.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
6f724fb3039522486fce2e32e4c0fbe238a6ab02Mon Sep 17 00:00:00 2001
From: John Garry <[email protected]>
Date: Fri, 6 Jan 2017 19:02:57 +0800
Subject: i2c: print correct device invalid address
From: John Garry <[email protected]>
commit 6f724fb3039522486fce2e32e4c0fbe238a6ab02 upstream.
In of_i2c_register_device(), when the check for device address validity fails we print the info.addr, which has not been assigned properly.
Fix this by printing the actual invalid address.
--- drivers/i2c/i2c-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/i2c-core.c +1 -1
@@ -1400,7 +1400,7 @@ static struct i2c_client *of_i2c_registeif (i2c_check_addr_validity (addr, info.flags)) {dev_err (&adap->dev,"of_i2c: invalid addr=%x on %s\n" , - info.addr, node->full_name); + addr, node->full_name);return ERR_PTR (-EINVAL ); }
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/i2c-print-correct-device-invalid-address.patch