From patchwork Sat Sep 22 11:45:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10611383 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 77A30913 for ; Sat, 22 Sep 2018 11:49:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 600CF2BF9B for ; Sat, 22 Sep 2018 11:49:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 542472BFC4; Sat, 22 Sep 2018 11:49:00 +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 DB4F72BF7F for ; Sat, 22 Sep 2018 11:48:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728201AbeIVRjG (ORCPT ); Sat, 22 Sep 2018 13:39:06 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:55041 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727474AbeIVRjG (ORCPT ); Sat, 22 Sep 2018 13:39:06 -0400 Received: by mail-wm1-f66.google.com with SMTP id c14-v6so5408995wmb.4 for ; Sat, 22 Sep 2018 04:45:47 -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=PtUvMG4ng97KqSdQhNiYOvSTzUcCYhKFieCLwwCEN9w=; b=Ao3RttOisQhFU1Y4g+QTixiS6mHZtHYBYMSb3WwnreYbxnethjf/9Arbkm2s97cOFo t1Q+/Kdt1tzp/eyquBKzQqiYfthCVbi8Ska/I7/BnODBzv3iwHtnWVBDOYAQcpIwbkol /SDZPCPM3IHMeNwESJ/JK+LRxs6fvMlYBHc61NH9GAcdw3gB1J1I0hJzuJ3/AhYMd7u8 0/+48+Oqx7LxzGp6PLlMUcD9eKuzjoGi4nRVJE+mucne2J7zoFb8q0oapL37jeVKPVYf OqdY8FO6f1ayE0uS8JTLcGju0oeGTL14j9CoW04yzJlwrE+MUC026cJfu+gINDjVe40e M/mg== X-Gm-Message-State: APzg51CCCEf8rFj0A8Og5esBUY/Y+3A5oan+FU1UbDIK38bSbsMJw5oU RxJcUX6kODG0SPINW1yQ68mH/MXTqAI= X-Google-Smtp-Source: ACcGV62lFniZYJHnuZe4RrQIpGxp2oxthySw4pWSPvMUZoxiIwlnMZdo1C5tQqsnbIy7VvlwQzwOHQ== X-Received: by 2002:a1c:3743:: with SMTP id e64-v6mr1282141wma.63.1537616746757; Sat, 22 Sep 2018 04:45:46 -0700 (PDT) Received: from localhost.localdomain ([151.66.72.6]) by smtp.gmail.com with ESMTPSA id u4-v6sm19600748wro.47.2018.09.22.04.45.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Sep 2018 04:45:45 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org Subject: [PATCH 0/9] unify tx power eeprom parsing for mt76x{0,2} Date: Sat, 22 Sep 2018 13:45:28 +0200 Message-Id: <20180922114537.24004-1-lorenzo.bianconi@redhat.com> X-Mailer: git-send-email 2.18.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 This is the second of two series that unify eeprom code between mt76x2 and mt76x0 drivers. In particular this series unifies tx power eeprom parsing. That patchset will be used to properly support mt76x0e chipsets without duplicating the code. Lorenzo Bianconi (9): mt76: move mt76_rate_power in mt76_dev mt76: add mt76x02_phy_set_txpower utility routine mt76: move rate_txpower handler in mt76 debugfs mt76: move mt76x02_rate_power_val in mt76x02-lib module mt76x0: remove mt76x0_phy_set_tx_power and mt76x0_extra_power_over_mac mt76x0: remove eeprom dependency from mt76x0_set_tx_power_per_rate mt76x0: remove eeprom dependency from mt76x0_get_power_info mt76x0: use shared debugfs implementation mt76x0: phy: introduce mt76x0_phy_set_txpower routine drivers/net/wireless/mediatek/mt76/Makefile | 2 +- drivers/net/wireless/mediatek/mt76/debugfs.c | 19 ++ drivers/net/wireless/mediatek/mt76/mt76.h | 30 ++- .../wireless/mediatek/mt76/mt76x0/debugfs.c | 79 +----- .../wireless/mediatek/mt76/mt76x0/eeprom.c | 253 ++++++++++-------- .../wireless/mediatek/mt76/mt76x0/eeprom.h | 43 +-- .../net/wireless/mediatek/mt76/mt76x0/main.c | 7 + .../wireless/mediatek/mt76/mt76x0/mt76x0.h | 4 +- .../net/wireless/mediatek/mt76/mt76x0/phy.c | 74 +---- .../wireless/mediatek/mt76/mt76x02_eeprom.h | 20 +- .../net/wireless/mediatek/mt76/mt76x02_phy.c | 97 +++++++ .../net/wireless/mediatek/mt76/mt76x02_phy.h | 27 ++ drivers/net/wireless/mediatek/mt76/mt76x2.h | 3 - .../wireless/mediatek/mt76/mt76x2_debugfs.c | 10 - .../wireless/mediatek/mt76/mt76x2_eeprom.c | 77 ++---- .../wireless/mediatek/mt76/mt76x2_eeprom.h | 1 - .../mediatek/mt76/mt76x2_init_common.c | 3 +- .../mediatek/mt76/mt76x2_mac_common.c | 2 +- .../net/wireless/mediatek/mt76/mt76x2_main.c | 8 +- .../mediatek/mt76/mt76x2_phy_common.c | 64 +---- .../wireless/mediatek/mt76/mt76x2_tx_common.c | 14 +- .../net/wireless/mediatek/mt76/mt76x2u_main.c | 4 +- 22 files changed, 398 insertions(+), 443 deletions(-) create mode 100644 drivers/net/wireless/mediatek/mt76/mt76x02_phy.c create mode 100644 drivers/net/wireless/mediatek/mt76/mt76x02_phy.h