Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1830843ybl; Thu, 30 Jan 2020 06:48:05 -0800 (PST) X-Google-Smtp-Source: APXvYqx31Z5kBHJg1sRQ3AdlgzH8oDSpnx+W6o6DT4APq0PO/IwitHKSocG6aD5M4czp8JC06uYZ X-Received: by 2002:a9d:64b:: with SMTP id 69mr3650315otn.237.1580395685116; Thu, 30 Jan 2020 06:48:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580395685; cv=none; d=google.com; s=arc-20160816; b=iArJ8p6fq5YkedBFTmk4K/HmhtB/+X8eqFCJU8WfSa1LUh5OOfJUP02OE+QO1Q3/mf HT4CvflJueOhiAVKVVCSX3Ia/C5QcIW9HxA6iDF5kBbeONa1JBxzEsKeli+UpWG/L1F7 3leTiCDlLiJuhuww8eC/SLpPstZv+JQ2dcdCe/VdYhly3khzQSeUt3s0TpC0a8JqVMq0 iuZEtQ0obZYAqjHILE21WVEVUvhmFEV8GD1OO/8UJS21mBruzlSKWKSGnpOsj3Umyoa8 6bFhnEqkQ+QYhZwKtmT0PTEQuKtI8o06IB/8mFxWmnrLB9MG0jfN1IBD8pDUknwvhwdW D7jQ== 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:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=Ci2+yLRC9bCl/s0DAnobhkMXxgRS4JGfz83ZB6J6U5o=; b=SR/lR7PEHWHry866qaX2TpIlr0jGlz8G/N7+L86CJVPmj6oHNVmwkXsJpVQOxMNTLY C07inPhPoWQj7zAe6xbWZrjFfAn0OvPL9sH2IAlZo2gG1XnJaapAODJOgt/Ay0lfLHIO 6z4fZFmPgPfLvq8ieO5lkuZjWlyqTBRTMTn2cDSmjX2qaV4zSRxyBHNVjdZv09mF2b+a o8ChVFxh7JcBfNvP17+tWCpkja19JqByJXCybTYATy9g6MhWhmD0KzSMIf7J0rLPDosx QfUQ81TRIBJ5GpK9Pzgc6+htIzcni9pBxEw9Mq6muq632t4I6WV/Q2UptqGV4hF7BONz aJtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=AdVNtuAr; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d23si2897965oij.270.2020.01.30.06.47.53; Thu, 30 Jan 2020 06:48:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=AdVNtuAr; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727261AbgA3OrV (ORCPT + 99 others); Thu, 30 Jan 2020 09:47:21 -0500 Received: from nbd.name ([46.4.11.11]:57436 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727193AbgA3OrV (ORCPT ); Thu, 30 Jan 2020 09:47:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type: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=Ci2+yLRC9bCl/s0DAnobhkMXxgRS4JGfz83ZB6J6U5o=; b=AdVNtuArrL0ZfQ88mKOiROO8lW fEFMc77UTl6s5u/4p9CfYtWsMMBR22iGYB5wFUt/CTyVEfXGXLuhxzVTSICj5Zhph8qak8zCAkICy mFyP0zOybfWIenQX1pU85awmMSX1B+W3Hj7LBMiUweEafsQLN4gqnDBlIbYMgJVNf1l8=; Received: from [178.162.209.135] (helo=maeck.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ixB6F-0001VM-Kd for linux-wireless@vger.kernel.org; Thu, 30 Jan 2020 15:47:19 +0100 Received: by maeck.local (Postfix, from userid 501) id EC04F7AE468C; Thu, 30 Jan 2020 15:47:18 +0100 (CET) From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 14/15] mt76: mt7615: disable DBDC on MT7622 Date: Thu, 30 Jan 2020 15:47:17 +0100 Message-Id: <20200130144718.14298-14-nbd@nbd.name> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200130144718.14298-1-nbd@nbd.name> References: <20200130144718.14298-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org It is only supported on MT7615 Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7615/init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/init.c b/drivers/net/wireless/mediatek/mt76/mt7615/init.c index 79b177ac4261..2f6ad2b24464 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/init.c @@ -383,6 +383,9 @@ int mt7615_register_ext_phy(struct mt7615_dev *dev) struct mt76_phy *mphy; int ret; + if (!is_mt7615(&dev->mt76)) + return -EOPNOTSUPP; + if (test_bit(MT76_STATE_RUNNING, &dev->mphy.state)) return -EINVAL; -- 2.24.0