NFC: trf7970a: Delay after initialization
authorMark A. Greer <mgreer@animalcreek.com>
Tue, 2 Sep 2014 22:12:38 +0000 (15:12 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 7 Sep 2014 21:13:44 +0000 (23:13 +0200)
The trf7970a should be given at least 1 ms to
completely initialize after the 'Software Init'
and 'Idle' commands have been issued.

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

index 3859e02c4e2d672702f79d8cf508e4de14d4aa09..b2d0fbf700736bb67bf2b400cdfa907fb996cbe5 100644 (file)
@@ -824,6 +824,8 @@ static int trf7970a_init(struct trf7970a *trf)
        if (ret)
                goto err_out;
 
+       usleep_range(1000, 2000);
+
        ret = trf7970a_write(trf, TRF7970A_MODULATOR_SYS_CLK_CTRL, 0);
        if (ret)
                goto err_out;