NFC: trf7970a: Handle extra byte in response to Type 5 RMB commands
authorMark A. Greer <mgreer@animalcreek.com>
Fri, 24 Apr 2015 17:37:22 +0000 (10:37 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 8 Jun 2015 21:16:31 +0000 (23:16 +0200)
commitab714817d7e891608d31f6996b1e4c43cf2bf342
treeeedd49ad74b3e1e3c046bbc865a42d569af8d00f
parentd96097e03f5155115542d42580b1439cafdb6088
NFC: trf7970a: Handle extra byte in response to Type 5 RMB commands

The current versions of the trf7970a has an erratum where it returns
an extra byte in the response to 'Read Multiple Block' (RMB) commands.
This command is issued to Type 5 tags (i.e., ISO/IEC 15693 tags) by
the neard daemon.

To handle this, define a new Device Tree property,
't5t-rmb-extra-byte-quirk', which indicates that the associated
trf7970a device has this erratum.  The trf7970a device driver
will then ensure that the response length to RMB commands is
reduced by one byte (for devices with the erratum).

Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Documentation/devicetree/bindings/net/nfc/trf7970a.txt
drivers/nfc/trf7970a.c