NFC: trf7970a: add TI recommended write of zero to Register 0x18
authorGeoff Lansberry <geoff@kuvee.com>
Mon, 18 Apr 2016 19:48:39 +0000 (15:48 -0400)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 4 Jul 2016 10:20:21 +0000 (12:20 +0200)
Signed-off-by: Geoff Lansberry <geoff@kuvee.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/trf7970a.c

index 10842b7051b32206190ddfb4ab29cc8d18ed268c..26c9dbbccb0c504c59fcec5157adf2310c323587 100644 (file)
@@ -1048,6 +1048,10 @@ static int trf7970a_init(struct trf7970a *trf)
        if (ret)
                goto err_out;
 
+       ret = trf7970a_write(trf, TRF7970A_NFC_TARGET_LEVEL, 0);
+       if (ret)
+               goto err_out;
+
        usleep_range(1000, 2000);
 
        trf->chip_status_ctrl &= ~TRF7970A_CHIP_STATUS_RF_ON;