From patchwork Tue Nov 6 16:59:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10670849 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 447B513A4 for ; Tue, 6 Nov 2018 17:00:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 34D9A2A9C4 for ; Tue, 6 Nov 2018 17:00:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 293F92A9ED; Tue, 6 Nov 2018 17:00:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE2202A9E3 for ; Tue, 6 Nov 2018 17:00:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389447AbeKGC0R (ORCPT ); Tue, 6 Nov 2018 21:26:17 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:43314 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389285AbeKGC0Q (ORCPT ); Tue, 6 Nov 2018 21:26:16 -0500 Received: by mail-wr1-f65.google.com with SMTP id y3-v6so14049369wrh.10 for ; Tue, 06 Nov 2018 09:00:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1Zr/yr36XtR7nj8WAI/rLWpJ8ZqzD69e2a6KztYJlfs=; b=X1uvfcivNMu3rKOH9dwL4wqDN1fkRP6YjakJ3EYdzc5+QBsXIZnvQ0zU4YO6S5pyTS NaTpsELhUdCKaAtA8hKgcZLGFUN8Ovks4Ob0Wwk9JlyZjFvNOyKBSdG28qFAk8Oh9Mys CuwFEU6uIbyZOzwv6pG9SfM8sYxBc5yiWdWOFb2NZ+Mn0YWSqcbhhnPtklj2ou/unDQN 98mPDSUZi66W9tiuWhEwxs0o+WH0zOcJwkIcK3dokLZfF06R2qa2M1a39byWzt+KqDDb 66S2tksdNhcFpkPY0cIfhJhWraE3NBNriIq3FaUdk+ZXxgQfCV5QnJM+9C/upOq++N8u Pn2A== X-Gm-Message-State: AGRZ1gK4VEQ1PfsLX4PFGniaNfhAB5E1K/IJw7FJh+gypvjpWiYojk/h Hc9LwDJ1k5+/dPetRp5RgyE5Tw== X-Google-Smtp-Source: AJdET5duay4ylNQIQm/9lVTHVaLIVdFSUltX893unQ56TdwPwcMwvQTeMa2Xn+In3t84zZ3GiC0cTA== X-Received: by 2002:adf:ff4e:: with SMTP id u14-v6mr24206875wrs.232.1541523607906; Tue, 06 Nov 2018 09:00:07 -0800 (PST) Received: from localhost.localdomain.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id x142-v6sm649271wmd.20.2018.11.06.09.00.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Nov 2018 09:00:07 -0800 (PST) From: Lorenzo Bianconi To: nbd@nbd.name Cc: sgruszka@redhat.com, linux-wireless@vger.kernel.org Subject: [PATCH 1/4] mt76x2u: phy: add TX_SHAPING calibration Date: Tue, 6 Nov 2018 17:59:45 +0100 Message-Id: <1870868969df6afe13a424a69af2802f9bb9ab9f.1541522368.git.lorenzo.bianconi@redhat.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: References: Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add MCU_CAL_TX_SHAPING calibration in mt76x2u_phy_channel_calibrate routine since now mt76x2 and mt76x2u driver run the same firmware Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76x2/usb_phy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x2/usb_phy.c b/drivers/net/wireless/mediatek/mt76/mt76x2/usb_phy.c index 8011c261c658..24e292e895b6 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x2/usb_phy.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x2/usb_phy.c @@ -35,6 +35,7 @@ void mt76x2u_phy_channel_calibrate(struct mt76x02_dev *dev) mt76x02_mcu_calibrate(dev, MCU_CAL_TXIQ, is_5ghz, false); mt76x02_mcu_calibrate(dev, MCU_CAL_RXIQC_FI, is_5ghz, false); mt76x02_mcu_calibrate(dev, MCU_CAL_TEMP_SENSOR, 0, false); + mt76x02_mcu_calibrate(dev, MCU_CAL_TX_SHAPING, 0, false); mt76x2u_mac_resume(dev); }