From patchwork Wed Oct 10 09:14:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10634251 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 21A9969B1 for ; Wed, 10 Oct 2018 09:14:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2D64284DA for ; Wed, 10 Oct 2018 09:14:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B6C612921E; Wed, 10 Oct 2018 09:14:36 +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 6D23D28D2E for ; Wed, 10 Oct 2018 09:14:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727485AbeJJQfu (ORCPT ); Wed, 10 Oct 2018 12:35:50 -0400 Received: from mail-wm1-f43.google.com ([209.85.128.43]:54522 "EHLO mail-wm1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726911AbeJJQft (ORCPT ); Wed, 10 Oct 2018 12:35:49 -0400 Received: by mail-wm1-f43.google.com with SMTP id r63-v6so4627137wma.4 for ; Wed, 10 Oct 2018 02:14:34 -0700 (PDT) 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; bh=Jcjpa4sgs1TxBglug2E/D9Rl6hQ5IHAPC0hrCQINSFw=; b=Kqeb0+P8XdRmXyq3wdgeR+Hz3gS3OO12v6cwsdyKdNdUGjoOLVM2scRAB78kELgl47 evD81Vo1Hd0cEQ3H2BefiSLhUmnHnIADwoBY7/nyUG5M/CgTNUI3FYEILwPLUODVzF8+ ubkvZXXI/6aKvhJ8yIwk8uZHq3a21orKeyjnismT2vM49gg2TFnzUdb6tSl1olgVtlge bog+QpIabHWDPVubIrGoidwBBMr3L+wM8ZAowMjs/YyJrxUHIhq1NKoJ15Qp+wEgHVi6 jbSGqAMqe8hNJG+9cbaRll3c7ybylNdxtEJQ9vTZCysDkDCEmZVHXhwpC9fovycgATch xrAw== X-Gm-Message-State: ABuFfohtvJ6d/nu6b20sbNg2rABzYd84BvHaajp2FQFeuyMIEyA6FSVK 0cgj/PsEL0tLA+0O+EKROY+NgPZgtN0= X-Google-Smtp-Source: ACcGV60QDJoTvEJ1V40Vssy/4NMaS4N3Q5dQMa+IVU8PfOw+8dJlJ98qLpjz/76Q9b0EeUVANqeHYw== X-Received: by 2002:a1c:2ec2:: with SMTP id u185-v6mr113971wmu.125.1539162873580; Wed, 10 Oct 2018 02:14:33 -0700 (PDT) Received: from localhost.localdomain.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id 65-v6sm17715106wmm.36.2018.10.10.02.14.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Oct 2018 02:14:33 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Cc: sgruszka@redhat.com, linux-wireless@vger.kernel.org Subject: [PATCH 0/2] fix temperature compensation for mt76x0 Date: Wed, 10 Oct 2018 11:14:20 +0200 Message-Id: X-Mailer: git-send-email 2.17.1 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 Fix register configuration during temperature measurements for mt76x0 devices. Moreover do not run temperature compensation if tssi is enabled Lorenzo Bianconi (2): mt76x0: eeprom: introduce mt76x0_tssi_enabled routine mt76x0: phy: fix mt76x0_temp_sensor routine .../wireless/mediatek/mt76/mt76x0/eeprom.c | 2 +- .../wireless/mediatek/mt76/mt76x0/eeprom.h | 6 +++ .../net/wireless/mediatek/mt76/mt76x0/phy.c | 43 +++++++++---------- .../wireless/mediatek/mt76/mt76x02_eeprom.h | 21 --------- .../wireless/mediatek/mt76/mt76x2/eeprom.c | 4 +- .../wireless/mediatek/mt76/mt76x2/eeprom.h | 21 +++++++++ .../wireless/mediatek/mt76/mt76x2/pci_phy.c | 4 +- .../wireless/mediatek/mt76/mt76x2/usb_phy.c | 2 +- 8 files changed, 53 insertions(+), 50 deletions(-)