From patchwork Fri Aug 24 11:15:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislaw Gruszka X-Patchwork-Id: 10575659 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 CE081174C for ; Fri, 24 Aug 2018 16:42:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE79D2CA10 for ; Fri, 24 Aug 2018 16:42:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B2FCA2CA12; Fri, 24 Aug 2018 16:42:38 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5B9DB2CA10 for ; Fri, 24 Aug 2018 16:42:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=tIKGw5PwKljLIv00mijJwS1GlRgNOazGaysv5rL25zE=; b=JGc c9bQVh3E/cw/z1W5xwdQaPkKA2KVciekWdgkyeCGmOQ5B92OHO05ua/8K3hcBG+tZtPasAp/Kr45y Yrcq7KcxST8lZ4HuAuA6Lzv3WJkBfiq8sq815mRAsMF3I0T9MO3z8KTRrBdcyuC/DxbOctI/W3CVM H9kkGxTEcwrn6omi+97Dt6aR9hZ4KZPwqHbN9CcCkabCMMnbnUrvMHOX2OFApDm46H3t1w1IS/cp2 1ozXQCfQkqKeMGeg2cjSJc/NRky8KylqHLIyupa4tDee6rxUNpsuddQnmMu9cv8LbbFiKtqY+1UGu 9tgQ3j5ZQS0FsonykoVMTgvDzu+NNmg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ftFAT-0000O8-7x for patchwork-linux-mediatek@patchwork.kernel.org; Fri, 24 Aug 2018 16:42:37 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ftEOs-00070u-Ge for linux-mediatek@bombadil.infradead.org; Fri, 24 Aug 2018 15:53:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jdIDNm2ERdMKE8PadCEWYhUbcCl6+Z4A+Dvo93ql3QM=; b=gJ1JVezB5yjWj3uS94HG7K60N dcvlgswhUSYebivRiG/udpF28iWdGf+0VzJstuGpQD+GQD7PlsT/rSz38V8rfoOCM7Xrw8MGY0e2W cc8gBWK3Xm8jDGBOyS5KUVLXHsu8ctf5BD7Q6+WkD8QVuE6zo0W5eFB6uAVImHyy1EEiZ3AkOJmlc lZR0DVlk8UOXOsq19d/sgnJppA4+Z3R6QS43I6e+6cuENzsYa6bXJLAhq3+mYBvx5vbaKziUEUs8P iPCE67Ki5gMe4YiKNZuvQs4dkzj7S5RTOxF055xbftIPTcWwFKk7gbngfNHGNAvm/6IjTvfbLhpNu 5V6HuJzNg==; Received: from mx3-rdu2.redhat.com ([66.187.233.73] helo=mx1.redhat.com) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ftA6C-0000VN-Bw for linux-mediatek@lists.infradead.org; Fri, 24 Aug 2018 11:17:54 +0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D9BF07DAC9; Fri, 24 Aug 2018 11:15:32 +0000 (UTC) Received: from localhost (unknown [10.43.2.180]) by smtp.corp.redhat.com (Postfix) with ESMTP id C9B181C66C; Fri, 24 Aug 2018 11:15:30 +0000 (UTC) From: Stanislaw Gruszka To: linux-wireless@vger.kernel.org Subject: [PATCH 00/17] mt76 patches 2018-08-24 Date: Fri, 24 Aug 2018 13:15:04 +0200 Message-Id: <1535109321-17126-1-git-send-email-sgruszka@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 24 Aug 2018 11:15:32 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 24 Aug 2018 11:15:32 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'sgruszka@redhat.com' RCPT:'' X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180824_071752_680153_D97A34CE X-CRM114-Status: UNSURE ( 9.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stanislaw Gruszka , Lorenzo Bianconi , linux-mediatek@lists.infradead.org, Felix Fietkau MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.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 Stanislaw Gruszka (17): mt76: unify wait_for_mac mt76: rename mt76x2_regs.h mt76: merge mt76x0/regs.h into mt76xx_regs.h mt76: create new mt76xx-lib module for common mt76x{0,2} code mt76: fix mt76xx-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 mt76xx_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 mt76xx_vif struct mt76: unify sta stucture part 1 mt76: unify sta structure part 2 mt76x0: initalize custom tx queues mt76x0: use mt76xx_sta and mt76xx_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/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 +- drivers/net/wireless/mediatek/mt76/mt76xx_mac.c | 157 +++++ drivers/net/wireless/mediatek/mt76/mt76xx_mac.h | 85 +++ drivers/net/wireless/mediatek/mt76/mt76xx_regs.h | 685 +++++++++++++++++++++ drivers/net/wireless/mediatek/mt76/mt76xx_util.c | 55 ++ drivers/net/wireless/mediatek/mt76/mt76xx_util.h | 25 + 36 files changed, 1226 insertions(+), 1861 deletions(-) delete mode 100644 drivers/net/wireless/mediatek/mt76/mt76x0/regs.h delete mode 100644 drivers/net/wireless/mediatek/mt76/mt76x2_regs.h create mode 100644 drivers/net/wireless/mediatek/mt76/mt76xx_mac.c create mode 100644 drivers/net/wireless/mediatek/mt76/mt76xx_mac.h create mode 100644 drivers/net/wireless/mediatek/mt76/mt76xx_regs.h create mode 100644 drivers/net/wireless/mediatek/mt76/mt76xx_util.c create mode 100644 drivers/net/wireless/mediatek/mt76/mt76xx_util.h