linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: c_manoha@qca.qualcomm.com
Cc: linux-wireless@vger.kernel.org
Subject: [bug report] ath9k: Fix issue with MCS15
Date: Thu, 17 May 2018 17:21:00 +0300	[thread overview]
Message-ID: <20180517142100.GA22656@mwanda> (raw)

Hello Sujith Manoharan,

The patch 6fcbe538be43: "ath9k: Fix issue with MCS15" from Nov 14,
2013, leads to the following static checker warning:

	drivers/net/wireless/ath/ath9k/ar9003_phy.c:836 ar9003_doubler_fix()
	warn: 'ah->hw_version.macVersion == 448' 'false' implies 'ah->hw_version.macVersion == 448' is 'false'

drivers/net/wireless/ath/ath9k/ar9003_phy.c
   834  static void ar9003_doubler_fix(struct ath_hw *ah)
   835  {
   836          if (AR_SREV_9300(ah) || AR_SREV_9580(ah) || AR_SREV_9550(ah)) {

The problem is that both AR_SREV_VERSION_9300 and AR_SREV_VERSION_9580
are 0x1c0 so the test for AR_SREV_9580() is duplicative.

   837                  REG_RMW(ah, AR_PHY_65NM_CH0_RXTX2,
   838                          1 << AR_PHY_65NM_CH0_RXTX2_SYNTHON_MASK_S |
   839                          1 << AR_PHY_65NM_CH0_RXTX2_SYNTHOVR_MASK_S, 0);
   840                  REG_RMW(ah, AR_PHY_65NM_CH1_RXTX2,
   841                          1 << AR_PHY_65NM_CH0_RXTX2_SYNTHON_MASK_S |
   842                          1 << AR_PHY_65NM_CH0_RXTX2_SYNTHOVR_MASK_S, 0);
   843                  REG_RMW(ah, AR_PHY_65NM_CH2_RXTX2,
   844                          1 << AR_PHY_65NM_CH0_RXTX2_SYNTHON_MASK_S |
   845                          1 << AR_PHY_65NM_CH0_RXTX2_SYNTHOVR_MASK_S, 0);
   846  
   847                  udelay(200);
   848  

regards,
dan carpenter

                 reply	other threads:[~2018-05-17 14:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180517142100.GA22656@mwanda \
    --to=dan.carpenter@oracle.com \
    --cc=c_manoha@qca.qualcomm.com \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).