From patchwork Mon Oct 29 21:31:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10660249 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 132D613A4 for ; Mon, 29 Oct 2018 21:31:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01C6A29FF0 for ; Mon, 29 Oct 2018 21:31:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E8AA329FFA; Mon, 29 Oct 2018 21:31:34 +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 8029A29FF0 for ; Mon, 29 Oct 2018 21:31:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726828AbeJ3GWC (ORCPT ); Tue, 30 Oct 2018 02:22:02 -0400 Received: from mail-wm1-f53.google.com ([209.85.128.53]:51976 "EHLO mail-wm1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726485AbeJ3GWC (ORCPT ); Tue, 30 Oct 2018 02:22:02 -0400 Received: by mail-wm1-f53.google.com with SMTP id 143-v6so9697546wmf.1 for ; Mon, 29 Oct 2018 14:31:32 -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:mime-version :content-transfer-encoding; bh=Lc5woJAhc4ZiWupJU7/sDp4/LfIwlM2icwrL+U0HDO4=; b=oY4JKIR1aS7jHgQHmEDAIYstNg0+aarcvO75/JcIB21C3/dUH4Y0dmVBaCwaJrNFOD NnSeGp6go8nLwVvk499ZGtTWEdDIyKRzGV64hOL7AZGxmlPlVx3lj3QaHF9NrCqvNZpg CRO03Cf911KnDiA0DrJgwJxB9zD1MPRX65rUtV7aBMQHhixZTITqxEYa0UMWT25cQ18M rbDFANDbFlXYm15hv/ohqd82zTSXWUspwTe7vyHM0kTLjZE3GEaYBncjLed38EiQ+dnr J2nrQ4igVr52HgK0CurJhfuMdbMydFu5tj00QcjZezON2MXNNGeqSnyuLVkV90Dtak6+ Enow== X-Gm-Message-State: AGRZ1gJUyss1fM8Bcab9Y7pyz/lOCBN80EKZxHbvJFzisDIuW5i8C8gn LEDiZXMDTfK3AjR4L85mNq0xHw== X-Google-Smtp-Source: AJdET5dfAKuC/8i2iy1+rBk6vzGztXn+hQ7IhBWYPkEeBpC8Gsk+U3J95t536NVeJUvcPEImdrGK4A== X-Received: by 2002:a1c:90cc:: with SMTP id s195-v6mr14386555wmd.53.1540848691395; Mon, 29 Oct 2018 14:31:31 -0700 (PDT) Received: from localhost.localdomain ([151.66.3.112]) by smtp.gmail.com with ESMTPSA id c18-v6sm14814981wrr.74.2018.10.29.14.31.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 14:31:30 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Cc: sgruszka@redhat.com, linux-wireless@vger.kernel.org Subject: [PATCH 0/3] mt76x0: add tssi calibration support Date: Mon, 29 Oct 2018 22:31:22 +0100 Message-Id: X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 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 Introduce tssi calibration support in mt76x0 driver. Configure tx power gain according to tssi calibrated value if available Lorenzo Bianconi (3): mt76: move mt76x02_eeprom_copy in mt76x02-lib module mt76x0: phy: introduce tssi calibration support mt76x0: phy: use tssi reported value to configure tx power if available .../wireless/mediatek/mt76/mt76x0/eeprom.c | 20 +- .../net/wireless/mediatek/mt76/mt76x0/phy.c | 357 +++++++++++++++++- drivers/net/wireless/mediatek/mt76/mt76x02.h | 3 + .../wireless/mediatek/mt76/mt76x02_eeprom.c | 12 + .../wireless/mediatek/mt76/mt76x02_eeprom.h | 5 + .../wireless/mediatek/mt76/mt76x2/eeprom.c | 15 +- 6 files changed, 391 insertions(+), 21 deletions(-)