Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp370559ybz; Fri, 17 Apr 2020 02:41:15 -0700 (PDT) X-Google-Smtp-Source: APiQypIBcpvbWH+zY/yk/7Yy7s4moV/y4gZN10c3XrfvByG4BlV1riWQxWnz6dUk5kgFRrvZ+7AI X-Received: by 2002:a17:906:2b89:: with SMTP id m9mr2087280ejg.302.1587116475326; Fri, 17 Apr 2020 02:41:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587116475; cv=none; d=google.com; s=arc-20160816; b=OX/qhsZZEgLWoXLKUpWPE6RSbbjjKvLPbNtClOV4lIGtLKZeMnsznWCUG1NBHSnw4s HsdgBvI+eM/Ka/6A9k+t7Ak4EZHQGmAh8oEMG4pZM3k1QJ81K64Y1nWQzwZLceM4xTvM ihToxEqE6HPVbU1EBXuz0V+/6qVI7JFDllq6Pg6fnjyFCEpdSMAuwQ8HDJu4W0t0s3ho Cb6rQksfKOjL8E2ifbKdyPsvBFJvN74mbyE0JcB/wzgrE3UCJhQg+y8YT3Wu/jYcAxyI nmXA4gZZzqlGhoDdxfNlC7cvVgexM6HHX9XyAaDXcTNUwl0Eukd14NOaT3gtcD2are4T VPuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=++83K8n12UE1elxj3tvC65gLwZIqFvSTwUtiFliGXuQ=; b=mImZMg2QtoBPvkB7HrNCEdUx+P8uj/3B1U3fRZfeUycjnwO3IcXQkPy/YW3HVoLv7E CyyAIFAzMwNv5Ek9qvGwmzRVYDsNMOCy+FOwI9nSZXCA41es0UyaR6ApyULX4WmSbuTD 3bp0wDvIY0ErS9e6UQ5ks2Dq/nBxtFuFbuQhSsfMZ6XSyrnOMu3bvl0iKl6L8tdUuSBA aFZCTK3zsCt+2D0dqxRkEHcCdVvCHbxX2OxZt/7OGHeBmJZ1YREQV+A+ivfDD0eCJIok jcR7+mlrUSbInBrRmP6bqZzyBE5RRvwaD/exloMKnbkQczTSMevC2ibaTlrOL7DHtvXA IOTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=jzKnREUX; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h4si15160362ejo.186.2020.04.17.02.40.43; Fri, 17 Apr 2020 02:41:15 -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=fail header.i=@nbd.name header.s=20160729 header.b=jzKnREUX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730443AbgDQJjc (ORCPT + 99 others); Fri, 17 Apr 2020 05:39:32 -0400 Received: from nbd.name ([46.4.11.11]:52456 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730428AbgDQJj3 (ORCPT ); Fri, 17 Apr 2020 05:39:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=++83K8n12UE1elxj3tvC65gLwZIqFvSTwUtiFliGXuQ=; b=jzKnREUXO8m3gI6JMiGSZ0cKs5 c17vX21fb+mbrZf2xSvRMVHhcacj0XKm9rrFVSEXCxNLZa7lsq3/olBAwgHIfR8ZPVb/tBxzp51cS kjPvk5NOUD+rX58TGZdKcfKIfA/IRWEbSeHpO6K9a56nk1QeaHnA/YtkKYWztWWxRoiM=; Received: from p54ae965b.dip0.t-ipconnect.de ([84.174.150.91] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1jPNSw-0002Wg-IO; Fri, 17 Apr 2020 11:39:18 +0200 Subject: Re: [PATCH] mt76: mt7615: add support for MT7611N To: DENG Qingfang , linux-wireless@vger.kernel.org Cc: Lorenzo Bianconi , Ryder Lee , Roy Luo , Matthias Brugger , linux-mediatek@lists.infradead.org, Kalle Valo , linux-arm-kernel@lists.infradead.org References: <20200412155848.15506-1-dqfext@gmail.com> From: Felix Fietkau Autocrypt: addr=nbd@nbd.name; prefer-encrypt=mutual; keydata= xsDiBEah5CcRBADIY7pu4LIv3jBlyQ/2u87iIZGe6f0f8pyB4UjzfJNXhJb8JylYYRzIOSxh ExKsdLCnJqsG1PY1mqTtoG8sONpwsHr2oJ4itjcGHfn5NJSUGTbtbbxLro13tHkGFCoCr4Z5 Pv+XRgiANSpYlIigiMbOkide6wbggQK32tC20QxUIwCg4k6dtV/4kwEeiOUfErq00TVqIiEE AKcUi4taOuh/PQWx/Ujjl/P1LfJXqLKRPa8PwD4j2yjoc9l+7LptSxJThL9KSu6gtXQjcoR2 vCK0OeYJhgO4kYMI78h1TSaxmtImEAnjFPYJYVsxrhay92jisYc7z5R/76AaELfF6RCjjGeP wdalulG+erWju710Bif7E1yjYVWeA/9Wd1lsOmx6uwwYgNqoFtcAunDaMKi9xVQW18FsUusM TdRvTZLBpoUAy+MajAL+R73TwLq3LnKpIcCwftyQXK5pEDKq57OhxJVv1Q8XkA9Dn1SBOjNB l25vJDFAT9ntp9THeDD2fv15yk4EKpWhu4H00/YX8KkhFsrtUs69+vZQwc0cRmVsaXggRmll dGthdSA8bmJkQG5iZC5uYW1lPsJgBBMRAgAgBQJGoeQnAhsjBgsJCAcDAgQVAggDBBYCAwEC HgECF4AACgkQ130UHQKnbvXsvgCgjsAIIOsY7xZ8VcSm7NABpi91yTMAniMMmH7FRenEAYMa VrwYTIThkTlQzsFNBEah5FQQCACMIep/hTzgPZ9HbCTKm9xN4bZX0JjrqjFem1Nxf3MBM5vN CYGBn8F4sGIzPmLhl4xFeq3k5irVg/YvxSDbQN6NJv8o+tP6zsMeWX2JjtV0P4aDIN1pK2/w VxcicArw0VYdv2ZCarccFBgH2a6GjswqlCqVM3gNIMI8ikzenKcso8YErGGiKYeMEZLwHaxE Y7mTPuOTrWL8uWWRL5mVjhZEVvDez6em/OYvzBwbkhImrryF29e3Po2cfY2n7EKjjr3/141K DHBBdgXlPNfDwROnA5ugjjEBjwkwBQqPpDA7AYPvpHh5vLbZnVGu5CwG7NAsrb2isRmjYoqk wu++3117AAMFB/9S0Sj7qFFQcD4laADVsabTpNNpaV4wAgVTRHKV/kC9luItzwDnUcsZUPdQ f3MueRJ3jIHU0UmRBG3uQftqbZJj3ikhnfvyLmkCNe+/hXhPu9sGvXyi2D4vszICvc1KL4RD aLSrOsROx22eZ26KqcW4ny7+va2FnvjsZgI8h4sDmaLzKczVRIiLITiMpLFEU/VoSv0m1F4B FtRgoiyjFzigWG0MsTdAN6FJzGh4mWWGIlE7o5JraNhnTd+yTUIPtw3ym6l8P+gbvfoZida0 TspgwBWLnXQvP5EDvlZnNaKa/3oBes6z0QdaSOwZCRA3QSLHBwtgUsrT6RxRSweLrcabwkkE GBECAAkFAkah5FQCGwwACgkQ130UHQKnbvW2GgCfTKx80VvCR/PvsUlrvdOLsIgeRGAAn1ee RjMaxwtSdaCKMw3j33ZbsWS4 Message-ID: <5e02cb52-09fd-f57d-9ba4-8402d76b2d08@nbd.name> Date: Fri, 17 Apr 2020 11:39:17 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200412155848.15506-1-dqfext@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-04-12 17:58, DENG Qingfang wrote: > MT7611N is basically the same as MT7615N, except it only supports 5 GHz > It is used by some TP-Link and Mercury wireless routers > > Signed-off-by: DENG Qingfang > --- > drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c | 2 +- > drivers/net/wireless/mediatek/mt76/mt7615/dma.c | 8 ++++---- > drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c | 7 +++++++ > drivers/net/wireless/mediatek/mt76/mt7615/init.c | 2 +- > drivers/net/wireless/mediatek/mt76/mt7615/mac.c | 8 ++++---- > drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h | 5 +++++ > drivers/net/wireless/mediatek/mt76/mt7615/pci.c | 1 + > 7 files changed, 23 insertions(+), 10 deletions(-) > > diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c b/drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c > index b4d0795154e3..fac705e1621f 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c > +++ b/drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c > @@ -264,7 +264,7 @@ int mt7615_init_debugfs(struct mt7615_dev *dev) > if (!dir) > return -ENOMEM; > > - if (is_mt7615(&dev->mt76)) > + if (is_mt7615(&dev->mt76) || is_mt7611(&dev->mt76)) > debugfs_create_devm_seqfile(dev->mt76.dev, "queues", dir, > mt7615_queues_read); > else I think it would simplify the patch and driver code if you make is_mt7615(&dev->mt76) return true for mt7611 as well. - Felix