From patchwork Sun Mar 8 22:08:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 216356 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2FD5C10DCE for ; Sun, 8 Mar 2020 22:09:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B90432083E for ; Sun, 8 Mar 2020 22:09:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583705344; bh=wDqaQICSF9Pp7IBnXvWh21bSyjCveUKv86iuEpELlYE=; h=From:To:Cc:Subject:Date:List-ID:From; b=YtUJzetwBrVudyl3efI5j+Lbj/GyT6RoUWXg4WMmH3VDTXIzCUIXcU9NBzVAUxHgn Y5loIVqJzf0J+1WKYBFOJwMxpY1s2kQTNRhX9FNz3SD0nd3nHqEWnxD4yBHRXwsiu5 3AuP3HRFTx7qluQno7x6to2PIlx+eTEPhc+LnF9o= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726363AbgCHWJE (ORCPT ); Sun, 8 Mar 2020 18:09:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:39236 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726346AbgCHWJD (ORCPT ); Sun, 8 Mar 2020 18:09:03 -0400 Received: from localhost.localdomain (unknown [151.48.128.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 47FC7206D5; Sun, 8 Mar 2020 22:09:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583705343; bh=wDqaQICSF9Pp7IBnXvWh21bSyjCveUKv86iuEpELlYE=; h=From:To:Cc:Subject:Date:From; b=r3sxcHz5zR9WmnSH0q9mkIB8XJgvRxJEYfVXCDPp149TtAE7W/zJsR69ck79YjJRR Ef7ecCAu5IVTtJLigz9BQ7rcT4zWVdUYc3lYnGq8vN0YYAbrPAbkUwkfKhBFmWPqS9 chVvP3l0fwaDfwma7WAqsHzQ8snL1ufNytuyKrbY= From: Lorenzo Bianconi To: nbd@nbd.name Cc: lorenzo.bianconi@redhat.com, sean.wang@mediatek.com, linux-wireless@vger.kernel.org, ryder.lee@mediatek.com Subject: [PATCH v2 00/25] Introduce mt7663e support to mt7615 driver Date: Sun, 8 Mar 2020 23:08:12 +0100 Message-Id: X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Introduce support for mt7663e 802.11ac 2x2:2 chipset to mt7615 driver. Introduce mt7615e_reg_map and mt7663e_regmap to reuse mt7615 code. MCU code refactoring. Introduce UNI MCU commands. Changes since v1: - MCU code refactoring - Introduce UNI MCU commands for firmware v3 - add firmware v3 support Lorenzo Bianconi (25): mt76: mt7615: introduce mt7615_mcu_fill_msg mt76: mt7615: introduce mt7615_mcu_wait_response mt76: mt7615: cleanup fw queue just for mmio devices mt76: mt7615: introduce mt7615_init_device routine mt76: always init to 0 mcu messages mt76: mt7615: introduce mt7615_mcu_send_message routine mt76: mt7615: add mt7615_mcu_ops data structure mt76: mt7615: move mt7615_mcu_set_bmc to mt7615_mcu_ops mt76: mt7615: move mt7615_mcu_set_sta in mt7615_mcu_ops mt76: mt7615: rely on skb API for mt7615_mcu_set_eeprom mt76: mt7615: rework mt7615_mcu_set_bss_info using skb APIs mt76: mt7615: move more mcu commands in mt7615_mcu_ops data structure mt76: mt7615: introduce MCU_FW_PREFIX for fw mcu commands mt76: mt7615: introduce mt7615_register_map mt76: mt7615: add mt7663e support to mt7615_reg_map mt76: mt7615: add mt7663e support to mt7615_{driver,firmware}_own mt76: mt7615: add mt7663e support to mt7615_mcu_set_eeprom mt76: mt7615: introduce mt7615_eeprom_parse_hw_band_cap routine mt76: mt7615: introduce mt7615_init_mac_chain routine mt76: mt7615: introduce uni cmd command types mt76: mt7615: introduce set_bmc and st_sta for uni commands mt76: mt7615: add more uni mcu commands mt76: mt7615: introduce set_ba uni command mt76: mt7615: get rid of sta_rec_wtbl data structure mt76: mt7615: introduce mt7663e support drivers/net/wireless/mediatek/mt76/mcu.c | 6 +- drivers/net/wireless/mediatek/mt76/mt76.h | 4 + .../net/wireless/mediatek/mt76/mt7603/mcu.c | 1 - .../net/wireless/mediatek/mt76/mt7615/dma.c | 50 +- .../wireless/mediatek/mt76/mt7615/eeprom.c | 48 +- .../wireless/mediatek/mt76/mt7615/eeprom.h | 2 + .../net/wireless/mediatek/mt76/mt7615/init.c | 157 +- .../net/wireless/mediatek/mt76/mt7615/mac.c | 23 +- .../net/wireless/mediatek/mt76/mt7615/mac.h | 11 +- .../net/wireless/mediatek/mt76/mt7615/main.c | 36 +- .../net/wireless/mediatek/mt76/mt7615/mcu.c | 2761 ++++++++++------- .../net/wireless/mediatek/mt76/mt7615/mcu.h | 93 +- .../net/wireless/mediatek/mt76/mt7615/mmio.c | 67 +- .../wireless/mediatek/mt76/mt7615/mt7615.h | 63 +- .../net/wireless/mediatek/mt76/mt7615/pci.c | 8 +- .../net/wireless/mediatek/mt76/mt7615/regs.h | 87 +- .../net/wireless/mediatek/mt76/mt7615/soc.c | 2 +- 17 files changed, 2153 insertions(+), 1266 deletions(-)