]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd01117b8b23abd26216958d8875508a5340bc4dc
treeeedd49ad74b3e1e3c046bbc865a42d569af8d00f
parent3bf13b633e8d448a1edd1aa1126107982e23dd4e
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