Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2416915pxb; Sun, 17 Apr 2022 22:23:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz156WrS7pk6+SALpf+g5IK+0Xhr6LXckvhyYEMSAsvoDnmYiVUq/8O4kiPGZmmlLiLd6ZF X-Received: by 2002:a05:6402:84c:b0:423:e5a2:3655 with SMTP id b12-20020a056402084c00b00423e5a23655mr3605773edz.28.1650259437769; Sun, 17 Apr 2022 22:23:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650259437; cv=none; d=google.com; s=arc-20160816; b=HUwd5lqL3XGZWHX64GnxQeC6dMOXO6EichYeOvCgA755uNFlXNVY0a9ekn06rlpPho +nUuyaF4mjB4ynYPmmAsM9lKP6zBlnusrD9k3pfVcSVJpzPgMdmXk2ADrzQ/oFCO4C6W ctRW88aliUMAZU1yRWG42vw3Cq1+rSFTbxBn4dORCq9VvKoyGOXchC0mpe61hnX3oon3 VycUW/Hoaf+TlD8FCttCXiBoUbWFqfjCrZ+V2aCKz+UIeX1S32C5WsA8LdP0SAEOqGIH n5XohslPOobP6baIGg5hdMormfUZ4PzBwpBf0wEyGrLPGdpMJ/AdnbTUD0HEM32J+F4e f0Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature:dkim-filter; bh=Wn2UhQpIh6kaFXN4J0iyHm1Rvy3slXa4tCoWY/WrbdY=; b=RFCqYx526BzyLW8ZLWIZXAPNU2YCW1CY2PRxh++FpobhUVnP3ZeHURLOGw5jxfNdLv XBlynGxusnoIT73ZgIMT4gr1xZrSfUhApSUr0BNGeXpH/vSifxMSteg/vXMECZq8ob4U k+AKpY/MZmbWG8P6aADD0HabFLeYBajgnJ6cDycyG9eQmHPxnXerRHAfDnjPeR11lxq3 2+O2+WVQQcwhmXRoaiyt1scYSvwOKz1TKfpwGkZcTvLDUHTerzKaQFWnFd8dZywcoXTN Z8mx8hJ19DRLWYhU1Mk4hLuEQU/a92bdtBG5CnqjoHH180ZEW4sYhFKM5jZ1JoGjwYrc DDwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@slashdirt.org header.s=mail header.b=y8cpEBep; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=slashdirt.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o1-20020a056402438100b00423e4aa6eb4si1985390edc.348.2022.04.17.22.23.34; Sun, 17 Apr 2022 22:23:57 -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=fail header.i=@slashdirt.org header.s=mail header.b=y8cpEBep; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=slashdirt.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234247AbiDQOt0 (ORCPT + 67 others); Sun, 17 Apr 2022 10:49:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbiDQOtZ (ORCPT ); Sun, 17 Apr 2022 10:49:25 -0400 Received: from vps.slashdirt.org (vps.slashdirt.org [144.91.108.218]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F32E9644B for ; Sun, 17 Apr 2022 07:46:48 -0700 (PDT) Received: from smtpclient.apple (tardis.herebedragons.eu [171.22.3.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by vps.slashdirt.org (Postfix) with ESMTPSA id 27A4960029; Sun, 17 Apr 2022 16:46:45 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 vps.slashdirt.org 27A4960029 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=slashdirt.org; s=mail; t=1650206806; bh=Wn2UhQpIh6kaFXN4J0iyHm1Rvy3slXa4tCoWY/WrbdY=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=y8cpEBepbQofpYBEzwGpOR9Pst7jgVymhMTjs7nfcm8ivAbj/vjudTzfURADVgzwM bWveT7EUN/HwSCK0LS/lm6rPJ/g58y40BDLytcPTMIWYJ3p44wpZGbyAj4Yq1NLWL0 fF3ajk0RpdpJftYHNcpbKIw4TlFiy2Xg4qFkmpXw= Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Subject: Re: [PATCH] ath9k: fix QCA9561 PA bias From: =?utf-8?Q?Thibaut_VAR=C3=88NE?= In-Reply-To: <91c58969-c60e-2f41-00ac-737786d435ae@nbd.name> Date: Sun, 17 Apr 2022 16:46:43 +0200 Cc: =?utf-8?Q?Toke_H=C3=B8iland-J=C3=B8rgensen?= , Kalle Valo , linux-wireless@vger.kernel.org, =?utf-8?Q?Petr_=C5=A0tetiar?= , Clemens Hopfer Content-Transfer-Encoding: quoted-printable Message-Id: References: <20220415104419.22749-1-hacks+kernel@slashdirt.org> <91c58969-c60e-2f41-00ac-737786d435ae@nbd.name> To: Felix Fietkau X-Mailer: Apple Mail (2.3696.80.82.1.1) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,SPF_HELO_NONE, SPF_PASS,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 > Le 16 avr. 2022 =C3=A0 20:39, Felix Fietkau a =C3=A9crit = : > The patch looks wrong to me. I'm pretty sure that AR_CH0_TOP2 is the = correct register, the definition has an explicit check for 9561 as well. > I believe this patch works by accident because it avoids writing a = wrong value to that register. > The value written to that register is wrong, because while the mask = definition AR_CH0_TOP2_XPABIASLVL uses a different value for 9561, the = shift definition AR_CH0_TOP2_XPABIASLVL_S is hardcoded to 12, which is = wrong for 9561. > Please try adjusting it to this: > #define AR_CH0_TOP2_XPABIASLVL_S (AR_SREV_9561(ah) ? 9 : 12) This works, thanks. I=E2=80=99ll submit a v2 now. Thibaut=