From patchwork Tue Aug 8 12:22:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Richter X-Patchwork-Id: 9888131 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CDDC4601EB for ; Tue, 8 Aug 2017 13:02:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF4C828826 for ; Tue, 8 Aug 2017 13:02:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3E1E288DE; Tue, 8 Aug 2017 13:02:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4C52828826 for ; Tue, 8 Aug 2017 13:02:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aro0hCOaUN3A2ET6Ul7FSgONJh6oCgWn/S6zX+gDX10=; b=mnQaoCwFGi2UGR NKRUO1ac7NUqN/rxc2WmuOs8PWEJHvs3RoXftKzLvBlGhsCI4HKdhMtDmwv9Kdl9B/dZKQuJDOOrB stABxioi+y77zsJpXc8AtPOXknvyYfEeeZKg1uTUEacbNGilQiRLAKnC/lyTAtDnoC4jyhKSUvYCf GXMCrJ5vikkZs8iTI8fgTowzykDO/6PSqM8q1mPs7r8obl94ljx3S0ObfY2dmK/QkDzHlcdsPfGjh 3o5Vq9kYafENRdcB0cH4ri14Y8kdjqaWyAAZkfr9TNyozCtpFN8DPja+HC67MSJ8UYcCn/sisJcXN OhQ7QKkDdvh59/vpFyLg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1df49y-00026P-VE; Tue, 08 Aug 2017 13:02:58 +0000 Received: from mail-by2nam03on0041.outbound.protection.outlook.com ([104.47.42.41] helo=NAM03-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1df3YI-0004A1-9l for linux-arm-kernel@lists.infradead.org; Tue, 08 Aug 2017 12:24:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=zKMkoZlEfvGAflSvGyw1RrdzbAUxKDZdwlwNnZdQx7E=; b=SYudG1UNmDsUo8w6H/2EIyakVkcwnPsXxiSeu4bWp/a3QWmKD+NqhMoRTSW5qd6YlwteF/ZTu5zES1m2AbZfa3OZObMbPgtVT1h+SbpZPRSXUSiuPwl4q78I7OVQ4VTzmif5T11wjzGTvlgGo3SaCscVw55Jci+QwEIIyLxR4rE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Robert.Richter@cavium.com; Received: from rric.localdomain (78.55.120.224) by CY1PR07MB2346.namprd07.prod.outlook.com (10.166.194.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1320.16; Tue, 8 Aug 2017 12:23:23 +0000 From: Robert Richter To: Thomas Gleixner , Jason Cooper , Marc Zyngier 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 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/Q4V3zbCGCeU0B4ALkNuKZnS3nTAzOkT2JVtKtzn+xAZP9rhSb1lG3/dYqYJ5VpPI9po6HCfA7c1lMIoo7iT/s+McsLE4bPqigpgySc7DIwZvUJXU1DgpJiyuNQdn8CaIZ9aWWG5YrmfORmTQNrxLVgRJ0tRsak5kSu3g4C5NoBKj2w; 25:qtwC5ZWZt0jAGMm9fGlU0i5ikN2rwFD0i+0+XgNRBPsbwK1bmG6hgitUSy5z8plg8/DB1rIsGUDpZb2eUPvetnaGu419caPYL5mH18GncP7M6cCRaaY92uWdh17rKy8esV/9l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41LNEj5X+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; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) 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/S6yFdDfScKh10A3Gp0wCrazR9wVEHxi?= =?us-ascii?Q?UiZyYbfEv04VCfk1NgEzpZnrbvlOGgUH6ttPgm2VZmz22iEEvb2x5Yrvrdl8?= =?us-ascii?Q?dSTQ015szweg/PpOUcN4CGs/FSPFengNzpUFlgp/8Ilbw0tnCRbHEJ5MFjDk?= =?us-ascii?Q?WDg6e60eToWtxibFCrQv2y4ufGuO2fssbo+qVV9B8kbtWcpK/yt/LrCLHZ10?= =?us-asc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NLHd61te0l//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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170808_052403_180499_39D992AF X-CRM114-Status: UNSURE ( 8.03 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Robert Richter , linux-arm-kernel@lists.infradead.org, Shanker Donthineni , linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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;