Skip to content
Commit a804644a authored by Mike Ditto's avatar Mike Ditto Committed by Ben Dooks
Browse files

i2c-cpm: Detect and report NAK right away instead of timing out



Make the driver report an ENXIO error immediately upon NAK instead of
waiting for another interrupt and getting a timeout.

When reading from a device that is not present or declines to respond
to, e.g., a non-existent register address, CPM immediately reports a
NAK condition in the TxBD, but the driver kept waiting until a timeout,
which takes 1 second and causes an ugly console error message.

Signed-off-by: default avatarMike Ditto <mditto@consentry.com>
Acked-by: default avatarJochen Friedrich <jochen@scram.de>
[ben-linux@fluff.org: reordered description text]
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent 1bda7128
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment