aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorMichael Zaidman <[email protected]>2022-11-05 23:11:50 +0200
committerJiri Kosina <[email protected]>2022-11-11 11:09:36 +0100
commit5afac727defa0b2a3dffb2abd5fb5f594b98d217 (patch)
treef69ddad27d83bda7c327e0a2952bd73909908efa /drivers/usb/cdns3/cdns3-debug.h
parentc2500bdffe5a95fbd0aecdd5be3d2f175ad22f92 (diff)
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 <[email protected]> Signed-off-by: Germain Hebert <[email protected]> Signed-off-by: Michael Zaidman <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions