From patchwork Fri Mar 1 09:22:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10834813 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 7463117E9 for ; Fri, 1 Mar 2019 09:22:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C5832F08B for ; Fri, 1 Mar 2019 09:22:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 505D12F09E; Fri, 1 Mar 2019 09:22:21 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 ED77C2F08B for ; Fri, 1 Mar 2019 09:22:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726649AbfCAJWU (ORCPT ); Fri, 1 Mar 2019 04:22:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:59026 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725978AbfCAJWT (ORCPT ); Fri, 1 Mar 2019 04:22:19 -0500 Received: from localhost.localdomain.com (nat-pool-mxp-t.redhat.com [149.6.153.186]) (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 07F6C2085A; Fri, 1 Mar 2019 09:22:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551432139; bh=hQ2R2atuFQsWgPRPT6uN6wlVvxGx8W6rLwnfvtCDDCM=; h=From:To:Cc:Subject:Date:From; b=r+2pvDVsU1aYY++duo4R0a8qxjvO8Apktcvuv3DSEp8j9+p4GwYFjqPe5TVXEZc+f Z/Akrs8H0AGhxnAwSw9JQRnN0wUPujRDC0bCk0EpThqKu/pvSrMNm9BezKrA5Hauw6 GOxDPk/I23JqpBnmQQzSO3YkacsmcFiRwvUSbSro= From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, ryder.lee@mediatek.com, roychl666@gmail.com, lorenzo.bianconi@redhat.com Subject: [RFC 0/2] introduce mt76_hw_queue data structure Date: Fri, 1 Mar 2019 10:22:02 +0100 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.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 Add mt76_hw_queue data structure since new chipsets (e.g 7615) rely on a different tx queue enumeration scheme. This series implements the approach suggested by Felix in https://patchwork.kernel.org/cover/10816521/ Lorenzo Bianconi (2): mt76: rename mt76_queue pointer occurrences from hwq to q mt76: introduce mt76_hw_queue data structure drivers/net/wireless/mediatek/mt76/debugfs.c | 6 +- drivers/net/wireless/mediatek/mt76/dma.c | 249 +++++++++--------- drivers/net/wireless/mediatek/mt76/mac80211.c | 4 +- drivers/net/wireless/mediatek/mt76/mt76.h | 36 ++- .../wireless/mediatek/mt76/mt7603/beacon.c | 26 +- .../net/wireless/mediatek/mt76/mt7603/dma.c | 21 +- .../net/wireless/mediatek/mt76/mt7603/mac.c | 12 +- .../net/wireless/mediatek/mt76/mt7603/main.c | 2 +- .../net/wireless/mediatek/mt76/mt76x02_mmio.c | 38 +-- .../wireless/mediatek/mt76/mt76x02_usb_core.c | 3 +- .../net/wireless/mediatek/mt76/mt76x02_util.c | 2 +- drivers/net/wireless/mediatek/mt76/tx.c | 79 +++--- drivers/net/wireless/mediatek/mt76/usb.c | 222 +++++++++------- 13 files changed, 377 insertions(+), 323 deletions(-)