]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: digital: Rework error handling in DEP_RES response
authorThierry Escande <thierry.escande@collabora.com>
Thu, 16 Jun 2016 18:24:42 +0000 (20:24 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 6 Jul 2016 08:08:57 +0000 (10:08 +0200)
commit3075ee86e99b41d8ec4a121dbd6d9d0c4c2d6c15
treee891aafc234ba9d629ca382eaf913bae24473456
parentb82ede214767f1b4f7d36b8fa69edc5c066c76a2
NFC: digital: Rework error handling in DEP_RES response

The Digital Protocol stack used to send a NACK frame whatever the error
type it receives in digital_in_recv_dep_res(). It actually should only
send a NACK frame on CRC or parity check errors or on any transmission
error if a NACK frame was previously sent. Existing drivers used to send
EIO error for this kind of issues so this patch limits sending of NACK
frames on EIO errors. All other errors will be reported to the upper
layers.

Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/digital_dep.c