From patchwork Sun Mar 13 16:22:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 551068 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 222EBC433F5 for ; Sun, 13 Mar 2022 16:23:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232999AbiCMQYS (ORCPT ); Sun, 13 Mar 2022 12:24:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230450AbiCMQYQ (ORCPT ); Sun, 13 Mar 2022 12:24:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 737BE3BA55 for ; Sun, 13 Mar 2022 09:23:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 56DE3611F4 for ; Sun, 13 Mar 2022 16:23:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47563C340F3; Sun, 13 Mar 2022 16:23:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647188586; bh=fWic/2BntgzPjotEApqEC6TMpOI6RkxQEkR9RzZ+HaY=; h=From:To:Cc:Subject:Date:From; b=CDIBWgpZokmZrVsH9SHnjbqhD6F15Az9+VVu1OOLbrsopwXNoFEO2vSSS8yHUtb1b agHcAq4qy4h8XpamT/MDnKJPSrlOYfK0oIHd9cJmpxPTkKBMbMi/W6mDAqz9xYrn29 zAp/ATdDzfMMxiVd52ME9XJq/4dyc77IDLS58bWWKT3r3tFjPlZRRqncCM0iN6IzO6 3FPF2AL8/HcqtD3Xt9iOZ/7RhSxYxSddG9ERz+qi7nNoYaU25n8nnJ/fLl8c8moK80 gra2brH1yCb/KFNiz30SOx3git1RVu4KkXvD9BLCtOMcBqHsiILjbacrsAAX9FQWl8 pQp7rzAm5IR/w== From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, lorenzo.bianconi@redhat.com, sean.wang@mediatek.com, deren.wu@mediatek.com, linux-mediatek@lists.infradead.org Subject: [PATCH v4 0/9] introduce mt7921u driver Date: Sun, 13 Mar 2022 17:22:32 +0100 Message-Id: X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Introduce support for MT7921U 802.11ax 2x2:2SS wireless devices. Changes since v3: - Fix compilation error Changes since v2: - implemented full reset support in mt7921u_mac_reset routine Changes since v1: - implement wfsys reset support - fixed power on procedure - fixed module unload Lorenzo Bianconi (9): mt76: usb: add req_type to ___mt76u_rr signature mt76: usb: add req_type to ___mt76u_wr signature mt76: usb: introduce __mt76u_init utility routine mt76: mt7921: disable runtime pm for usb mt76: mt7921: update mt7921_skb_add_usb_sdio_hdr to support usb mt76: mt7921: move mt7921_usb_sdio_tx_prepare_skb in common mac code mt76: mt7921: move mt7921_usb_sdio_tx_complete_skb in common mac code. mt76: mt7921: move mt7921_usb_sdio_tx_status_data in mac common code. mt76: mt7921: add mt7921u driver drivers/net/wireless/mediatek/mt76/mt76.h | 12 +- .../net/wireless/mediatek/mt76/mt7615/usb.c | 68 +++- .../net/wireless/mediatek/mt76/mt76x0/usb.c | 2 +- .../net/wireless/mediatek/mt76/mt76x2/usb.c | 2 +- .../net/wireless/mediatek/mt76/mt7921/Kconfig | 11 + .../wireless/mediatek/mt76/mt7921/Makefile | 2 + .../wireless/mediatek/mt76/mt7921/debugfs.c | 6 + .../net/wireless/mediatek/mt76/mt7921/init.c | 12 +- .../net/wireless/mediatek/mt76/mt7921/mac.c | 91 ++++++ .../net/wireless/mediatek/mt76/mt7921/mac.h | 1 + .../net/wireless/mediatek/mt76/mt7921/main.c | 3 +- .../wireless/mediatek/mt76/mt7921/mt7921.h | 36 ++- .../net/wireless/mediatek/mt76/mt7921/regs.h | 50 ++- .../net/wireless/mediatek/mt76/mt7921/sdio.c | 6 +- .../wireless/mediatek/mt76/mt7921/sdio_mac.c | 83 ----- .../wireless/mediatek/mt76/mt7921/sdio_mcu.c | 2 +- .../net/wireless/mediatek/mt76/mt7921/usb.c | 305 ++++++++++++++++++ .../wireless/mediatek/mt76/mt7921/usb_mac.c | 252 +++++++++++++++ drivers/net/wireless/mediatek/mt76/usb.c | 125 +++---- 19 files changed, 874 insertions(+), 195 deletions(-) create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/usb.c create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/usb_mac.c