Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp925825ybl; Thu, 12 Dec 2019 07:04:55 -0800 (PST) X-Google-Smtp-Source: APXvYqy7OFVyHPDvA7d+mNQBwIAU5TxEWDApv+CmV6h6et+FkqVMlH+N3J76L/qQUuyn5mqawixO X-Received: by 2002:a9d:d0b:: with SMTP id 11mr8894709oti.287.1576163095091; Thu, 12 Dec 2019 07:04:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576163095; cv=none; d=google.com; s=arc-20160816; b=S5RaIcWGSQ8sYR1dlOIsoow5jl0EKYdO5a0QvmpkZqYgUw5axXSAAO9ZLXZa5dWvdB muzwzes6QRKIxsb0OGypg5Nq8LVAf85MEFeRJybh7xAyfDrmr8orFaFnGWfZ6/r24Jd3 YmePvp8xikYz603p3E1LBFVfjFS+ZxhLp4ewCcKj0dOVD9EvPQ+N88zyi2wN14ESQJtY NiT72yZw400k0Kmm4WyaZCiq0/Awg2l4QNIFmmkzpgvVSadWZZUg73czdwYQgbPScHgk 9DNn+NMqi1n40GKmHi3bU2zc01GL1pepuB4mQvdPtoaxs4nNoQx7jH60D14zjG7m4CPW Li9A== 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=F7v29UFNtFNozY6v/Vmo8huw/9C0N0CfhqOK+BHJmfA=; b=oAbcQj/pwlFLi9jgUBleZ9Haq58GXZak70ni0pGG0FKsjPcfqmKWFIsLykbT4uoUWs mljvwIp5THpjls4oiXYl6ki9guy9H7gL2o9KsqnffilhbxQs36I/rsfWlVIkbkQOWtRU LRqpUynkeoNzRMyW1XrpQ8nT20WEJSA1YEuErg96TdL4eC1aFRlYKOilL2rbb+xqcbQi ZnkXCntTtJpNJ0coa8bsEHzFwjysNjGC6uosL9fNFe4qBELhamGzDif0HFvqeANad6DF Xh1qIhenEEMhoSmqqlCSCubGqcY/PwyH/DogrZjwHLk+z8IZlRm+JkNhmUxNdpS1l2fQ W1FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=pe5grwTE; 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 t12si3138292otm.224.2019.12.12.07.04.36; Thu, 12 Dec 2019 07:04:55 -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=pe5grwTE; 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 S1728738AbfLLPDw (ORCPT + 99 others); Thu, 12 Dec 2019 10:03:52 -0500 Received: from mailgw01.mediatek.com ([216.200.240.184]:42039 "EHLO mailgw01.mediatek.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728581AbfLLPDw (ORCPT ); Thu, 12 Dec 2019 10:03:52 -0500 X-UUID: 19c4e568909043eb8a02ec1502cd1e2d-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=F7v29UFNtFNozY6v/Vmo8huw/9C0N0CfhqOK+BHJmfA=; b=pe5grwTEbxdX+eTkwE4Ar8K4zi/1qUGrGJxUuCGROcDg5t2JSSCQA0QCVg3yEPHNjashIe2SJSO0ZU/xkS2AttIYkmEHisbN+8tf2AxYDn962cGDX4HAwEMwr5Wv3QluUZHSLJ+XtVlCwgK3WU1o5UFYCsmCNxY2o+YJMeCq6zU=; X-UUID: 19c4e568909043eb8a02ec1502cd1e2d-20191212 Received: from mtkcas68.mediatek.inc [(172.29.94.19)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1856947062; Thu, 12 Dec 2019 07:03:50 -0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 12 Dec 2019 07:04:04 -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:03:32 +0800 Message-ID: <1576163014.23763.90.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:03:34 +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 T24gVGh1LCAyMDE5LTEyLTEyIGF0IDExOjQ1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