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)
commit9dc33705b26aa67a94d8ada0a083557e9815cd0d
treeb4fc0baca7eb80ad007fc6f437c85894d8854e1f
parent00e625df3ef6c3ce94ed6fc46565b41f55e379f8
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