Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3695388ybl; Tue, 20 Aug 2019 00:30:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwfBi5sp1PP4bJB9l7D0puk4NtQWLyFwPzNh/IKi6trVkiV/Io9lKBczT3k0a2T0NeEJLQX X-Received: by 2002:a65:68c9:: with SMTP id k9mr23007127pgt.17.1566286248528; Tue, 20 Aug 2019 00:30:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1566286248; cv=pass; d=google.com; s=arc-20160816; b=liKJD5oaoaNBkiWsokQEo8XnSi/42/ZY+TISs8BQ5Ypz2vXx1MA0MzcLTreZxP63BY SEdNtQijuOz7AVdoyhs4pQ2paq4cT4Uy1oytZp2jDtyt354Rik7hMjErtfzgxtMUqx7U H/bUByuk+H+ws2bttO/73ihIUqdELKpkmenElkD4Huya6diKVPQP35asvWjOK/NxSoIZ tFiYQt9tXPQfIMeef4qli3BsP5lF5qdqOQ5PIqEvW/y5/EZUWpc9gMdGEr/WqltX1u1u fh7J75+DG+IiFB6CN5Qkmm3KDzaslzVIfmKFh2IhNt+W/cIztXfaWt60sjBTv/IIR4Ye PGCg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=pMTQ1bL7iTonEYzHTx0G5mW/k6ZqwOW6nis5+Qpxzuw=; b=sVh+etmaO3ePsaqxFgeF9rtIOvN20qctE8riq+c+HhABK/K9DGGZStM/8ySU8x5v0I TggOP2I7QC3ArNFMVTUG8tBpF/Fs4MgMqrN86VsDJoIHbczgjrmilYRF4VmpmpvJzyGT KX/rq2LegRnrUGuJEBQ/ZQwmbAwV0wondq6FZTjNRZmDEg3umr4MQXc/HvlzbhdMjwa3 Exoul8KtcKa1V/MdMIe6r86niLaYlD8CX93vqqcRUkoUYpTJCXx96ErxNle5qRZyCI6i ICY8cc4sLMFqywh+UGMRxW/bNYfGgqPEbGqXAY0jmB15J5F5aiwgGzCd0a1tq+usAypQ la+w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=VSH8jpMc; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8si11547870pgt.548.2019.08.20.00.30.33; Tue, 20 Aug 2019 00:30:48 -0700 (PDT) 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=@nxp.com header.s=selector2 header.b=VSH8jpMc; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729414AbfHTH3A (ORCPT + 99 others); Tue, 20 Aug 2019 03:29:00 -0400 Received: from mail-eopbgr50040.outbound.protection.outlook.com ([40.107.5.40]:43843 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729370AbfHTH27 (ORCPT ); Tue, 20 Aug 2019 03:28:59 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ePAi7OyXEUY6Hp/jzEVIdPFEFTruFyViFBRvp8DdkA/wA3PpJigFK13l8CU8Ep6mYVpjG9g0tGyOr+HVWpIWgWyxpPn4jhxLopoHk5zFCy5KvzPxNAuDFBLFQd8YRiU9bPyKt8u0ZzVuwr+enr3etzFI3vmMaBnwkeowLxB+WHrOXGhtgkKB7Y9bm+5tPg20zyvNVdDmA/DBCMz4g/M2ivOgLzdoWnh2uwcyTlaxQenFJEGgBy/ZOJ3U5NubpUk2P8ER9hoPJGK24BVIfPdiTwDuMGak6E1ODZa8gvWDUYKpuIbnLylzCcgRbmoX5k0y4AYi3TbFOqyuFbA3eeKTTw== 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=pMTQ1bL7iTonEYzHTx0G5mW/k6ZqwOW6nis5+Qpxzuw=; b=aYDWmE8S0m+Dy0fsN6+K12YcLOoyz0Bjn4NCtk7RwIe69rhXW6kF1lVSgoKTdB/OAuaFEcvCl+m474KwKQjFvrAQYQL3QY3M5lnUWXuNhH6dPpCpiOdT2tX2a2PJTychICM4L4Pv6LUtLdGhnmX3xFiVESYTJCZJoSUR0TMNLe5/SKxv/Xc4IAnVSBzsUwmGA4IKGoSP90Sr5TcxB5ClCegYQpe7A/L2qk5RyF/xmhjVGA5YS0Z18Y5k2vrVCPNbU4SP36Xw7vH2D9CnTlF1X/dQsARl/JA9+CGEW+0690oLbFfaBrUJPUt5SYB3ypwyQrZjjInK0wJgKqdAprlpkA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pMTQ1bL7iTonEYzHTx0G5mW/k6ZqwOW6nis5+Qpxzuw=; b=VSH8jpMcwh7Mwj8foibvQSpytVui/SaABabUqfkV3pV5RufTD+kHnMHOjQM+otkPKOjdU1lZF43BSemmpKRp/Lojj/mf8xAgNVjAgFsIcU+0S6t3VwkZygLEzjWlcfR7wPtV7fFAJ3t6PtL304BNGXjWryZ7/BJSh8bzXHnLCu4= Received: from DB8PR04MB6747.eurprd04.prod.outlook.com (20.179.250.159) by DB8PR04MB5627.eurprd04.prod.outlook.com (20.179.9.77) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.18; Tue, 20 Aug 2019 07:28:55 +0000 Received: from DB8PR04MB6747.eurprd04.prod.outlook.com ([fe80::19ec:cddf:5e07:37eb]) by DB8PR04MB6747.eurprd04.prod.outlook.com ([fe80::19ec:cddf:5e07:37eb%3]) with mapi id 15.20.2178.018; Tue, 20 Aug 2019 07:28:55 +0000 From: "Z.q. Hou" To: "linux-pci@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "gustavo.pimentel@synopsys.com" , "jingoohan1@gmail.com" , "bhelgaas@google.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , Leo Li , "lorenzo.pieralisi@arm.com" , "andrew.murray@arm.com" CC: "M.h. Lian" , "Z.q. Hou" Subject: [PATCHv2 3/4] ARM: dts: ls1021a: Remove num-lanes property from PCIe nodes Thread-Topic: [PATCHv2 3/4] ARM: dts: ls1021a: Remove num-lanes property from PCIe nodes Thread-Index: AQHVVyjsUiZYcs6/dkaNMcnf6FMNwg== Date: Tue, 20 Aug 2019 07:28:55 +0000 Message-ID: <20190820073022.24217-4-Zhiqiang.Hou@nxp.com> References: <20190820073022.24217-1-Zhiqiang.Hou@nxp.com> In-Reply-To: <20190820073022.24217-1-Zhiqiang.Hou@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK0P153CA0030.APCP153.PROD.OUTLOOK.COM (2603:1096:203:17::18) To DB8PR04MB6747.eurprd04.prod.outlook.com (2603:10a6:10:10b::31) authentication-results: spf=none (sender IP is ) smtp.mailfrom=zhiqiang.hou@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: da113cee-ba47-4834-48ca-08d725400ed3 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600148)(711020)(4605104)(1401327)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:DB8PR04MB5627; x-ms-traffictypediagnostic: DB8PR04MB5627: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 013568035E x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(376002)(346002)(396003)(366004)(39860400002)(136003)(199004)(189003)(54534003)(2616005)(4326008)(6512007)(1076003)(66446008)(66476007)(476003)(76176011)(99286004)(66066001)(6436002)(478600001)(71200400001)(81156014)(66946007)(71190400001)(52116002)(66556008)(54906003)(110136005)(81166006)(7736002)(14454004)(305945005)(8676002)(316002)(8936002)(7416002)(25786009)(3846002)(6486002)(486006)(256004)(64756008)(53936002)(86362001)(386003)(186003)(6506007)(6116002)(2906002)(5660300002)(446003)(2501003)(102836004)(26005)(2201001)(36756003)(11346002)(50226002)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB8PR04MB5627;H:DB8PR04MB6747.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: MXSwWuxYL9Vp0YR+XP0k6Uur/AyAUnHpriLlZEKQ4B3vlljhu75v0kCoUN61w7OslyuF6PM000OVxhd+Q0C1nE91bBUfKZdw+9TlVaASL7oCk4P7+R2I9u/9dZaxbNZ5wwAbN5StKD6BgR+CSrZe93Ewchx7ykD3CQcbM9il+xMUz0J6fnm8EYoyTemP/aVJsuNXwfSlbsloHfaWSqfssOvOP+51Qe6JE0MTRJ/h+IHyucC6clkBiXkxnTrbO/okimMCIsOsgyUGMmQhNhPwG3r4rh51AgyOdVoNIVhfqPR/j6k9wVRpr8+OqxZelxIynt1NlHz5Ob345aSYB3jw14Rkv7QuNSDvlsqdeX7i7WCDNs05LhqX85QTfK+ERc2Gr0AY/5/jGZWSPq6UenRmLmsUfdNJf73lZOsawFhPzH0= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: da113cee-ba47-4834-48ca-08d725400ed3 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Aug 2019 07:28:55.6235 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: M1e0TSz5RyGHYB+KkOJi2ATbrp1L+b37eSao7pGRaDQ49zHpY5Ltuj93o16jezt4bA0XpOPHTkD6cwhh0yguXw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB5627 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hou Zhiqiang Remove the num-lanes to avoid the driver setting the link width. On FSL Layerscape SoCs, the number of lanes assigned to PCIe controller is not fixed, it is determined by the selected SerDes protocol in the RCW (Reset Configuration Word), and the PCIe link training is completed automatically base on the selected SerDes protocol, and the link width set-up is updated by hardware after power on reset. So the num-lanes is not needed for Layerscape PCIe. The current num-lanes was added erroneously, which actually indicates the max lanes PCIe controller can support up to, instead of the lanes assigned to the PCIe controller. And the link width set by SerDes protocol will be overridden by the num-lanes, hence the subsequent re-taining will fail when the assigned lanes does not equal to num-lanes. Signed-off-by: Hou Zhiqiang Reviewed-by: Andrew Murray --- V2: - Reworded the change log. arch/arm/boot/dts/ls1021a.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dts= i index 464df4290ffc..2f6977ada447 100644 --- a/arch/arm/boot/dts/ls1021a.dtsi +++ b/arch/arm/boot/dts/ls1021a.dtsi @@ -874,7 +874,6 @@ #address-cells =3D <3>; #size-cells =3D <2>; device_type =3D "pci"; - num-lanes =3D <4>; num-viewport =3D <6>; bus-range =3D <0x0 0xff>; ranges =3D <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 = /* downstream I/O */ @@ -899,7 +898,6 @@ #address-cells =3D <3>; #size-cells =3D <2>; device_type =3D "pci"; - num-lanes =3D <4>; num-viewport =3D <6>; bus-range =3D <0x0 0xff>; ranges =3D <0x81000000 0x0 0x00000000 0x48 0x00010000 0x0 0x00010000 = /* downstream I/O */ --=20 2.17.1