From: Stanislaw Gruszka Date: Mon, 19 Dec 2016 10:52:52 +0000 (+0100) Subject: rt2800: warn if doing VCO recalibration for unknow RF chip X-Git-Tag: v5.15~11819^2~129^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc0077053948cdc4705a7b190459904c7c0fe086;p=platform%2Fkernel%2Flinux-starfive.git rt2800: warn if doing VCO recalibration for unknow RF chip Since we reset TX_PIN_CFG register, we have to finish recalibration. Warn if this is not possible. Signed-off-by: Stanislaw Gruszka Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c index 81da771..017cbbd 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -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; }