Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp630119pxb; Sat, 18 Sep 2021 12:54:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKLSx2zo8xRDlzOLpB0z/989wR+tSLR5Rkez4KFPuCHLErmdgC3ZuF/+sBuzdXa+OuYa5G X-Received: by 2002:a17:906:2887:: with SMTP id o7mr19454266ejd.425.1631994844473; Sat, 18 Sep 2021 12:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631994844; cv=none; d=google.com; s=arc-20160816; b=C25wScwX5paiRxhlavC6dciUnVOHIdJreOAPe7zh7W+cDRbRHmbnyXl1Hr7+S0uEyi oBSN+PC9E2QQxui668xTAmkppNts8UvXBhWq75EQoxDDc55+kOggA1+CEPloZWdV6Izq xuKnBjZGb+T6eIeea7MrFo7Oj+B6NpEH9KJNu2iQzFE8H/ybZlZZ5oaN2Ua5ly7iZeEa yn8nVJT858JnOTMxwKVSlffgwr4HYi+Xx+JPzIy6fKaB7GJJRrzA82qYwks8U8eGabRn AxMkPpHYG8LMK8PjkZcJZ59N8lMNTIxWXJjmXg5RmogKQTRqvLdGp1t1IE15apgw8SYn LOXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ddauZdhRCags/mZIKVS7Qc/Nq4p4+XE3xzeNjX2hcow=; b=eQeikMl1L653bE07bT7zzGSccNUkoKuCHV36kf/sSActaWGj8aJFs95TZqD1mLkQ5p xdVM6UIYn4DDNIns6XMLpVdj0KcVhcd4PadKnPsbkCcQkjtqUUGgxl56W9DZg89BbKb8 84Qf8RVXmBgKLHWJABmtMEkD8R8k94SC4OYewNaUCZsR4aV3Zs/Sp7IZNijsAFZqojKQ kPTO1IiqnTwIpzLZmv2XT0N+u0XoL2BF1vLXC0PwNo5Z7CRlDPCJOaU9idefnLmjra9F wps9jiOtS+crQtzW+liP9PCRmbxGw209bPvy4WrPxybqmHC1pUJOBL2ujWD7L9VNZzSC FDwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Qas9Rk9r; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s30si11715470ejm.715.2021.09.18.12.53.39; Sat, 18 Sep 2021 12:54:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Qas9Rk9r; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235807AbhIRKai (ORCPT + 78 others); Sat, 18 Sep 2021 06:30:38 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:55044 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235717AbhIRKai (ORCPT ); Sat, 18 Sep 2021 06:30:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631960953; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ddauZdhRCags/mZIKVS7Qc/Nq4p4+XE3xzeNjX2hcow=; b=Qas9Rk9rIJIOjQAwCvIQOpKK5NOUx9phpO+u/lLTDy7oJdT14WujlxjrjZiaJN1QyaFsxc ZFUINuw6mrCeKz2/U/wJTgYDpbFv3dSCPshaVDqzE8UMmhsHyPztkI+q/tlzpLxJ11mdRK yt2XASyev4xsPrSFFPwYEijjHvmF0Gg= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-112-yAgR6RICO7SuTenK2xtv6A-1; Sat, 18 Sep 2021 06:29:10 -0400 X-MC-Unique: yAgR6RICO7SuTenK2xtv6A-1 Received: by mail-ed1-f69.google.com with SMTP id h15-20020aa7de0f000000b003d02f9592d6so11419263edv.17 for ; Sat, 18 Sep 2021 03:29:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ddauZdhRCags/mZIKVS7Qc/Nq4p4+XE3xzeNjX2hcow=; b=hWxMX2bf87G+jFhqn/yO9I6+4S/IIy7jp95CQcL7iBdxnQkK9nozBmuPkRdHXmDChJ rfpv/TAdSsRKEOqRlWovv5UTBSHqkvHd7J8UnjP7mmG5uwmyKjv1O/vitw7U5CA5pf6T dSSd80819N2FXY9hQO3vzj1Ip3Or1ED+hdtc2yprQ8GRc14UV6dSng12Y5FBy0Bkq6mk qJD4UQXrmRmeEzfseqTwc8QDwsHjiIPly6aCrkGLvr15xm/+xTQg+3gx4rZBBTF/3BCv 7Sqso7jzQxS24vNkXJUfVei1B7uqHezgQquETi2a52WBycYwy30361zkkV+n4LEbcvB1 sKzg== X-Gm-Message-State: AOAM532kKt8+pLIdoDMVMovUNy0aOhQ1IobMKgrezqj4Zni2dXqNE6wr FI8xcSJYmLQvlhRBY6x9v0o1Tq4+kGup3QwqDV3VZOqgAHvnIeUzF4kKiPHSyGg5cXGMyrsid9+ MxO55jv+YwF9qgLduQTG55USQiLs= X-Received: by 2002:a05:6402:222b:: with SMTP id cr11mr18101629edb.392.1631960948835; Sat, 18 Sep 2021 03:29:08 -0700 (PDT) X-Received: by 2002:a05:6402:222b:: with SMTP id cr11mr18101613edb.392.1631960948606; Sat, 18 Sep 2021 03:29:08 -0700 (PDT) Received: from localhost (net-130-25-199-50.cust.vodafonedsl.it. [130.25.199.50]) by smtp.gmail.com with ESMTPSA id k22sm3421866eje.89.2021.09.18.03.29.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Sep 2021 03:29:08 -0700 (PDT) Date: Sat, 18 Sep 2021 12:29:05 +0200 From: Lorenzo Bianconi To: sean.wang@mediatek.com Cc: nbd@nbd.name, Soul.Huang@mediatek.com, YN.Chen@mediatek.com, Leon.Yen@mediatek.com, Eric-SY.Chang@mediatek.com, Deren.Wu@mediatek.com, km.lin@mediatek.com, robin.chiu@mediatek.com, Eddie.Chen@mediatek.com, ch.yeh@mediatek.com, posh.sun@mediatek.com, ted.huang@mediatek.com, Eric.Liang@mediatek.com, Stella.Chang@mediatek.com, steve.lee@mediatek.com, jsiuda@google.com, frankgor@google.com, jemele@google.com, shawnku@google.com, linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org, Sean Wang Subject: Re: [PATCH v2 00/16] Add MT7921 SDIO support Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Swo0ovMX/GFU72N1" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --Swo0ovMX/GFU72N1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > From: Sean Wang >=20 > The patchset adds the SDIO support to the MT7921 driver, basically are > made up of 3 parts. >=20 > PART 1: patch 1-5, 8-9 and 12-14 > These are preliminary patches for mt7921s driver to refactor and reuse the > current mt7921e driver as much as possible. >=20 > PART 2: patch 6-7, 10 > These are preliminary patches for mt7921s driver to refactor and reuse the > current mt7663s driver as much as possible. >=20 > PART 3: patch 11 and 15-16 > These are specific patches for mt7921s driver and reset mechanism in the > same framework where mt7921e have been supported. >=20 > The patchset are built and generated against the current mt76 tree plus > the extra pending patches [1] expected to be merged to mt76 tree soon to > help the review and merge process be easier. >=20 > The change list from v1 to v2 > 1. rework the whole driver according to the new patches added > ("mt76: introduce __mt76_mcu_send_firmware routine"), > ("mt76: not accounting the MCU header size in __mt76_mcu_send_firmware= for mt7915/21") and > ("mt76: sdio: move common code in mt76_sdio module") > 2. drop pci_init.c and sdio_init.c by moving the related logic to pci.c a= nd sdio.c, respectively. > 3. cosmetics the patches like removing unnecessary new line and adding an= extra space to fixed_map table. > 4. fix typo in commit message >=20 > [1] The pending patch list prior to add MT7921 SDIO support Hi Sean, I have not tested it but overall the code seems fine to me, just a couple o= f nits. Fixing them you can add: Acked-by: Lorenzo Bianconi >=20 > da0054ae6b1f mt76: mt7921s: add reset support > 31c979d37209 mt76: mt7921: introduce mt7921s support > c8f8caad718f mt76: mt7921: refactor mt7921_mcu_send_message > f4bb6338d638 mt76: mt7921: rely on mcu_get_nic_capability > 0bfd21e29498 mt76: connac: extend mcu_get_nic_capability > 3b5f8d1815a4 mt76: sdio: extend sdio module to support CONNAC2 > 28669a9ceff5 mt76: sdio: move common code in mt76_sdio module > ad7ba2b9c6af mt76: mt7921: use physical addr to unify register access > a6aebd446a9a mt76: mt7921: make all event parser reusable between mt7921s= and mt7921e > 0c52f915f728 mt76: mt7663s: rely on mcu reg access utility > 42112d6b7b1c mt76: connac: move mcu reg access utility routines in mt76_c= onnac_lib module > 23bf9455d505 mt76: mt7921: add MT7921_COMMON module > 688be52542bb mt76: mt7921: refactor init.c to be bus independent > 099a0527d05c mt76: mt7921: refactor mcu.c to be bus independent > 378767d66e2b mt76: mt7921: refactor dma.c to be pcie specific > e15c4c1be3ea mt76: mt7921: refactor mac.c to be bus independent > b72eaca3c81b mt76: not accounting the MCU header size in __mt76_mcu_send_= firmware for mt7915/21 > 870fe1bc5fc8 mt76: introduce __mt76_mcu_send_firmware routine > 465a8a6e834f mt76: schedule status timeout at dma completion > 4d3b6422fe5e mt76: substitute sk_buff_head status_list with spinlock_t st= atus_lock > 13d50c723b79 mt76: remove mt76_wcid pointer from mt76_tx_status_check sig= nature > ed46465dc741 mt76: introduce packet_id idr > b3568b1f391a mt76: mt7921: add 6GHz support > 6605e1e5c2be mt76: add 6GHz support > 1dcae1bad280 mt76: connac: enable hw amsdu @ 6GHz > 88c34fb4fdef mt76: connac: add 6GHz support to mt76_connac_mcu_uni_add_bss > 8bb780867211 mt76: connac: add 6GHz support to mt76_connac_mcu_sta_tlv > 6e021ff24950 mt76: connac: set 6G phymode in single-sku support > 21a96eed203d mt76: connac: add 6GHz support to mt76_connac_mcu_set_channe= l_domain > b70bae155a51 mt76: connac: enable 6GHz band for hw scan > 92e29c77494c mt76: mt7921: remove mt7921_sta_stats > 56ea41ec4ae3 mt76: mt7921: remove mcu rate reporting code > 94b97e96549e mt76: mt7921: report tx rate directly from tx status > 8dd12eb23009 mt76: mt7921: add support for tx status reporting > 69328a635189 mt76: mt7921: start reworking tx rate reporting > b915a7d2b882 mt76: mt7921: update mib counters dumping phy stats > 2a694a754e32 mt76: mt7921: always wake device if necessary in debugfs > 067927a52e93 mt76: mt7921: move mt7921_queue_rx_skb to mac.c > a866733d977d mt76: mt7921: fix retrying release semaphore without end > 8853d1b5b6bf mt76: mt7921: robustify hardware initialization flow >=20 > Lorenzo Bianconi (1): > mt76: sdio: move common code in mt76_sdio module >=20 > Sean Wang (15): > mt76: mt7921: refactor mac.c to be bus independent > mt76: mt7921: refactor dma.c to be pcie specific > mt76: mt7921: refactor mcu.c to be bus independent > mt76: mt7921: refactor init.c to be bus independent > mt76: mt7921: add MT7921_COMMON module > mt76: connac: move mcu reg access utility routines in mt76_connac_lib > module > mt76: mt7663s: rely on mcu reg access utility > mt76: mt7921: make all event parser reusable between mt7921s and > mt7921e > mt76: mt7921: use physical addr to unify register access > mt76: sdio: extend sdio module to support CONNAC2 > mt76: connac: extend mcu_get_nic_capability > mt76: mt7921: rely on mcu_get_nic_capability > mt76: mt7921: refactor mt7921_mcu_send_message > mt76: mt7921: introduce mt7921s support > mt76: mt7921s: add reset support >=20 > drivers/net/wireless/mediatek/mt76/Makefile | 2 +- > drivers/net/wireless/mediatek/mt76/mt76.h | 22 ++ > .../wireless/mediatek/mt76/mt7615/Makefile | 2 +- > .../net/wireless/mediatek/mt76/mt7615/mcu.c | 28 -- > .../wireless/mediatek/mt76/mt7615/mt7615.h | 6 - > .../net/wireless/mediatek/mt76/mt7615/sdio.c | 282 +------------ > .../wireless/mediatek/mt76/mt7615/sdio_mcu.c | 11 +- > .../wireless/mediatek/mt76/mt76_connac_mcu.c | 93 +++++ > .../wireless/mediatek/mt76/mt76_connac_mcu.h | 2 + > .../net/wireless/mediatek/mt76/mt7921/Kconfig | 18 +- > .../wireless/mediatek/mt76/mt7921/Makefile | 8 +- > .../wireless/mediatek/mt76/mt7921/debugfs.c | 18 +- > .../net/wireless/mediatek/mt76/mt7921/dma.c | 38 +- > .../wireless/mediatek/mt76/mt7921/eeprom.c | 101 ----- > .../net/wireless/mediatek/mt76/mt7921/init.c | 52 +-- > .../net/wireless/mediatek/mt76/mt7921/mac.c | 372 ++---------------- > .../net/wireless/mediatek/mt76/mt7921/mac.h | 4 + > .../net/wireless/mediatek/mt76/mt7921/main.c | 7 + > .../net/wireless/mediatek/mt76/mt7921/mcu.c | 138 ++----- > .../wireless/mediatek/mt76/mt7921/mt7921.h | 94 ++++- > .../net/wireless/mediatek/mt76/mt7921/pci.c | 49 ++- > .../wireless/mediatek/mt76/mt7921/pci_mac.c | 346 ++++++++++++++++ > .../wireless/mediatek/mt76/mt7921/pci_mcu.c | 115 ++++++ > .../net/wireless/mediatek/mt76/mt7921/regs.h | 22 +- > .../net/wireless/mediatek/mt76/mt7921/sdio.c | 285 ++++++++++++++ > .../wireless/mediatek/mt76/mt7921/sdio_mac.c | 220 +++++++++++ > .../wireless/mediatek/mt76/mt7921/sdio_mcu.c | 135 +++++++ > drivers/net/wireless/mediatek/mt76/sdio.c | 282 +++++++++++++ > .../mediatek/mt76/{mt7615 =3D> }/sdio.h | 50 ++- > .../mediatek/mt76/{mt7615 =3D> }/sdio_txrx.c | 171 +++++--- > 30 files changed, 1982 insertions(+), 991 deletions(-) > delete mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/eeprom.c > create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/pci_mac.c > create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/pci_mcu.c > create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/sdio.c > create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/sdio_mac.c > create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/sdio_mcu.c > rename drivers/net/wireless/mediatek/mt76/{mt7615 =3D> }/sdio.h (68%) > rename drivers/net/wireless/mediatek/mt76/{mt7615 =3D> }/sdio_txrx.c (59= %) >=20 > -- > 2.25.1 >=20 --Swo0ovMX/GFU72N1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCYUW/bgAKCRA6cBh0uS2t rKP6AP4lKM9tgYiErMma4o04zsU3ts+SZOe36Gpr/mO/xQjshAEAmjxZi1W3xW2m gr16MdFqziWYFuXV+0I6ry5xMqbl9AQ= =Y2Jp -----END PGP SIGNATURE----- --Swo0ovMX/GFU72N1--