]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: Only warn on SE discovery error
authorSamuel Ortiz <sameo@linux.intel.com>
Sun, 22 Dec 2013 00:00:20 +0000 (01:00 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Sat, 4 Jan 2014 02:32:27 +0000 (03:32 +0100)
commit900ba439f115bd12d3d5333e150750544fd94115
tree8196e033b758b00b50e56c8223222834fbb443df
parent6c2c33298c82a206bcaa7fb771adc30e77200f5e
NFC: Only warn on SE discovery error

SE discovery errors are currently overwriting the dev_up() return error.
This is wrong for many reasons:

- We don't want to report an error if we actually brought the device up
  but it failed to discover SEs. By doing so we pretend we don't have an
  NFC functional device even we do. The only thing we could not do was
  checking for SEs availability. This is the false negative case.

- In some cases the actual device power up failed but the SE discovery
  succeeded. Userspace then believes the device is up while it's not.
  This is the false positive case.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/core.c