From: Mark A. Greer Date: Tue, 2 Sep 2014 22:12:38 +0000 (-0700) Subject: NFC: trf7970a: Delay after initialization X-Git-Tag: v4.9.8~5486^2~75^2~80^2~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e007f810664541078e619d050f6290bf137aa61;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: Samuel Ortiz --- diff --git a/drivers/nfc/trf7970a.c b/drivers/nfc/trf7970a.c index 3859e02..b2d0fbf 100644 --- a/drivers/nfc/trf7970a.c +++ b/drivers/nfc/trf7970a.c @@ -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;