From patchwork Thu Sep 20 09:11:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10607163 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 0E22E1390 for ; Thu, 20 Sep 2018 09:12:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F32AB2CC13 for ; Thu, 20 Sep 2018 09:12:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E7B612CC26; Thu, 20 Sep 2018 09:12:26 +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 8D2232CC13 for ; Thu, 20 Sep 2018 09:12:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387416AbeITOyx (ORCPT ); Thu, 20 Sep 2018 10:54:53 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:36402 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726788AbeITOyx (ORCPT ); Thu, 20 Sep 2018 10:54:53 -0400 Received: by mail-wr1-f65.google.com with SMTP id e1-v6so8600634wrt.3 for ; Thu, 20 Sep 2018 02:12:24 -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=pw/3Ou2WGhELONyM0UrepawMF0jpmxR1kjMXLWuYdsE=; b=ERVyp8BWzY0TEsHAMK7W+I9t4i7KYfEkrQ1BtbJ9shDX0PjcCItjaVQrfYrc0+vr+v GKWn1HrsJtc382N+QLKlpzsofBuAddeUH2BEOFAuGjIKzE6Ukem3NQGfU+6Jev9Z38D3 WlxjrQlY7DETY0JVQbmrALtXYc7+44wjcxbysPEBKf/lLkkT3yCgY5Y1WxYn9qcguYlY F0BjSgr1v8KjNcINKHRvu7bI3cHiGIUuCJB31oxVCm7mM2ni0fbtXGy/pz4qWpUn5Sol Nj4OoGX5eNXrM9hNv80SP4mCPyzmII5tuUBBik2oJlrJU4KpPpQAFjhWJWHnyNvCcYKh L8dQ== X-Gm-Message-State: APzg51AshfjG944xka7tpNtDx1VtAX8ViMH9Ogqnz/A6mSnJ7OYODQFh bPjbD3V9EkniEeWHerTIjId/HhhA7Qw= X-Google-Smtp-Source: ANB0VdamWXQonkYEbS0qEYBlTV3QTk3EAjzoscMK8ncROWQgc0hK5z9xxOYfGycdzoUXlPmC1EMLhw== X-Received: by 2002:a5d:5344:: with SMTP id t4-v6mr33325409wrv.257.1537434743728; Thu, 20 Sep 2018 02:12:23 -0700 (PDT) Received: from localhost.localdomain.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id 34-v6sm35501691wra.20.2018.09.20.02.12.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Sep 2018 02:12:22 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, sgruszka@redhat.com, linux-mediatek@lists.infradead.org Subject: [PATCH 00/20] unify mt76x2 and mt76x0 eeprom code Date: Thu, 20 Sep 2018 11:11:47 +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 This series unify most of eeprom parsing between mt76x2 and mt76x0 driver. That patchset will be used to properly support mt76x0e chipsets without duplicating the code. Lorenzo Bianconi (19): mt76: move seq_put_array in mt76-core module mt76: move common eeprom definitions in mt76x02-lib module mt76: move eeprom utility routines in mt76x02_eeprom.h mt76: move mt76x2_eeprom_get in mt76x02_eeprom.h mt76: move mt76x02_mac_setaddr in mt76x02-lib module mt76: move mt76x2_get_efuse_data in mt76x02-lib module mt76: move mt76x2_ext_pa_enabled routine in mt76x02_eeprom.c mt76x0: remove mt76x0_set_country_reg routine mt76: add mt76x02_get_rx_gain and mt76x02_get_lna_gain utility routines mt76x0: unify lna_gain parsing mt76x0: unify rssi_offset parsing mt76x0: unify temperature offset parsing mt76x0: unify freq offset parsing mt76: move mt76x02_eeprom_parse_hw_cap in mt76x02-lib module mt76x0: unify parse hw capabilities mt76: move mt76x2_tssi_enabled in mt76x02_eeprom.h mt76x0: remove eeprom dependency from mt76x0_set_tx_power_per_rate mt76x0: remove eeprom dependency from mt76x0_set_tx_power_per_chan mt76x0: use shared debugfs implementation Felix Fietkau (1): mt76: add stbc entries to mt76_rate_power drivers/net/wireless/mediatek/mt76/Makefile | 3 +- drivers/net/wireless/mediatek/mt76/debugfs.c | 12 + drivers/net/wireless/mediatek/mt76/mt76.h | 5 +- .../wireless/mediatek/mt76/mt76x0/debugfs.c | 92 +--- .../wireless/mediatek/mt76/mt76x0/eeprom.c | 513 +++++++----------- .../wireless/mediatek/mt76/mt76x0/eeprom.h | 119 +--- .../wireless/mediatek/mt76/mt76x0/mt76x0.h | 5 +- .../net/wireless/mediatek/mt76/mt76x0/phy.c | 68 +-- .../wireless/mediatek/mt76/mt76x02_eeprom.c | 156 ++++++ .../wireless/mediatek/mt76/mt76x02_eeprom.h | 194 +++++++ .../net/wireless/mediatek/mt76/mt76x02_mac.c | 18 + .../net/wireless/mediatek/mt76/mt76x02_mac.h | 1 + .../wireless/mediatek/mt76/mt76x2_debugfs.c | 33 +- .../wireless/mediatek/mt76/mt76x2_eeprom.c | 239 +++----- .../wireless/mediatek/mt76/mt76x2_eeprom.h | 122 +---- .../net/wireless/mediatek/mt76/mt76x2_init.c | 6 +- .../net/wireless/mediatek/mt76/mt76x2_mcu.c | 2 +- .../mediatek/mt76/mt76x2_mcu_common.c | 5 +- .../net/wireless/mediatek/mt76/mt76x2_phy.c | 8 +- .../mediatek/mt76/mt76x2_phy_common.c | 16 +- drivers/net/wireless/mediatek/mt76/mt76x2u.h | 1 - .../net/wireless/mediatek/mt76/mt76x2u_init.c | 5 +- .../net/wireless/mediatek/mt76/mt76x2u_mac.c | 24 +- .../net/wireless/mediatek/mt76/mt76x2u_main.c | 2 +- .../net/wireless/mediatek/mt76/mt76x2u_phy.c | 6 +- 25 files changed, 740 insertions(+), 915 deletions(-) create mode 100644 drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.c create mode 100644 drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.h