From: Geoff Lansberry Date: Mon, 18 Apr 2016 19:48:39 +0000 (-0400) Subject: NFC: trf7970a: add TI recommended write of zero to Register 0x18 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=58d46f538b602d4a93fbae945e5c844a90c01f14;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git NFC: trf7970a: add TI recommended write of zero to Register 0x18 Signed-off-by: Geoff Lansberry Signed-off-by: Samuel Ortiz --- diff --git a/drivers/nfc/trf7970a.c b/drivers/nfc/trf7970a.c index 10842b7051b3..26c9dbbccb0c 100644 --- a/drivers/nfc/trf7970a.c +++ b/drivers/nfc/trf7970a.c @@ -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;