Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2087162pxp; Mon, 21 Mar 2022 11:00:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJg92eluA56d3upouoTXRRN98lCY6OsEaboBphWFrnEi1xmu0N7OSi3Qgz3PU38U7daxJ8 X-Received: by 2002:a17:902:e84f:b0:153:fedf:519 with SMTP id t15-20020a170902e84f00b00153fedf0519mr14161014plg.153.1647885639025; Mon, 21 Mar 2022 11:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647885639; cv=none; d=google.com; s=arc-20160816; b=HrVtEaiw5aUOxUBPlXy2IBOzdW7IIkYU4R3aKBpQ2gTxa64LODV9mNTtd4KsRXe63x sNO0xLXUOOBP8K/SUrlYIopRd1zsSGpBpVmsfpzkr+MtUWYovUqUWT+icblVdokVrNb0 p6IN2LX2enqH5h8LoZHx+YSdTcoCjTEL7IPqBDVwqVJ2k5O/2jr7XDlMHS4zOL3Xvu+k aLaAiOwvimgb6EHT4Qc7Okg98F9d354awhPyjKOXQaR0EZY1H1UmMTSRVipuqcBr9LpY OIY3cORN+pWBRmXmfppQYEUhuzdh07IcDV8oth0KRFaUarHMGKRm1LAUldSALKoE3LdS hnVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:from; bh=MwLlvXtYPQyXy9bKK9Y+u0fyGzJ9NCgi4cJ6ia+Ze9A=; b=Uix7WYumbvSvTNN9pPgeF8rcXIdpdLZ67/3rydlRtKdx01IsRtV5D3p1RAr42z9+zR whvi+JHLVVgNFuVoIVM/M9BrjZKCHHTS2bhS9MxXBi4jeSli94psIBDv/yuLzha3dVcn 2641CCKgrz59vs1tP96wSl855aedRy1EktxsJwmQeKxzEulJN53TD+D0cVWthUQphTlj OioSgtMgDVtRYPmWiyHDPiH+wD6Fpbuj834qEA2D5B0BmMRM1TsPC3CSsj7VUY/hEXpd tplIBh3TjHzfsRmeL9xqgjAYS+SJ7LrMQKww5BhCz5hV/5nZ4B6mWcT4GH0NbdzPmGhf cqkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toke.dk header.s=20161023 header.b=YHadGArh; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=toke.dk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j18-20020aa79292000000b004fa3a8e004asi7668722pfa.257.2022.03.21.11.00.25; Mon, 21 Mar 2022 11:00:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@toke.dk header.s=20161023 header.b=YHadGArh; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=toke.dk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348083AbiCUPwo (ORCPT + 70 others); Mon, 21 Mar 2022 11:52:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348012AbiCUPwj (ORCPT ); Mon, 21 Mar 2022 11:52:39 -0400 Received: from mail.toke.dk (mail.toke.dk [IPv6:2a0c:4d80:42:2001::664]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 712B315B073 for ; Mon, 21 Mar 2022 08:51:13 -0700 (PDT) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=20161023; t=1647877872; bh=2N+uqh2BdbSvBOogz1KroPOcFF6SuXXq3xDHTsNJ0l8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=YHadGArhPi/iBuFxh7n6KRKLh+U8M5LVTOjK7Eh/EMWF669+HUSbNEqsIQU9AI+VP cCnV7zn+uU4e2Ga/JJ4eFvu4YTNEtbHS8J0D7gkH+fIYxS0eTn2OuAd4cXedMRnQOx TKf5UxqeMcbV3zHMYnjHLyyRy8VwOpSuYkCBgY1bkqFtoOF7iH7TDZwzX/ZQXKUgf1 IbVSGQUh+dEwMpLbyH4q2nSyoht88Kze/H8Ya1G8gxWxT1HtiBKnrvebV9F3lHZiC1 87Lt72S39ykhzoLvHiWeARNd+nIHiW7IBsgE5Doh4OSC8UVrLxhbG8MpdZxnNhHjIK LJK8GhAq1y2cA== To: Wenli Looi Cc: Kalle Valo , linux-wireless@vger.kernel.org, ath9k-devel@qca.qualcomm.com, Wenli Looi Subject: Re: [PATCH 4/6] ath9k: fix ar9003_get_eepmisc In-Reply-To: <20220320233010.123106-5-wlooi@ucalgary.ca> References: <20220320233010.123106-1-wlooi@ucalgary.ca> <20220320233010.123106-5-wlooi@ucalgary.ca> Date: Mon, 21 Mar 2022 16:51:11 +0100 X-Clacks-Overhead: GNU Terry Pratchett Message-ID: <87a6dj9uds.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Wenli Looi writes: > The current implementation is reading the wrong eeprom type. > > Fixes: d8ec2e ("ath9k: Add an eeprom_ops callback for retrieving the eepmisc value") > Signed-off-by: Wenli Looi > --- > drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c > index 669b49b56..a109a44a1 100644 > --- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c > +++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c > @@ -5615,7 +5615,7 @@ unsigned int ar9003_get_paprd_scale_factor(struct ath_hw *ah, > > static u8 ar9003_get_eepmisc(struct ath_hw *ah) > { > - return ah->eeprom.map4k.baseEepHeader.eepMisc; > + return ah->eeprom.ar9300_eep.baseEepHeader.opCapFlags.eepMisc; > } Looks like this is only ever used to check for the AR5416_EEPMISC_BIG_ENDIAN flag - so is that never used by AR9300, or how was this ever working given that it's a completely different offset? -Toke