Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp97193rwn; Fri, 16 Sep 2022 16:09:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6PGSB9Ygkm/vC5spSiFnVRWct/isFkmCuvSACLQOcVGHx3vIoKpdXtCIpKs91pkX/P9Jp3 X-Received: by 2002:a05:6a00:228c:b0:542:e65c:98 with SMTP id f12-20020a056a00228c00b00542e65c0098mr6975297pfe.79.1663369791200; Fri, 16 Sep 2022 16:09:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663369791; cv=none; d=google.com; s=arc-20160816; b=Gh5ZdFiuOM+F6PV5xfeKveNdDy8McDRQMH5OxPSlDr5gnLrszBooIME0PbzpKmRo2/ mZlZwmxQgJAI2JjxP7XCcvi6TRqsTi0eEO5RM0U+/Fuws4S+ZSQ21RnZJ/q/Eh7TgAE2 q2VpJvKYsggFJadAAosJPbY/g4nIfAneqWohlHCmSqXZjhJX9rCkAgvhYRZySxvg1obd PjY7HF0C1jJXth0U/RU5m7Baxd3oRQuXw2R+AdsdBU4B6F3eAY8r5Ruh9yALO8w5YQw2 lD3KeYSRKkSrobzOdOQCssgi9dspEmBeedsqkoxQxRbNcAD2SijSEb6v6prGDgKrlvA0 6lTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=TAiVOxtTSP4B8eckmg/VPFYRM2nFwiaHzzCyiQjBFcA=; b=Wxq/dzEbWyythBZj1hHLrZydfA6nNkbRj+dlEIsSjZoKMeeFG0/VYQWqmb6uH+lxvk jsCjYNh3P94zWnMN/fFJOwm7FId3O6Lqh90k08mN4zrjwlZXCiB2jrzrAYUQmes/Gjsg 60AFCMC7x3YzmqfPXW8MpZw9DSibxjvEhluBZSJc5fjkHzNY+tbN2xLM32/cbm68JnYd vdEtVRllYZXMl8gAP33WCuc84RZTIJeEXZs3c2GXUMmWj55fprr8TrzxzehQ+CiYqAhq 2HFKG4L6V0QHxELYPZmyTuF+TF2S++NlCvpF0B9CBCWoaA2F0/BOBbNsd00p/BxbT4/E avxA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p7-20020a622907000000b00528d69a048csi9914689pfp.284.2022.09.16.16.09.06; Fri, 16 Sep 2022 16:09:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229769AbiIPXGs (ORCPT + 64 others); Fri, 16 Sep 2022 19:06:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229578AbiIPXGr (ORCPT ); Fri, 16 Sep 2022 19:06:47 -0400 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82D2BBA9F9 for ; Fri, 16 Sep 2022 16:06:46 -0700 (PDT) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1oZKQ0-00071M-2x; Sat, 17 Sep 2022 01:06:45 +0200 Date: Sat, 17 Sep 2022 00:06:39 +0100 From: Daniel Golle To: linux-wireless@vger.kernel.org, Stanislaw Gruszka , Helmut Schaa Cc: Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Johannes Berg Subject: [PATCH 08/15] rt2x00: don't run Rt5592 IQ calibration on MT7620 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 The function rt2800_iq_calibrate is intended for Rt5592 only. Don't call it for MT7620 which has it's own calibration functions. Reported-by: Serge Vasilugin Signed-off-by: Daniel Golle --- drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c index 6e5a72cf2a81a0..55a46e27b59875 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -4365,7 +4365,8 @@ static void rt2800_config_channel(struct rt2x00_dev *rt2x00dev, reg = (rf->channel <= 14 ? 0x1c : 0x24) + 2*rt2x00dev->lna_gain; rt2800_bbp_write_with_rx_chain(rt2x00dev, 66, reg); - rt2800_iq_calibrate(rt2x00dev, rf->channel); + if (!rt2x00_rt(rt2x00dev, RT6352)) + rt2800_iq_calibrate(rt2x00dev, rf->channel); } if (rt2x00_rt(rt2x00dev, RT6352)) { -- 2.37.3