]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: trf7970a: Don't turn on RF if there is already an RF field
authorMark A. Greer <mgreer@animalcreek.com>
Tue, 2 Sep 2014 22:12:42 +0000 (15:12 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 7 Sep 2014 21:13:45 +0000 (23:13 +0200)
commitd62529a501d29780dc963af21871ab61e6d4e74c
tree698b971d53ad0a2876e1eb3b1e85bd53f42eafdc
parent04aa10c09677fdfabebbe4622fbf353f385b315c
NFC: trf7970a: Don't turn on RF if there is already an RF field

Currently, the trf7970a driver blindly turns on its
RF field when configuring its framing.  This isn't
a good idea if there is already a device generating
an RF field.  Instead, check if there is already an
RF field present before turning on this device's RF
field and, if there is, return EBUSY.

Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/trf7970a.c