Skip to content

Commit

Permalink
i2c-oc: Send IRQ on transaction stop
Browse files Browse the repository at this point in the history
- Seems this is the intended device behavior, yet it's unclear from the doc
- Fixes long I2C-HID reset in SMP
  • Loading branch information
LekKit authored Jan 24, 2023
1 parent 7812cf5 commit 44fcc7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/devices/i2c-oc.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ static bool i2c_oc_mmio_write(rvvm_mmio_dev_t* dev, void* data, size_t offset, u
if (i2c_dev && i2c_dev->stop) i2c_dev->stop(i2c_dev->data);
bus->sel_addr = 0xFFFF;
bus->status &= ~I2C_OC_SR_BSY;
i2c_oc_interrupt(bus);
}
break;
}
Expand Down

0 comments on commit 44fcc7b

Please sign in to comment.