Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp267641pxt; Fri, 6 Aug 2021 01:16:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZB7l8TMb2epjwuPyMsOaTRGLP9b99EL/ENM8XKbif9HWU2RJqUdZlDVEmUm/TJAbc1th6 X-Received: by 2002:a17:906:d153:: with SMTP id br19mr8913360ejb.166.1628237809021; Fri, 06 Aug 2021 01:16:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1628237809; cv=pass; d=google.com; s=arc-20160816; b=WXvKLbhl1pMlbmMA3KQDM1twUaAFu6lp72/PzqnvjkOxT0jQlzruXBNXEhyJrjo3Wu 1DfUsvyUjVgwgJrAP2qXwgtOOPPlQFxBhdkTQ8t4tN5wuRh8Wm7beaOXKEelyG01/Gjw DCAak5XDlBANJkiuO64Rp624gT7tVKPr73+fdExOq1tFaEqEmJEOfnx7WTGvNCdXVm0G aGpDB6yiq6/OdrPAHBEZXCnBTRavT0FwU/1XJ2IfDMKhmSw0DhwJ/uVKUyOqSdeybHPs pYfP6TNk5iXCQKG92s8w3vPhtgVP1Sp+71EckqufEKD8QOQftsSBcyXnomOC5yq6aWEN RPUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:dkim-signature; bh=ILOMPyu0YEEHgDd130atu/c9ysAc7YoKhZnNBYEu6kw=; b=ChPaddqXgkVuasVutaheVUCBfvzkve901SgRkbd0jysNcQZziHvShWpK4Idd/ED6S6 HkzroYNBZ4KpREllpmW353zslKA4/S6GbHsCjpX0WrFSJ5FOBi76W9UWlJF0KBBREJBo jaGDdQM2hyXEr4oXYAmQlzP5RcW4T1+4CrN/N4lsFCakY8ETWmg7mad5j6JRwQZgrOUJ u09OPm+MXoOrBwvQwCY+Vo06VWvDcRK5j3uL4e9Uvb3rt0POkCE3FF4lpog9MxTPkF+K VMQDgYFhBJUv06SW65oITJn4qk+FGv0VzMAD7YmP5VHjUgne5vNEQlAcRKcriFcdLM/N PZIA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Bp+4r9bf; dkim=pass header.i=@mediateko365.onmicrosoft.com header.s=selector2-mediateko365-onmicrosoft-com header.b=GPlCjUeG; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id ca21si8186191ejb.437.2021.08.06.01.16.19; Fri, 06 Aug 2021 01:16:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=Bp+4r9bf; dkim=pass header.i=@mediateko365.onmicrosoft.com header.s=selector2-mediateko365-onmicrosoft-com header.b=GPlCjUeG; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233016AbhHFHiG (ORCPT + 99 others); Fri, 6 Aug 2021 03:38:06 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:46150 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230127AbhHFHiF (ORCPT ); Fri, 6 Aug 2021 03:38:05 -0400 X-UUID: 67a883dd59844e399312e76cac250ee5-20210806 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=MIME-Version:Content-Transfer-Encoding:Content-ID:Content-Type:In-Reply-To:References:Message-ID:Date:Subject:CC:To:From; bh=ILOMPyu0YEEHgDd130atu/c9ysAc7YoKhZnNBYEu6kw=; b=Bp+4r9bfJ0KBVJ1emSDOJGuEm8vJ0gWzeUL3VBdndG2cRm7fXW8I6096tuMrOTGjaM6v1kKKn+X3nH84RbWSjCEZW5l4WLxTqbh74HLajtF1z6PYWHqO2Zh3Rgd09nCVB9Qq90v4Obkf9RNrQ5ijUFXJ625QixOg1+0CRJGVXlE=; X-UUID: 67a883dd59844e399312e76cac250ee5-20210806 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 316054315; Fri, 06 Aug 2021 15:37:45 +0800 Received: from mtkmbs10n1.mediatek.inc (172.21.101.34) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 6 Aug 2021 15:37:44 +0800 Received: from APC01-HK2-obe.outbound.protection.outlook.com (172.21.101.239) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Fri, 6 Aug 2021 15:37:44 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ecGqHYL+o3NB/sBmLiKFBm5sq7T6Xz0UWx53mxXPeF3VNvM3Fzgn6BL/1+HQ4ECDaTD4agMMMC5KxrprWLzGWKqEphsWi2B1J0ix6c4eG93I3goGhioTQE423xEvqQEAHtTmqAbfXT0CCAFMY15MZmunS1bbHAIhZLl1GJPbYbnt0T2HoJlDVlgSBTGJNXCXScHYEP/No0es8avb80faFVQKAhcS+Qx9hEG40Y+jB9iLgdN8wEv6CNVgejdpRuYvZ7ACI1E/rSQiRmksv7teEtg7gl9MhYFWYwD4On1zsIkGVBHP0Tz657FvodvQdQ5iYVh4wmv3MXGP4AGEXXIg5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ILOMPyu0YEEHgDd130atu/c9ysAc7YoKhZnNBYEu6kw=; b=ZHJWez4LdTlCv4bm6HpDKx7L+EX4f8nqISV72z4sKHsGuYpBy+/jC4XF/Z0OJ0wirox7PJzWSeY0aezeRC0eYC9TXUcr9RIFGRVf70ENMPfnouNHuysc+sP8D/tBCcKompKb87HyDL1FSS8oIwWu3Hp6/psQ3xaaJKNGHVI3twX94I0A6t6ozeILpJYHVHiHoOOjJLdeuSe4YgnYbzqRRdJVwugNbWYRDiIge+SEUqZxtq5JclCcFUKb167Hr3ZZZNfRKeyOuF3p/7FNSUQki7ki+RzrNv4lrWn/Uzv0D/TDMoIK3WXu5vMs58dv7D80RgEWiWSMxRw4D/MidIiFrQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mediatek.com; dmarc=pass action=none header.from=mediatek.com; dkim=pass header.d=mediatek.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mediateko365.onmicrosoft.com; s=selector2-mediateko365-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ILOMPyu0YEEHgDd130atu/c9ysAc7YoKhZnNBYEu6kw=; b=GPlCjUeGLsxeQJaxupMar1QaQPdhYc3kD71BVwKfORadGyf9Cb+RRn3UeAgsS9T8N4LQ0K5jz+J4QIJARE3fba3pre2dHeAo7gn3GCeLLIr91tifUhxcYw//6YiMzJ7TPGegAU123comyGvr3EHTgSf7wu3EK1bB9B6BAVeorDc= Received: from KL1PR03MB4694.apcprd03.prod.outlook.com (2603:1096:820:12::14) by KL1PR03MB5093.apcprd03.prod.outlook.com (2603:1096:820:1a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.14; Fri, 6 Aug 2021 07:37:33 +0000 Received: from KL1PR03MB4694.apcprd03.prod.outlook.com ([fe80::88a8:25ac:66d5:5ec1]) by KL1PR03MB4694.apcprd03.prod.outlook.com ([fe80::88a8:25ac:66d5:5ec1%7]) with mapi id 15.20.4415.007; Fri, 6 Aug 2021 07:37:33 +0000 From: =?utf-8?B?Q2h1YW5qaWEgTGl1ICjmn7PkvKDlmIkp?= To: "robh+dt@kernel.org" CC: "linux-mediatek@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "lorenzo.pieralisi@arm.com" , =?utf-8?B?Q2h1YW5qaWEgTGl1ICjmn7PkvKDlmIkp?= , "frank-w@public-files.de" , =?utf-8?B?WW9uZyBXdSAo5ZC05YuHKQ==?= , =?utf-8?B?Smlhbmp1biBXYW5nICjnjovlu7rlhpsp?= , "linux-arm-kernel@lists.infradead.org" , "linux-pci@vger.kernel.org" , "matthias.bgg@gmail.com" , "bhelgaas@google.com" , =?utf-8?B?UnlkZXIgTGVlICjmnY7luproq7op?= Subject: Re: [PATCH v11 2/4] PCI: mediatek: Add new method to get shared pcie-cfg base address and parse node Thread-Topic: [PATCH v11 2/4] PCI: mediatek: Add new method to get shared pcie-cfg base address and parse node Thread-Index: AQHXfHE58Vwso+DZ00iND05GAYdwVqtLLasAgBdEUYCAA8D2AA== Date: Fri, 6 Aug 2021 07:37:33 +0000 Message-ID: <2db708627db9a0005089f081f8b83859e33509c7.camel@mediatek.com> References: <20210719073456.28666-1-chuanjia.liu@mediatek.com> <20210719073456.28666-3-chuanjia.liu@mediatek.com> <1626749978.2466.14.camel@mhfsdcap03> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=mediatek.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bccb9943-9f1e-410b-b030-08d958ad0dbb x-ms-traffictypediagnostic: KL1PR03MB5093: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: U37esbJcIYElVcq+emnHtJsISJ8o2tQ1RDXhqkC/VYrcFVWsCydZan8y5SQAG+1JTpqzi9Ox0+UjfX5ISsZaLpLe6UpikTdj6vhX46uLf0Qk2arkacL9ZefHyRvOzy5wxZD3nnG+esQRylhhRAvHdCGhanmJOFM4vkuwzyryxQRAck9las0zeC3v+IbufIwkWgQYSNiY2xv2RrvC56lY64baOeARr4LPMhTFub2PkVm4WnmTZrFXWA5KgOfAYYjhLEoI2rFBABMZucvy2tKBw1/9/R9BdbZG62U6t/0Vn0LEq43OgHdHiSx6CtE2j48DFJ4n7mnx6fGD/Fkn+gEfNICuDmrPSzFCxMXRdxo83qF/bKHsodw0Vl+r/blAX0HLo6YARUBIyqqRRwyQBTx+ZWba2kNrnsCNGhoO4CRnfV6nd+g85iwTCUbJS+8zhIY2W4lznScFWX8ZKmx13vqYMnsUifm859ty5es7p43niHmzcr3mfQ8jtMHNok9WDShpNxw/MqMlunAKHUrdDii8/K84d6W/aNx6oR/dr+A6gvK6etdvYQtoHnVX1UJRsl+XdUf1cQg7iGWYLvX4r9svnuENUGj/d4vMnaiHQ+VLYGIxWZB78GZXYK7F4i7g4rqnlTkbTj7EkEDiobvnHybY7anwO3xB3gklXjLtp7Vqsv6KXM1kCxjCjGQ3LmiBLv0avsklzZAa0qetNYQbpdClBw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:KL1PR03MB4694.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(136003)(366004)(376002)(396003)(346002)(39860400002)(36756003)(86362001)(2616005)(107886003)(6512007)(6486002)(7416002)(83380400001)(122000001)(4326008)(26005)(38100700002)(54906003)(5660300002)(186003)(53546011)(6506007)(71200400001)(316002)(38070700005)(91956017)(2906002)(66946007)(478600001)(8936002)(66556008)(64756008)(66446008)(8676002)(85182001)(66476007)(76116006);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?YklCWjF5NVNscXZsQk5IQ29vNEhIa0dvQm95bm1nenp1S1kzc1JGSkZLZjVv?= =?utf-8?B?amVsYkZWZ0ZrVWwzRWxqNFlXTldEOGgwUW55RldveS82d2RLMDdWcFJzSjY4?= =?utf-8?B?MFBucXFVWjZmSkVMcmtSRFpkWjRVbnRydWQ3bXZBcUVvdCtWdHJob1hCWHNn?= =?utf-8?B?ZlJHZy9UdzI0Y2FteDFoeW5UaWpiVmJycUloalc4NGNDa1gyUjVHMWpZNzIz?= =?utf-8?B?Q0xpU2hrRGl3a00wbWx3WUI0T1l3c3BxbUhRSmE2MHlrRDlHL1VhMCsyU3Fi?= =?utf-8?B?ZUNLcTVZbG14R21BaXVjbjZpWURVa2FJRE14YkMxYzRaSWx1R2NwbmQzMmpt?= =?utf-8?B?bmxidzdtZklOOFU2SjNGWGV3STBXSUlSR256ZWhTdDFoTUJ5b044SzJaRldY?= =?utf-8?B?dnFtS2g5NHJ3bXpIUk4ySWhPN1A1Q1UrTG9uVWlDVFQrNEVLdFVSekxFVklO?= =?utf-8?B?Mkl2T3BBY0F5dkEvZm13OVVLbEhlOUZvMzY0Y055M2xMWHQvYURrQVE2SEVj?= =?utf-8?B?QVdvZWc4c2t1eGZnQmptb3dMQWw0K3pjdDNVSFVXZy9zbTducmtjUXBPdGxx?= =?utf-8?B?bHZnb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3RBMXF3S01s?= =?utf-8?B?QnJTeVR0MzJIYm1GOCtxbGZQb1dnNDl5R3RndlEvR3VYblRkcXg0d2JmVUVr?= =?utf-8?B?aFBjNXljdXFYa3R2ZHFDUmJ1QUhZSGhqRWQwTnU5Rmt3ellIQmVVaS9lek01?= =?utf-8?B?eGNaSTczZmp1QXhNSVZZcVY1UXEwU242amsyemhJeW40eXNsWnp3YmNQMHc1?= =?utf-8?B?TmZTODA0YUxKUGExdTQ5cDFCeFkyblN5UHBZMXh3MmdJNVJBWjRQVDFkNUhL?= =?utf-8?Q?22pEf0D1CVQWLIgcAgcR/PYPZFPjs36TG3hYbza?= Content-Type: text/plain; charset="utf-8" Content-ID: <22B226733A904F42A0D15928A931DFC2@apcprd03.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: KL1PR03MB4694.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bccb9943-9f1e-410b-b030-08d958ad0dbb X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Aug 2021 07:37:33.0917 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a7687ede-7a6b-4ef6-bace-642f677fbe31 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: OQHjl+tbpwRNurjmBYzJ9Ba9sqvVua8y8TKU/FwkDniUSbzWrueUdDCVxuds+W1e/Aobn5Lu4A4ENlbs0GsTp91K4BwiGDt2I/drPmNzgkg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB5093 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVHVlLCAyMDIxLTA4LTAzIGF0IDE2OjE4IC0wNjAwLCBSb2IgSGVycmluZyB3cm90ZToNCj4g T24gTW9uLCBKdWwgMTksIDIwMjEgYXQgODo1OSBQTSBDaHVhbm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ICAgICAgICAgICAgICBnb3RvIGVycm9yX3B1dF9ub2RlOw0K PiA+ID4gKyAgICAgICAgICAgICAgICAgICAgIH0NCj4gPiA+IA0KPiA+ID4gLSAgICAgZm9yX2Vh Y2hfYXZhaWxhYmxlX2NoaWxkX29mX25vZGUobm9kZSwgY2hpbGQpIHsNCj4gPiA+IC0gICAgICAg ICAgICAgaW50IHNsb3Q7DQo+ID4gPiArICAgICAgICAgICAgICAgICAgICAgc2xvdCA9IFBDSV9T TE9UKGVycik7DQo+ID4gPiANCj4gPiA+IC0gICAgICAgICAgICAgZXJyID0gb2ZfcGNpX2dldF9k ZXZmbihjaGlsZCk7DQo+ID4gPiAtICAgICAgICAgICAgIGlmIChlcnIgPCAwKSB7DQo+ID4gPiAt ICAgICAgICAgICAgICAgICAgICAgZGV2X2VycihkZXYsICJmYWlsZWQgdG8gcGFyc2UgZGV2Zm46 ICVkXG4iLA0KPiA+ID4gZXJyKTsNCj4gPiA+IC0gICAgICAgICAgICAgICAgICAgICBnb3RvIGVy cm9yX3B1dF9ub2RlOw0KPiA+ID4gKyAgICAgICAgICAgICAgICAgICAgIGVyciA9IG10a19wY2ll X3BhcnNlX3BvcnQocGNpZSwgY2hpbGQsDQo+ID4gPiBzbG90KTsNCj4gPiA+ICsgICAgICAgICAg ICAgICAgICAgICBpZiAoZXJyKQ0KPiA+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg Z290byBlcnJvcl9wdXRfbm9kZTsNCj4gPiA+ICAgICAgICAgICAgICAgfQ0KPiA+ID4gLQ0KPiA+ ID4gLSAgICAgICAgICAgICBzbG90ID0gUENJX1NMT1QoZXJyKTsNCj4gPiA+IC0NCj4gPiA+IC0g ICAgICAgICAgICAgZXJyID0gbXRrX3BjaWVfcGFyc2VfcG9ydChwY2llLCBjaGlsZCwgc2xvdCk7 DQo+ID4gPiArICAgICB9IGVsc2Ugew0KPiA+ID4gKyAgICAgICAgICAgICBlcnIgPSBtdGtfcGNp ZV9wYXJzZV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