Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2309792pxp; Mon, 21 Mar 2022 16:33:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEEn8V3SR6Ob7UtkZPlew33rlDFQ3N8M6FDR+bfG2p1lhCvNNxq5rieWiauIEjruWiRu4P X-Received: by 2002:a17:902:8ec7:b0:14a:c442:8ca2 with SMTP id x7-20020a1709028ec700b0014ac4428ca2mr15147792plo.12.1647905636141; Mon, 21 Mar 2022 16:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647905636; cv=none; d=google.com; s=arc-20160816; b=Uqa9epSfwLAh0zi7vSi/3SrWge01Bl+YZPHJ+ZpNK1zfp7FjKm84VA3KDzkVZl62tb 0/MFIhLtg6D8/8JdA3pSHt4nTczQR2rTWTzabJyIabmRfG44+dh6YiLVCojDAZ+CxrRJ idYHL1I3FwN1/vmIhsC+7S3WJBDdAVNnRAqS11HAvjUcnd4/rBHmbPn82abvoysufDJ3 nknEBXNJV4XeNHxyJWdzrSglUNvH+ijDt+mZCioY2Kw+YCFuxcX0lTL9TxBtvfznRB+u JzyP1euv4e5p0sdM6UONt6cYDJS8VSnW5aWsZXIJeHaFfrJFP/xqQA3mnbapbwRre95c S3yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :from; bh=MfdtkFYe22i/MCAsAIKR0Zs3hgXLNbEw01iI3fMclCs=; b=AiPnA+D7uUFwmKTwAWe8lgJTyFaUgsickAbcA6G24sCPFCEWzYdcNajVg2EgOevgdK 4HL3o7GZ0T9FiRkpk9C48yV2wlMmLYUtXXsDEqVQGdlD4B2N3o39VwRN4mxmYLpGlog6 MdHaBnTlkb2uD5jpINpFqePhkbJrAanStvRmVYXm/wOV/mwzx8w/lLXHkQ9CLJMyTbig NPWFhRalSpxPwHqhy8tjtc8StUow06wgvnnUV5infaB7+uRInl8sTdglBip4yd4ecb2Z bQ4JQnkHNmleLgMW6uv4zasxmo9DR2s5K+CngA8fcHPxYoiWoxS9+DaFJqnFFF7w6Y/Y urzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toke.dk header.s=20161023 header.b=Ne9UoW3Y; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id oc1-20020a17090b1c0100b001c67a52bf30si694276pjb.180.2022.03.21.16.33.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 16:33:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@toke.dk header.s=20161023 header.b=Ne9UoW3Y; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=toke.dk Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 16FA039C861; Mon, 21 Mar 2022 15:24:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229659AbiCUVJD (ORCPT + 70 others); Mon, 21 Mar 2022 17:09:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbiCUVJC (ORCPT ); Mon, 21 Mar 2022 17:09:02 -0400 Received: from mail.toke.dk (mail.toke.dk [IPv6:2a0c:4d80:42:2001::664]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 539CB1F044C for ; Mon, 21 Mar 2022 14:07:35 -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=1647896854; bh=J/nUSBjnVaZ4LWBHgqrqJtugw+LaXY/KYoTnhip5+Rg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Ne9UoW3YB13o4rauQPm8tabFc/aMI4cwh76ivPD8pwXRbp6mg0B/X6noJOxpdBblw Xq2bRGl7r8X+q0+3PIDs7slq5S7ph7a3IPkgOdpAjBrAFERU6y1pq0Le89nSNeZK1X JqBr18TzQWFwmqKNIBiMQbqjeuawp7UXD/xIl5Puz+FoobIbmSD7gvNoriDahICg+y JvXwNs9+E5tUMEKO3kESU7UvGyodrVPzq3KR9CZrvANdsuKEODaZT8Kko50VvUTyGa yfC/hLhhyZXDt3VjDlpY6SMlFsPBNL6TihQJ15pK3DINhC1d7rSEOPmxOwo56yCHtg U95oV4XIK/XXg== To: Wenli Looi Cc: Kalle Valo , linux-wireless@vger.kernel.org, ath9k-devel@qca.qualcomm.com Subject: Re: [PATCH 4/6] ath9k: fix ar9003_get_eepmisc In-Reply-To: References: <20220320233010.123106-1-wlooi@ucalgary.ca> <20220320233010.123106-5-wlooi@ucalgary.ca> <87a6dj9uds.fsf@toke.dk> Date: Mon, 21 Mar 2022 22:07:33 +0100 X-Clacks-Overhead: GNU Terry Pratchett Message-ID: <87pmmf8162.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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: > On Mon, Mar 21, 2022 at 8:51 AM Toke H=C3=B8iland-J=C3=B8rgensen wrote: >> >> Wenli Looi writes: >> >> > The current implementation is reading the wrong eeprom type. >> > >> > Fixes: d8ec2e ("ath9k: Add an eeprom_ops callback for retrieving the e= epmisc 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(struc= t 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 > > I think it's never used by AR9300, because get_eepmisc is only used in > ath9k_hw_nvram_swap_data, which is only used in the eeprom types other > than AR9300. Alright, fair enough; let's merge this as a fix anyway... -Toke