rt2800: warn if doing VCO recalibration for unknow RF chip
authorStanislaw Gruszka <sgruszka@redhat.com>
Mon, 19 Dec 2016 10:52:52 +0000 (11:52 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 30 Dec 2016 11:34:19 +0000 (13:34 +0200)
Since we reset TX_PIN_CFG register, we have to finish recalibration.
Warn if this is not possible.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ralink/rt2x00/rt2800lib.c

index 81da77161730996f99d07e4b5874e3c6773867e9..017cbbd16a0721aa0d0cef2e4ccfcac74da378a3 100644 (file)
@@ -4346,6 +4346,8 @@ void rt2800_vco_calibration(struct rt2x00_dev *rt2x00dev)
                rt2800_rfcsr_write(rt2x00dev, 3, rfcsr);
                break;
        default:
+               WARN_ONCE(1, "Not supported RF chipet %x for VCO recalibration",
+                         rt2x00dev->chip.rf);
                return;
        }