Patch "i2c: rk3x: report number of messages transmitted" has been added to the 3.19-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
i2c: rk3x: report number of messages transmitted
to the 3.19-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-rk3x-report-number-of-messages-transmitted.patch
and it can be found in the queue-3.19 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
c6cbfb91b878224e78408a2e15901c79de77115aMon Sep 17 00:00:00 2001
From: Dmitry Torokhov <[email protected]>
Date: Mon, 20 Apr 2015 15:14:47 -0700
Subject: i2c: rk3x: report number of messages transmitted
From: Dmitry Torokhov <[email protected]>
commit c6cbfb91b878224e78408a2e15901c79de77115a upstream.
master_xfer() method should return number of i2c messages transferred, but on Rockchip we were usually returning just 1, which caused trouble with users that actually check number of transferred messages vs. checking for negative error codes.
--- drivers/i2c/busses/i2c-rk3x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/i2c-rk3x.c +1 -1
@@ -800,7 +800,7 @@ static int rk3x_i2c_xfer(struct i2c_adapclk_disable (i2c->clk);spin_unlock_irqrestore (&i2c->lock, flags); -return ret; +return ret <0 ? ret : num; }static u32 rk3x_i2c_func (struct i2c_adapter *adap)
Patches currently in stable-queue which might be from [email protected] are
queue-3.19/i2c-rk3x-report-number-of-messages-transmitted.patch queue-3.19/input-elantech-fix-absolute-mode-setting-on-some-asus-laptops.patch