Browse Source

NFC: trf7970a: Delay after initialization

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>
Mark A. Greer 11 years ago
parent
commit
4e007f8106
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/nfc/trf7970a.c

+ 2 - 0
drivers/nfc/trf7970a.c

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