Messages in this thread | | | Date | Mon, 27 Jun 2022 22:03:20 -0700 | From | Jakub Kicinski <> | Subject | Re: [PATCH 2/2] NFC: nxp-nci: Don't issue a zero length i2c_master_read() |
| |
On Sun, 26 Jun 2022 21:42:43 +0200 Michael Walle wrote: > There are packets which doesn't have a payload. In that case, the second > i2c_master_read() will have a zero length. But because the NFC > controller doesn't have any data left, it will NACK the I2C read and > -ENXIO will be returned. In case there is no payload, just skip the > second i2c master read.
Whoa, are you using this code or just found the problem thru code inspection? NFC is notorious for having no known users.
| |