Skip to content

Commit

Permalink
NFC: trf7970a: add TI recommended write of zero to Register 0x18
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Lansberry <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
  • Loading branch information
Geoff Lansberry authored and Samuel Ortiz committed Jul 4, 2016
1 parent fa1ce54 commit 58d46f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/nfc/trf7970a.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 58d46f5

Please sign in to comment.