diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2019-03-26 19:18:16 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-03-28 15:24:13 +1100 |
commit | a31085d7d432c889e2e5ddcef55ea866797dace8 (patch) | |
tree | 9d8a45b9df81848fc78d12886d6fbb1adc1e8773 /hw/p8-i2c.c | |
parent | 722cf1c2ed56907fd9cc64c3f406f998d7e44992 (diff) | |
download | skiboot-a31085d7d432c889e2e5ddcef55ea866797dace8.zip skiboot-a31085d7d432c889e2e5ddcef55ea866797dace8.tar.gz skiboot-a31085d7d432c889e2e5ddcef55ea866797dace8.tar.bz2 |
core/i2c: Add request state tracking
Allow the submitter to track the state of an I2C request by adding
a state field to the request. This avoids the need to use a stub
completion callback in some cases.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw/p8-i2c.c')
-rw-r--r-- | hw/p8-i2c.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/p8-i2c.c b/hw/p8-i2c.c index a45769c..599614c 100644 --- a/hw/p8-i2c.c +++ b/hw/p8-i2c.c @@ -441,6 +441,7 @@ static void p8_i2c_complete_request(struct p8_i2c_master *master, list_del(&req->link); master->state = state_idle; req->result = ret; + req->req_state = i2c_req_done; /* Schedule re-enabling of sensor cache */ if (master->occ_cache_dis) |