NFC: trf7970a: trf7970a_init() turns off the RF transmitter
authorMark A. Greer <mgreer@animalcreek.com>
Tue, 2 Sep 2014 22:12:41 +0000 (15:12 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 7 Sep 2014 21:13:45 +0000 (23:13 +0200)
When trf7970a_init() initializes the trf7970a it
implicitly turns off the RF transmitter.  Track
this by clearing the TRF7970A_CHIP_STATUS_RF_ON
bit in the cached trf->chip_status_ctrl.

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

index 429146b7e6d8aa7817418ab7a836203cb4e4c67d..ab6e276be6a6535a6de877c0a72e2847cd3d56ee 100644 (file)
@@ -826,6 +826,8 @@ static int trf7970a_init(struct trf7970a *trf)
 
        usleep_range(1000, 2000);
 
+       trf->chip_status_ctrl &= ~TRF7970A_CHIP_STATUS_RF_ON;
+
        ret = trf7970a_write(trf, TRF7970A_MODULATOR_SYS_CLK_CTRL, 0);
        if (ret)
                goto err_out;
This page took 0.027818 seconds and 5 git commands to generate.