Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp935229ybl; Thu, 12 Dec 2019 07:12:44 -0800 (PST) X-Google-Smtp-Source: APXvYqwo+FVBxIFT36ABo6yuqYsRfF2aa0Kpe189G9ODbACzk94IRZ41z9Qn2GU+kyaBzAU7O+Jy X-Received: by 2002:a05:6830:1e81:: with SMTP id n1mr8328930otr.53.1576163564409; Thu, 12 Dec 2019 07:12:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576163564; cv=none; d=google.com; s=arc-20160816; b=u6BhpFI4xovSkWHqakKtigac3yqSQtxpfQdqaDxuOMcgo4M7kFquBv1Ve9gNAq2o2W yEK93iZyHVOrgxGsfExOM0yOSKX1s3eHiJMchJimIFwScmx7tGhqPvOwtLm7Zi3yGbIU Uq1fEQeI682rdxCLFry44d8mQpfSKr3+68u8YY62LKloWtiFTTf9iohUydgXL4+maHmv wqBaRU4EMkq7zr8gfwtIOIU3DbkKyDf2QbEXFCmuPzpxtaE44pI7Lw1HH39ITAOVZmhS YybFjFOOaOakofiPjl38VYR86cYaY8F+izG9adkszXU9TI1M5Hkttkw0l28fsPh38pwk 3//w== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=84wpsP18Q2abVq3hW8fuZwnD/ApWQ30/AxRn97/G118=; b=KQ05zOULD7bt2k4F7UcesgLAw7YHHvc7GsYaCVGbsQVKLaOPcQkUd59LHgoJLL3T7C /W7fd6AOCPWtybeWJNxHIOVrHk6/pKrXK+tRG/cSWfit5fePUKM1Estz3vIRrlb1/qlW 84vtiWa0qorzVWOM81dCiXqb2eJZJgCwFmZHrc0r1M09GBIL30pLkeJPvq+3XPZ2VyfM SGpTRpmARhwnJVjc/PiNw7x3r3MALZ8czMHaM3gh36Ie+UBlnctME6tshbrMBqR9rsPv VRbhs4qgc0MgDrMaPZuICB3AESU6CbiAb1g56NW9oPwFmWZAXx7Jwwci12VgG+uBvB/m iKwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=UkPiQGkS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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. [209.132.180.67]) by mx.google.com with ESMTP id d22si3088718ote.229.2019.12.12.07.12.30; Thu, 12 Dec 2019 07:12:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=UkPiQGkS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1728788AbfLLPKL (ORCPT + 99 others); Thu, 12 Dec 2019 10:10:11 -0500 Received: from mailgw01.mediatek.com ([216.200.240.184]:45626 "EHLO mailgw01.mediatek.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728581AbfLLPKK (ORCPT ); Thu, 12 Dec 2019 10:10:10 -0500 X-UUID: d5b1c1139af847fab4a6947ae83326a9-20191212 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=84wpsP18Q2abVq3hW8fuZwnD/ApWQ30/AxRn97/G118=; b=UkPiQGkS1kcFAqhGZxjzEALbMv4gp538c3RtIPLGNFC4DE5xWKS3uuKHLtV7RxD26mPPD5w4rHadQoqMqeoNSzBtEktr9awH5AzEYoEosmXRjTlVGtauooi48+BTvcwr8NL1C7l3QPAkpamTqdF+kLOELr4QVCVCcMnuCoV+iBk=; X-UUID: d5b1c1139af847fab4a6947ae83326a9-20191212 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 263070001; Thu, 12 Dec 2019 07:09:59 -0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 12 Dec 2019 07:06:26 -0800 Received: from [172.21.84.99] (172.21.84.99) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 12 Dec 2019 23:05:20 +0800 Message-ID: <1576163122.18168.2.camel@mtksdccf07> Subject: Re: [PATCH net-next 2/6] net: dsa: mt7530: Extend device data ready for adding a new hardware From: Landen Chao To: Florian Fainelli CC: "andrew@lunn.ch" , "vivien.didelot@savoirfairelinux.com" , "matthias.bgg@gmail.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "devicetree@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "davem@davemloft.net" , Sean Wang , "opensource@vdorst.com" , "frank-w@public-files.de" Date: Thu, 12 Dec 2019 23:05:22 +0800 In-Reply-To: References: <2d546d6bb15ff8b4b75af2220e20db4e634f4145.1575914275.git.landen.chao@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVGh1LCAyMDE5LTEyLTEyIGF0IDExOjQ1ICswODAwLCBGbG9yaWFuIE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