From patchwork Tue Apr 20 21:05:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 424997 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=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham 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 33BD6C433ED for ; Tue, 20 Apr 2021 21:05:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 035106113C for ; Tue, 20 Apr 2021 21:05:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233909AbhDTVGL (ORCPT ); Tue, 20 Apr 2021 17:06:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:43992 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233548AbhDTVGL (ORCPT ); Tue, 20 Apr 2021 17:06:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1BD0A6135F; Tue, 20 Apr 2021 21:05:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618952739; bh=p7XH/kqvjwyGpt2o6ruBQnGMax6igugp4pbgAgcVHos=; h=From:To:Cc:Subject:Date:From; b=FA5VQGjgPVS5wjF/EZoxG20VEefUaspEG5NVvTZsUvOrAsiPyr37I5VaXDlnVeDBf eiMAUheFUDeHUFZGa3IwqjN9BazAlslCCHejF6FLy87qlGMHeMSU0ZuzI+SbzjL4bT Hon8iKN1oWv4IYTY2iEK3nS/Xz25NrkuY5oW40B6BxHYwnD3hjhDgnbETp7EVAGjdS qoTaH5dvQ7C1rlM8fQowCJzXEBPzJFAefP/LfbnzZRCKl66a7v2IGwIWfTBaXIWwPT 8EDfM/Rki33K0XsfwXtrzsL0x2J/0eLA51AE719TcJLtEMW62gE1m2cTH9WrOPIY1I n1IgmR5PmbI9g== From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, lorenzo.bianconi@redhat.com, sean.wang@mediatek.com, ryder.lee@mediatek.com Subject: [PATCH 0/2] mt76: move token management in mt76 module Date: Tue, 20 Apr 2021 23:05:30 +0200 Message-Id: X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Move token management in mt76 common module since it is shared between mt7615, mt7915 and mt7921 drivers Lorenzo Bianconi (2): mt76: move token_lock, token and token_count in mt76_dev mt76: move token utilities in mt76 common module drivers/net/wireless/mediatek/mt76/mt76.h | 54 +++++++++++++-- .../net/wireless/mediatek/mt76/mt7615/mac.c | 14 ++-- .../net/wireless/mediatek/mt76/mt7615/mmio.c | 1 + .../wireless/mediatek/mt76/mt7615/mt7615.h | 3 - .../wireless/mediatek/mt76/mt7615/pci_init.c | 3 +- .../wireless/mediatek/mt76/mt7615/pci_mac.c | 10 +-- .../net/wireless/mediatek/mt76/mt7915/init.c | 3 +- .../net/wireless/mediatek/mt76/mt7915/mac.c | 64 +++-------------- .../wireless/mediatek/mt76/mt7915/mt7915.h | 5 -- .../net/wireless/mediatek/mt76/mt7915/pci.c | 1 + .../net/wireless/mediatek/mt76/mt7921/init.c | 4 +- .../net/wireless/mediatek/mt76/mt7921/mac.c | 58 +++------------- .../wireless/mediatek/mt76/mt7921/mt7921.h | 5 -- .../net/wireless/mediatek/mt76/mt7921/pci.c | 1 + drivers/net/wireless/mediatek/mt76/tx.c | 68 +++++++++++++++++++ 15 files changed, 153 insertions(+), 141 deletions(-)