]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: digital: Randomize poll cycles
authorThierry Escande <thierry.escande@linux.intel.com>
Sat, 10 May 2014 11:06:02 +0000 (13:06 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 25 May 2014 22:42:02 +0000 (00:42 +0200)
commit8795a60a0b51190a660bf321a1b294bb369f0ad1
treeb4fc0baca7eb80ad007fc6f437c85894d8854e1f
parent8721269a0b3d938bd4da61c917385282424bc2c5
NFC: digital: Randomize poll cycles

This change adds some entropy to polling cycles, choosing the next
polling rf technology randomly. This reflects the change done in the
pn533 driver, avoiding possible infinite loop for devices that export 2
targets on 2 different modulations. If the first target is not
readable, we will stay in an error loop for ever.

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