aboutsummaryrefslogtreecommitdiff
path: root/hw/p8-i2c.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2015-06-23 14:25:55 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-07-06 17:06:54 +1000
commit2bd039b78b216fbc8e8925e07919ee9f376dab33 (patch)
tree2fd2d5e3bcd78c79869ae88b95bfe5c18893d4e5 /hw/p8-i2c.c
parent348e4df0ecc750c41079b56329c0d58627121633 (diff)
downloadskiboot-2bd039b78b216fbc8e8925e07919ee9f376dab33.zip
skiboot-2bd039b78b216fbc8e8925e07919ee9f376dab33.tar.gz
skiboot-2bd039b78b216fbc8e8925e07919ee9f376dab33.tar.bz2
p8-i2c: Ensure request "result" field is updated on completion
It may or may not already contain the right error code (it can be used internally by the state machine to carry the error accross the recovery state), but in case where it's not, update it. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/p8-i2c.c')
-rw-r--r--hw/p8-i2c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/p8-i2c.c b/hw/p8-i2c.c
index 3cc01bb..510604a 100644
--- a/hw/p8-i2c.c
+++ b/hw/p8-i2c.c
@@ -390,6 +390,7 @@ static void p8_i2c_complete_request(struct p8_i2c_master *master,
cancel_timer_async(&master->timeout);
list_del(&req->link);
master->state = state_idle;
+ req->result = ret;
/* Schedule re-enabling of sensor cache */
if (master->occ_cache_dis)