diff options
author | Michael Zaidman <michael.zaidman@gmail.com> | 2022-11-06 00:11:50 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2022-11-11 13:09:36 +0300 |
commit | 5afac727defa0b2a3dffb2abd5fb5f594b98d217 (patch) | |
tree | f69ddad27d83bda7c327e0a2952bd73909908efa /tools/perf/scripts/python/export-to-sqlite.py | |
parent | c2500bdffe5a95fbd0aecdd5be3d2f175ad22f92 (diff) | |
download | linux-5afac727defa0b2a3dffb2abd5fb5f594b98d217.tar.xz |
HID: ft260: missed NACK from busy device
When writing into a slow device like an EEPROM chip, the
controller may exit the busy state before the device releases
the bus. In this case, the ft260_xfer_status returns success
before the data transfer completion.
The patch fixes it by returning from the ft260_xfer_status()
with the "-EAGAIN" on both controller and bus busy status when
appropriate.
It does not apply to the i2c combined transactions when after
the write IO, the controller keeps the bus busy until the read
IO and then between reading IOs to ensure an atomic operation.
Co-developed-by: Germain Hebert <germain.hebert@ca.abb.com>
Signed-off-by: Germain Hebert <germain.hebert@ca.abb.com>
Signed-off-by: Michael Zaidman <michael.zaidman@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions