aboutsummaryrefslogtreecommitdiff
path: root/drivers/nfc
diff options
context:
space:
mode:
authorMark A. Greer2014-09-02 15:12:27 -0700
committerSamuel Ortiz2014-09-07 23:13:43 +0200
commit5974150dead6da1db415f04a232f79b922f412a0 (patch)
tree5ce066ba8942b4e49d639b5a9f2d646a8570046b /drivers/nfc
parentaff0564aa7b2118a1d76dc0118dfdbf4beaf4b8c (diff)
NFC: trf7970a: Remove unnecessary FIFO reset & RSSI read
It is no longer necessary to reset the FIFO and read the 'RSSI Levels and Oscillator Status Register' so remove that code. Signed-off-by: Mark A. Greer <mgreer@animalcreek.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc')
-rw-r--r--drivers/nfc/trf7970a.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/nfc/trf7970a.c b/drivers/nfc/trf7970a.c
index e7f22a44dc52..c6216c1cc4b9 100644
--- a/drivers/nfc/trf7970a.c
+++ b/drivers/nfc/trf7970a.c
@@ -478,8 +478,6 @@ static int trf7970a_read_irqstatus(struct trf7970a *trf, u8 *status)
static void trf7970a_send_upstream(struct trf7970a *trf)
{
- u8 rssi;
-
dev_kfree_skb_any(trf->tx_skb);
trf->tx_skb = NULL;
@@ -488,13 +486,6 @@ static void trf7970a_send_upstream(struct trf7970a *trf)
16, 1, trf->rx_skb->data, trf->rx_skb->len,
false);
- /* According to the manual it is "good form" to reset the fifo and
- * read the RSSI levels & oscillator status register here. It doesn't
- * explain why.
- */
- trf7970a_cmd(trf, TRF7970A_CMD_FIFO_RESET);
- trf7970a_read(trf, TRF7970A_RSSI_OSC_STATUS, &rssi);
-
trf->state = TRF7970A_ST_IDLE;
if (trf->aborting) {