Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932710AbdCFOjh (ORCPT ); Mon, 6 Mar 2017 09:39:37 -0500 Received: from mail-sn1nam02on0085.outbound.protection.outlook.com ([104.47.36.85]:11232 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753140AbdCFOi7 (ORCPT ); Mon, 6 Mar 2017 09:38:59 -0500 Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=cavium.com; From: Robert Richter To: Marc Zyngier Cc: Thomas Gleixner , Jason Cooper , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Robert Richter Subject: [PATCH v2 1/8] irqchip/gic-v3-its: Initialize its nodes in probe order Date: Mon, 6 Mar 2017 13:57:32 +0100 Message-Id: <20170306125739.19445-2-rrichter@cavium.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170306125739.19445-1-rrichter@cavium.com> References: <20170306125739.19445-1-rrichter@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [92.224.60.20] X-ClientProxiedBy: VI1PR0501CA0018.eurprd05.prod.outlook.com (10.172.9.156) To SN1PR07MB2351.namprd07.prod.outlook.com (10.169.127.17) X-MS-Office365-Filtering-Correlation-Id: acc06b60-86c3-4f6b-d60c-08d464907c88 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:SN1PR07MB2351; X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2351;3:InjfPMYnQKC63fTzPCmK4L7wu49OX7jbULtfCe7ArOVPMxW5zovGnXLSAA2KrkydlSN6LeyDizm9ZGUIPBv1qBjlQbrCoYGq0G2Q2r9to8ZPuUMjhtdyjf0wUUMEmZOR1vaKwD+pgOmhpQmpTgrAXDrHG7BgedYM0IlIIF+hI3RK/OBbz0ZhLsUSyxW6VL7cSOkW/fRD9Nu2swdz9itN+m18MpplrAp2n2X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tNkBWYKxATBAybda2MwkGA4XRIrCbfpQYmZ4GI52DfiXt0l2+TH78VNHi6PtEss8KYOy50I8GrZ260adGE4M/D+XXGHVCTjpUd9x3XZZ2kgrinxmFEjDGBd2iVLlILa+LNCqpcTX3qjR6/P5UFz/jl2tFFHbYFz1AvYRwIR17xW1lNf/MNrVGMnhJ2N6YCDSRbcdWGs3CqV2QXzocEDFsDqqdC9qroGy6TfCSwFqgXFeuWFGFbKk X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123562025)(20161123564025)(20161123555025)(20161123558025)(20161123560025)(6072148);SRVR:SN1PR07MB2351;BCL:0;PCL:0;RULEID:;SRVR:SN1PR07MB2351; X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2351;4:qhuxqQfDnuDTAYbMkCcnm2YQWcxBTb7oh/fqC8LDJ5bs0ghO48hnhjyq5zSH4NcQODfeDN/JU0WDHRMIMuIUnIEIX+RVCN3MJzrcpRXPhiwtlOdH3VP/1bLeH3JhnLaGMcQt5gYaP7yDdx9moXSdIABpqJ14887SIHeDW9UwnJGcHtQ3eFzzTuMsuURF440N7bZq5WxwRIa1oG8kbwECC9pZnrDd0jN2aI3MzKNq7hBbhVzZd46HyjdIxlWdHhb/OnKMLBq7lllDMg2MsCihSiULNPxrThjKqJA/zc8Rc1Kskxot3FlI5h183/kBX1zcnWT+Zwc5bELFMvase8pofRlcgoAthwVurTjangfBzk+/T+c4yX+M8gcZkNQF1iMvSJn13nXrCyxhPgTGCbQ2pXhM8cofU+Hka1PjZ2s6J6Gwg97aP1kNSdGrCHMrc+XGEJ3PseXzhI1NzMalRgjCk35V5H1sLYor3X6kad9RhkzjLUm/a9MGY9mcMjyAbHi2hcUIyAH1aiX8v6MOsxjm2BFVE7M2pE60/D9c3eJMVeNC47p8o+owODCbD0fcffyzSR1ld2jhWFKQc379qJvVmdMq9Te0mYgICv8C9qKLViI= X-Forefront-PRVS: 0238AEEDB0 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(7916002)(39450400003)(6116002)(3846002)(2906002)(76176999)(7736002)(1076002)(47776003)(5003940100001)(6506006)(25786008)(6486002)(66066001)(92566002)(5660300001)(305945005)(4326008)(33646002)(50986999)(81166006)(6666003)(50226002)(230783001)(6916009)(48376002)(42186005)(53936002)(54906002)(6512007)(50466002)(189998001)(36756003)(38730400002)(110136004)(8676002)(2950100002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR07MB2351;H:rric.localdomain;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR07MB2351;23:GiLQQWie4z+JeJv9sV3cLQQjIM9UsRU3ZnTYJUKOl?= =?us-ascii?Q?GU1B6ODQM2T46Swg014lbp7nF6gU1ox8f2D2/QaCFt0LzjYAmAlJiLHGP98K?= =?us-ascii?Q?LDzQImK70oxMy0Aa9bpOCEXZpnSndp6fdrGUayxFhD9RTi50E72G1tj3mJtn?= =?us-ascii?Q?XWAykJHSSFUSply10acMiIimfcCmBuD0ZknYleZS7M61h8YRLN1Ds4qP2Thn?= =?us-ascii?Q?Ls5BlPsFuBP2Rae0dKrZ1L5seA8BrDRzV+qZu723uURtFjn3757lkcTNO09H?= =?us-ascii?Q?smWOsPO2HgjZdsYqgbrQMyCUloHuSFfTnOvSTgTd27NtVtRCt8qOzBBdnIvS?= =?us-ascii?Q?oycG8Jco+P1jkSAe2o5UoZYlOBZyWo5KW9xkwGDa26CuPe91mvMPF/bWVuIb?= =?us-ascii?Q?FjcgR0BxQcKiCqEj7Ej52cMVelsAGPQ17tba9yFj2toIJZeZKDxefijqx07r?= =?us-ascii?Q?Yx2GXQ57Rzd4QZnkw9z7jr88wHT4MGGrlKqfzy4DOohMLUft8seJFMiFSVmc?= =?us-ascii?Q?RqjE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n/MAu1nagzUOChn+5PHnzJfq0e0B1FL0sogU9xIZIn7J0ossFlOITyj6amW+TzGj6b/V3ScZtGh2OqBO5gQ==;24:/q78KRnJpJ3IDrIGmz33FiHL4NCzvmBhQ54adAcLwrMsSrOtNyXO93qtpZiinfkwmjtLbbVnqR9JF1OXAitc93ZclZDD0jv+XqZD4cB9Oag= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2351;7:koaqOgBTMPDMxlGY+a1V9/1pi9+K2E62+3Rwu3DSQR68xeYaHUCYGVobui4T8bUstBOgUMSQnsbhCmjGHaGstZR7UIb3VCN2ZkLp14UJtUXReEN93P+FPwFi2ITkybObX2QqQGaJ2cD4DfiDtaqqrTq1i0kvkSUr5cSRtDekq7dmwsHOXPMX++dIUVai3Y/tX0IhjsFu4sWjsPqsQl8klauK5mWamHQkX7N2bbwFCDeorr22XAynrWE4eCKfaF8OPYIkyVLsrn5F0T9US2n8JfDX8ctqM8YzT8d2gn+rYFEfeNGGFl4cj8Yhbq5vmUKFcMreQ0xonL0W+ygsyFxIaw== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2017 12:58:27.9430 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR07MB2351 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 23201004fd7a..ef00ffa92915 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -1749,7 +1749,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