NFC: trf7970a: Remove unnecessary FIFO reset & RSSI read
authorMark A. Greer <mgreer@animalcreek.com>
Tue, 2 Sep 2014 22:12:27 +0000 (15:12 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 7 Sep 2014 21:13:43 +0000 (23:13 +0200)
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>
drivers/nfc/trf7970a.c

index e7f22a44dc5298acdb98995c40638f8398414cb5..c6216c1cc4b97ef7ca8a55b1e152eadb1a9d8cbc 100644 (file)
@@ -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) {