Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp627384iog; Mon, 13 Jun 2022 09:25:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uHDjlNOSAZY6hv3YNMHuP7tmQ4KPKoRscCp9Qcch9/0+t4OWGOciM6/Rg++tBcoMaWaAke X-Received: by 2002:a17:902:c946:b0:167:6e53:6a51 with SMTP id i6-20020a170902c94600b001676e536a51mr447728pla.70.1655137531848; Mon, 13 Jun 2022 09:25:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655137531; cv=none; d=google.com; s=arc-20160816; b=CCQd9uxoQvgW3/2Ywf/PZkNHGjHWf81C/IAf6W49lDuFjYKKlBdEURDFF0rjPsWgqQ EwYaRLTJNMkqCl2l9OoqDs+WC7pWFy43Rfn95AcTK1FlFUXl+zWTadaqowIdzcZO2gf2 Fhdpo+bZgZxPQW1ZuKPvytgnvex/an+LSaR9PkmsBSLl9UZGzlDrKj8KC1aV9pgpzehw cIustqVL8uJmvMU5Dcj8+dN12vRlP5fsFfROrR8BWf5HqSgo1G1hU4fdmnXn1jiT2m4L qjMger4KkSgSc5ThmAFO41NiEZEDq9e50etJGHp/fmr2cRYKmjXWhEbKYHaLmekOc/JN hh/A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Nhf85XO2tJSaM0Il/U3Yv4BL9s6CrFj8fKbedeh9WNs=; b=0gNU7guHfln40iACs6Ac6MXP3fDM33Ha0du6FbtZFnhbjfMoQsqHkIh0ZzIZSgA/M5 EhIVPzTN10QTR2tCWYx+A6Hf6ctLn/W/Mxa1yhYer9QXTL3hMcuFX5yvbAgP4u/NzMXX cstNO/k/CYBmrcZWzs3wrTc9f7bI2WJHWBvlHnjcfGS2F8rIoHzXufiX81Mc0EDuF/B/ 1NK0cILFXAnWy/YWyRmGF15KKTV8a6OFbKaM0gOVi51bVOrDuPlgYOaXdhBsxFOrGqQa ISlW1di8sbPwEgeYlZRYhMOC9N87D8njSenIu/u3fkCWqV82kSwejMi9u15R3JCWK+yb Kvcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VHrJbtgY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 186-20020a6206c3000000b005181059a510si8757444pfg.314.2022.06.13.09.25.19; Mon, 13 Jun 2022 09:25:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=VHrJbtgY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352156AbiFMLK5 (ORCPT + 99 others); Mon, 13 Jun 2022 07:10:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350210AbiFMLFY (ORCPT ); Mon, 13 Jun 2022 07:05:24 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 111B627FFD; Mon, 13 Jun 2022 03:34:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5679EB80E93; Mon, 13 Jun 2022 10:34:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2BCEC34114; Mon, 13 Jun 2022 10:34:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655116489; bh=NnXQHT5P4J/X8Kbs05INx5ZZMNbLDhdSV/Bsk9NGxg8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VHrJbtgYDjMuLxjKs7lhhHuUDXXos4QQJo0lvS4Vy3IEahjbBpc8Sic12Dr0qjm9z fnQ6gfB5ZK1NkpW/Pj3E5UsuR0Ov4rbziadC4FHDvZ00T1TRztwE7fOeJzRxahO0gF 8ODzm+hMnRf18vAyvk9FZffOrjutBs1Q+PtrRAJQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wenli Looi , =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= , Kalle Valo , Sasha Levin Subject: [PATCH 5.4 081/411] ath9k: fix ar9003_get_eepmisc Date: Mon, 13 Jun 2022 12:05:54 +0200 Message-Id: <20220613094931.108885691@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094928.482772422@linuxfoundation.org> References: <20220613094928.482772422@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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-kernel@vger.kernel.org From: Wenli Looi [ Upstream commit 9aaff3864b603408c02c629957ae8d8ff5d5a4f2 ] The current implementation is reading the wrong eeprom type. Fixes: d8ec2e2a63e8 ("ath9k: Add an eeprom_ops callback for retrieving the eepmisc value") Signed-off-by: Wenli Looi Acked-by: Toke Høiland-Jørgensen Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20220320233010.123106-5-wlooi@ucalgary.ca Signed-off-by: Sasha Levin --- 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 b0a4ca3559fd..abed1effd95c 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; } const struct eeprom_ops eep_ar9300_ops = { -- 2.35.1