Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752555AbdHHMZ1 (ORCPT ); Tue, 8 Aug 2017 08:25:27 -0400 Received: from mail-by2nam01on0079.outbound.protection.outlook.com ([104.47.34.79]:58224 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752310AbdHHMX0 (ORCPT ); Tue, 8 Aug 2017 08:23:26 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Robert.Richter@cavium.com; From: Robert Richter To: Thomas Gleixner , Jason Cooper , Marc Zyngier Cc: Shanker Donthineni , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Robert Richter Subject: [PATCH v3 1/8] irqchip/gic-v3-its: Initialize its nodes in probe order Date: Tue, 8 Aug 2017 14:22:51 +0200 Message-Id: <20170808122259.6299-2-rrichter@cavium.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170808122259.6299-1-rrichter@cavium.com> References: <20170808122259.6299-1-rrichter@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [78.55.120.224] X-ClientProxiedBy: AM5PR06CA0030.eurprd06.prod.outlook.com (10.167.168.43) To CY1PR07MB2346.namprd07.prod.outlook.com (10.166.194.145) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1631bf99-afa0-4174-e182-08d4de584402 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:CY1PR07MB2346; X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2346;3:iugVzTpfgCudu8Hnvx91VsXv4ACsFlIkXb7gIptEWJlvBeM7iNG74QnYtKns/SWeK5qqiAac08SLsW90N/Q4V3zbCGCeU0B4ALk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4GeUHYd0duE+LfJvOMB2C1nvXTcOFNKqrOLACPpmZY0OXfC6esQeIds3VA0k6wRA/7GdkaCalXCoIbb2g0xSWZIDwQK6a4iGxGunUy/fv34Om8hD7y3zXmmWQ4ukgraGpwUdTa+pdxDFvd239ArXZUry7TwgzKXQk2ZMolijU0voM6ZERng3ARp8uLIvYO7SNnjpjL8PtAE+ItNcmiojRe/MNPnzZkGg81a/XngA62v4H3p9xdaJn2;4:G2FH+ZlYe0IeutlC+DhU9R47MNrpgmeI74jePoY2WdnBd0aA41LNEj5X+NcaaHosH8B6ZA1SV6qi3sl5jfWmpFnnGY73KQFp1cZXY3Cogis6xN2VE3QhYuhRftrBqmoRblVqMSmRWCVecIkbj9gJ7dWHsrue0I53xWzLKUf3+siLoiz8I34xxknaOK58Z8wUMkTjMSloJ2Egs3n5nwEfEtkfJxkUxDiLHLaYVgCFtBMcemQxoZTmvSMvsJmLxbK6 X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6041248)(20161123558100)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY1PR07MB2346;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY1PR07MB2346; X-Forefront-PRVS: 03932714EB X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(7370300001)(4630300001)(6009001)(39840400002)(39410400002)(39850400002)(39400400002)(39450400003)(199003)(189002)(33646002)(66066001)(106356001)(68736007)(2950100002)(189998001)(54906002)(6116002)(3846002)(97736004)(72206003)(6666003)(81166006)(50226002)(6486002)(25786009)(5003940100001)(107886003)(38730400002)(4326008)(305945005)(50986999)(101416001)(5660300001)(42186005)(81156014)(230783001)(2906002)(7736002)(6512007)(36756003)(76176999)(1076002)(105586002)(7350300001)(6506006)(48376002)(47776003)(478600001)(53936002)(50466002)(8676002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR07MB2346;H:rric.localdomain;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR07MB2346;23:t32ygXbWb4m/zRxl+PyzAPw1mlVOpzHN0F7Cgkceo?= =?us-ascii?Q?zWK+Q7g63mENNT3ESsI+eoY73W795wA1xY/NxFKxWjXmtSlvMxzpLj5GW/hs?= =?us-ascii?Q?JsMg0r/AH92FrwtnhSADpdDXB2v09Cb2x1bnmJXH03hqL51T9NLzwzs0KvWN?= =?us-ascii?Q?d511GNAZRQh3jYeuoTeIo85855Xjcp4ekggrwwdnCEsD08OvY+BPwOLHkNIe?= =?us-ascii?Q?wJYsJo4kKrU/ZqajIRiwD9tsHDYNT3r/OPBbCzgnGSAb51xevqTcQWJdL18H?= =?us-ascii?Q?1jxfNf70507JEkHW8J71o0Bwr7ZTQjSZ2CfS/zIwPNjzX8Ng4FoxhsgEnj+O?= =?us-ascii?Q?OHlAtGDL6bly93T1NasGrMJ4sQQ/9hVDJnxbTGm5VhwInzD8DqUVztlIRxOt?= =?us-ascii?Q?2NGFFgFrPBFwD8f8weq9T2YdV4XIg2gSilQekb27Y8fpqZEpPA/xWgJdu62u?= =?us-ascii?Q?Y3WLEpeO1bqx+gVoCJpIIs/lK+vc/sqtafljYzCgQquY7XZ/kqrW2KGZmxyR?= =?us-ascii?Q?i5YLvIoVYmNBXA598OGsH9fXWNgsYTSmGKqcS/tre3DVxvoxMB4s07Y5Is5T?= =?us-ascii?Q?6QPzZPSL0NKpmLlHhRS6u3PRMRK2/S6yFdDfSc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+HmHGxOHb9HV6Ox6Psnqir5mGu5LTvNaOoHMmpsdgy8qwMdMt5u71YsxXLMNlUwsrT8gUYSXe63amm90zZ/MAc0R8axw2/mfu7qWPaoNRzBL0Hj48C3nv/qSxUS0IkieQc/vRb7TXmo0weLKbWUu35MJ7tQMg==;5:Bfl2VViu7uTbNUj+KtrxGz2/AkZ9r+WTEdtZWAfoWuQblUMPgIsIDbZnYbKcycDI3NCaLXWJqoeahvPkiRK11wNLHd61te0l//RMVF5rPc3UmV+TDe6K3eACDf22Zne3gfERenoaYg7+9+GwGcbWsw==;24:dNAzwQdbQd+33jHJpHJHwdXOuA3ryresYUB9zeNT6gCDwNu+ZWwYV3CQzGIeAdwjuNvAi066ZGwr5BKZOahA03Hp3hTdFMW7UYXX6JLCDR0=;7:BA6u4DB6GLMxkEgJJL1mxaw1hQphTr04GUCdthfaI+uRAQ8S0xK+oqsIZ3xKi+LwN3sORaxNJMuuZCPwwOCzeRA+4BE8BTM6yYbiPYS6Y9l/x5aCuPk7rfi66Nb2NnHxy9ZRFWaw/FwjPD2aqVWLSZkY1hnsuZQ6xTRAs1bzspX65VQdjJXKtJjHI9DUem9jWYx1rLHf10fZ2Boejm2n5ry+X21ekJaTuK4XI6t2i4s= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Aug 2017 12:23:23.0141 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2346 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 762 Lines: 24 ATM the last discovered node is initialized first. Though this order should work too, change the initialization of nodes to probe order as one would expect it. Signed-off-by: Robert Richter --- drivers/irqchip/irq-gic-v3-its.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 68932873eebc..92c66c86a63f 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -1767,7 +1767,7 @@ static int __init its_probe_one(struct resource *res, goto out_free_tables; spin_lock(&its_lock); - list_add(&its->entry, &its_nodes); + list_add_tail(&its->entry, &its_nodes); spin_unlock(&its_lock); return 0; -- 2.11.0