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)
commit851ee3cbf850501104e76683e439a4061f378a96
tree698b971d53ad0a2876e1eb3b1e85bd53f42eafdc
parent7149d6bfecadc255e9d964782a9fdd70f610f1ea
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
This page took 0.038098 seconds and 5 git commands to generate.