Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp424527ybt; Wed, 24 Jun 2020 02:42:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4+Mq2di0zK5ne3VjDpQtNzXobhB+KpukY4JceIFiG8b6CyA38ACD0t0ElIvMNTSqeie6W X-Received: by 2002:a17:906:c56:: with SMTP id t22mr8480445ejf.50.1592991723690; Wed, 24 Jun 2020 02:42:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592991723; cv=none; d=google.com; s=arc-20160816; b=zOp6xQ0E5fK4cJQpnDmZ27URQhWO938o4xlV6Ln1hg0WhyOkcKG1AxX1EwQWpvk+UE +RwwlhI6+SXd/n9R1lIodjAFzd4oBRud1/cRX4nic+BL5ecSx+MDeJ1baXGpbOsJTxbx o8ZtDAC1DCxmoCctP6/EQApgmyS7rkuZFvEOrhb2APFeLzyoRcNvnsikMMNbJHv4SO9e YUNrEzAK6NOpsNPy4bH+sIwZvo2r+atpjyfqlHMuCvBkIBKvWmK3a6rFVYey/W5GF1aQ bkn09OVgtO8ZJtjJByLOTmb4iOgZTLxhcFBBzQdaBlq7Wc8szv0aK9FRYzG89aaKBfj4 jcrQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=7PK14oqTmOFJOT/MNKY1j9wxaPQDa9X5TZTJttjSw70=; b=Cd5tZOaIeb46umFi6FMNVWW6OTKjHUkI41AkU5+ZdUnWIFKk8qaqklBZPnH7pTemDe kUVwjS+KalmYjTvUnhAmXJeT+kYIFLdDuXKuovvY4dAXj1hydLvQUcpOhVTEs0hP0PJA D0JP366hLHwU1LrSjWPN7V2TuxWZEawcTu5J63JnVeWpvNv6Y8SW9ld1fUbNO7tO7B3V tJqUrlCczXFLT1lV9JTS7VI+WBt8AFaCt7wHh8yqHi+8s3yowIoFnUj7IwxUee7EI127 DBBba2BqCc5dHdnklDQFS/IcfcstzadumVl6oNpX6gDyvPzKe/QtjdIABxOCcKEuuYZX DhBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=fv58FYKv; 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si7579674edv.497.2020.06.24.02.41.38; Wed, 24 Jun 2020 02:42:03 -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=@mediatek.com header.s=dk header.b=fv58FYKv; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389711AbgFXJkO (ORCPT + 99 others); Wed, 24 Jun 2020 05:40:14 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:64855 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2388031AbgFXJkO (ORCPT ); Wed, 24 Jun 2020 05:40:14 -0400 X-UUID: 1b86b787c4584403948d60ac70f21b58-20200624 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=7PK14oqTmOFJOT/MNKY1j9wxaPQDa9X5TZTJttjSw70=; b=fv58FYKv3yYzjiDp1LWJZvC3DzF4eiu2EMP+W9enWPjV5UUcYJzr47CxXi2gefUpp+pk7XiDt9Nawvw6LMagIMI9zOljDIHqxDqTQ0KHqs0TcM1EabeylddHwC9bPJdZ2B1S+sWwA5qPpNjIqV1xOrfQfBCQUxYLvOVPot+ddhs=; X-UUID: 1b86b787c4584403948d60ac70f21b58-20200624 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 355615992; Wed, 24 Jun 2020 17:40:09 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 24 Jun 2020 17:40:03 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 24 Jun 2020 17:40:03 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek , Shayne Chen Subject: [PATCH] mt76: mt7615: register ext_phy if DBDC is detected Date: Wed, 24 Jun 2020 17:39:37 +0800 Message-ID: <20200624093937.26741-1-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: B75E107CDB5820FA4F527F0EDDC99885F69BA3767655EBCCEA2B8DAFEB7A1CC92000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org TVRfRUVfV0lGSV9DT05GIGZpZWxkIGNhbiBiZSB1c2VkIHRvIGRldGVjdCBpZiB0aGUgY2hpcHNl dCBpcyBNVDc2MTVELg0KVGh1cywgYWRkIHN1cHBvcnQgdG8gYXV0b21hdGljYWxseSByZWdpc3Rl ciBleHRfcGh5IGlmIERCREMgaXMgZGV0ZWN0ZWQuDQoNClNpZ25lZ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