aboutsummaryrefslogtreecommitdiff
path: root/hw/p8-i2c.c
diff options
context:
space:
mode:
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)