From patchwork Wed Aug 29 11:16:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislaw Gruszka X-Patchwork-Id: 10579833 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 B91465A4 for ; Wed, 29 Aug 2018 11:16:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A31E62A7C4 for ; Wed, 29 Aug 2018 11:16:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 972152A964; Wed, 29 Aug 2018 11:16:56 +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 27C732A7C4 for ; Wed, 29 Aug 2018 11:16:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728355AbeH2PNS (ORCPT ); Wed, 29 Aug 2018 11:13:18 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:34308 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727172AbeH2PNS (ORCPT ); Wed, 29 Aug 2018 11:13:18 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 33003804B4B9; Wed, 29 Aug 2018 11:16:53 +0000 (UTC) Received: from localhost (ovpn-204-112.brq.redhat.com [10.40.204.112]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1119A202704E; Wed, 29 Aug 2018 11:16:50 +0000 (UTC) From: Stanislaw Gruszka To: linux-wireless@vger.kernel.org Cc: Lorenzo Bianconi , Felix Fietkau , linux-mediatek@lists.infradead.org Subject: [PATCH v3 00/16] mt76 patches 2018-08-24 v3 Date: Wed, 29 Aug 2018 13:16:31 +0200 Message-Id: <1535541407-27149-1-git-send-email-sgruszka@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 29 Aug 2018 11:16:53 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 29 Aug 2018 11:16:53 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'sgruszka@redhat.com' RCPT:'' 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 is the begin work of integration between mt76x0 and mt76x2. Further development can be seen here: https://github.com/sgruszka/wireless-drivers-next/commits/mt76x0-draft-v2 v2 -> v3: - merge module licence fix patch to patch that add new module v1 -> v2: - rename mt76xx to mt76x02 to reflect that common code is for mt76x0 and mt76x2 only, not for new chips. - fixup 'stucture typo' in one patch Stanislaw Gruszka (17): mt76: unify wait_for_mac mt76: rename mt76x2_regs.h mt76: merge mt76x0/regs.h into mt76x02_regs.h mt76: create new mt76x02-lib module for common mt76x{0,2} code mt76: fix mt76x02-lib module license mt76: unify mac_get_key_info mt76: add helpers for register access with mt76_dev struct mt76: unify mac_shared_key_setup mt76: unify mt76x02_mac_wcid_set_key mt76: unify mac_wcid_setup mt76: use mac_wcid_set_drop in mt76x0 mt76x0: use mt76_wcid_free in mt76x0 mt76: unify mt76x02_vif struct mt76: unify sta structure part 1 mt76: unify sta structure part 2 mt76x0: initalize custom tx queues mt76x0: use mt76x02_sta and mt76x02_tx_status drivers/net/wireless/mediatek/mt76/Kconfig | 6 + drivers/net/wireless/mediatek/mt76/Makefile | 3 + drivers/net/wireless/mediatek/mt76/mac80211.c | 1 + drivers/net/wireless/mediatek/mt76/mt76.h | 13 + drivers/net/wireless/mediatek/mt76/mt76x0/init.c | 37 +- drivers/net/wireless/mediatek/mt76/mt76x0/mac.c | 126 +--- drivers/net/wireless/mediatek/mt76/mt76x0/mac.h | 8 +- drivers/net/wireless/mediatek/mt76/mt76x0/main.c | 127 ++-- drivers/net/wireless/mediatek/mt76/mt76x0/mcu.c | 4 +- drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h | 35 +- drivers/net/wireless/mediatek/mt76/mt76x0/regs.h | 651 -------------------- drivers/net/wireless/mediatek/mt76/mt76x0/trace.h | 4 +- drivers/net/wireless/mediatek/mt76/mt76x0/tx.c | 8 +- drivers/net/wireless/mediatek/mt76/mt76x0/usb.c | 5 +- drivers/net/wireless/mediatek/mt76/mt76x02_mac.c | 157 +++++ drivers/net/wireless/mediatek/mt76/mt76x02_mac.h | 85 +++ drivers/net/wireless/mediatek/mt76/mt76x02_regs.h | 685 +++++++++++++++++++++ drivers/net/wireless/mediatek/mt76/mt76x02_util.c | 55 ++ drivers/net/wireless/mediatek/mt76/mt76x02_util.h | 25 + drivers/net/wireless/mediatek/mt76/mt76x2.h | 50 +- drivers/net/wireless/mediatek/mt76/mt76x2_common.c | 99 +-- drivers/net/wireless/mediatek/mt76/mt76x2_init.c | 15 +- .../wireless/mediatek/mt76/mt76x2_init_common.c | 4 +- drivers/net/wireless/mediatek/mt76/mt76x2_mac.c | 4 +- drivers/net/wireless/mediatek/mt76/mt76x2_mac.h | 21 +- .../net/wireless/mediatek/mt76/mt76x2_mac_common.c | 130 +--- drivers/net/wireless/mediatek/mt76/mt76x2_main.c | 47 +- .../net/wireless/mediatek/mt76/mt76x2_phy_common.c | 4 +- drivers/net/wireless/mediatek/mt76/mt76x2_regs.h | 619 ------------------- drivers/net/wireless/mediatek/mt76/mt76x2_trace.h | 2 +- drivers/net/wireless/mediatek/mt76/mt76x2_tx.c | 8 +- .../net/wireless/mediatek/mt76/mt76x2_tx_common.c | 8 +- drivers/net/wireless/mediatek/mt76/mt76x2u_core.c | 2 +- drivers/net/wireless/mediatek/mt76/mt76x2u_init.c | 8 +- drivers/net/wireless/mediatek/mt76/mt76x2u_mac.c | 2 +- drivers/net/wireless/mediatek/mt76/mt76x2u_main.c | 29 +- 36 files changed, 1226 insertions(+), 1861 deletions(-) delete mode 100644 drivers/net/wireless/mediatek/mt76/mt76x0/regs.h create mode 100644 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c create mode 100644 drivers/net/wireless/mediatek/mt76/mt76x02_mac.h create mode 100644 drivers/net/wireless/mediatek/mt76/mt76x02_regs.h create mode 100644 drivers/net/wireless/mediatek/mt76/mt76x02_util.c create mode 100644 drivers/net/wireless/mediatek/mt76/mt76x02_util.h delete mode 100644 drivers/net/wireless/mediatek/mt76/mt76x2_regs.h Acked-by: Felix Fietkau