Thread (13 messages) 13 messages, 6 authors, 2016-07-28

Re: [PATCH 1/2] i2c: cros-ec-tunnel: Fix usage of cros_ec_cmd_xfer()

flat view

From: Brian Norris <briannorris@chromium.org>
Date: 2016-07-25 20:48:32
Also in: linux-i2c, lkml

On Mon, Jul 25, 2016 at 10:43:13PM +0200, Wolfram Sang wrote:
On Mon, Jul 25, 2016 at 11:14:10AM -0700, Brian Norris wrote:
quoted
cros_ec_cmd_xfer returns success status if the command transport
completes successfully, but the execution result is incorrectly ignored.
In many cases, the execution result is assumed to be successful, leading
to ignored errors and operating on uninitialized data.

We've recently introduced the cros_ec_cmd_xfer_status() helper to avoid these
problems. Let's use it.

Signed-off-by: Brian Norris <briannorris@chromium.org>
I agree with Dmitry about Thierry pushing the patch. So:

Acked-by: Wolfram Sang <redacted>
Fine with me, as long as Thierry is up for it.

BTW, I think the dependency is on target for v4.8-rc1, so if Thierry
misses this, then you should be able to apply this yourself after the
merge window.

Regards,
Brian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help