Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3745978ybh; Tue, 17 Mar 2020 05:57:47 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtLlTeGMbiVSn/JG8e+oHdJ4AgBnhwoR+6TYPiL4DBKp/lueQy5WZhXeWO1DRRtkW9Yedhm X-Received: by 2002:a05:6808:910:: with SMTP id w16mr3249538oih.66.1584449866987; Tue, 17 Mar 2020 05:57:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1584449866; cv=pass; d=google.com; s=arc-20160816; b=OD5fGStkMXEJ3HD0E+anr+3uXTbLq7gfJTBI0doVkei2mjz4+OpE9ALTGouDNlur+e xRBKNUOY5cpBm1PuvoGpVibRB2nUUOXtVhOujQItXiL+3sd5V3TylnS/xOfOLwWqS2st Pd34Ul8YNnrjgVRPG5Su2aiVRSqEq6HtweBhJm/XJwAA37x8fKB5puolacxIZzbzRPFb BbNPs+a73YXJXCKk237fZESM/c7MQZvfcw8hU4wr9xmy99LaO1JfZyerq83fA3Cl3u+d fYd4tlZzvmOjwOLbWd0hKgsXVwoO5s72zSTug0yrRCOuudV0IM3B2icCPG+AyRbGeWBd QfkQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=2aCvlAVLR1RlPDnltjLbv03P2vwGNH3sNKAg3b+EPWs=; b=L/GLQSQpR4ROQb7lIhLZt1thVtsNqHJzPO4AfZboRmafdybs8kQLDIX36bbYvDhnh5 9dMj1OyYWHQZAE6zsJrEtg5hZIqTrmLeRlFECv8F5OlNDkbNw0I5jjHO/ByO/fPEiqxH V57iNSapDRdZPV5Z2eJIanIRJB23eo+AbdwzHU8Rrc2yBQxciQyporBeZXTIz1FKmJWL CbzOWGlTGDloJu85464gBjI907j2xI4vo6n/3sRuHHFMzuRi9VQcwTguIRjmCzcWzPW+ hAUHMoKQ1aNbJAcDMCc/KAWfUFZbDytqq5BXwMpxBjonUV3hAIl8WyHMvkwFs1PY+8NQ c+4A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=NyYTrCrD; arc=pass (i=1 spf=pass spfdomain=xilinx.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j68si1639513otj.56.2020.03.17.05.57.34; Tue, 17 Mar 2020 05:57:46 -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=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=NyYTrCrD; arc=pass (i=1 spf=pass spfdomain=xilinx.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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726250AbgCQM5Q (ORCPT + 99 others); Tue, 17 Mar 2020 08:57:16 -0400 Received: from mail-dm6nam11on2041.outbound.protection.outlook.com ([40.107.223.41]:11903 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726016AbgCQM5Q (ORCPT ); Tue, 17 Mar 2020 08:57:16 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YAtf1h1CYHRjr6zwYmLN38KfQUdq3DBIrODEIlL/PBOH3VeL+qnmid7/M299nosiBuh4JqD733L9U27ORw9g68eq0O9lgS2Q5r1LcvsY+ToLwmcgzwif3tMYdRWHz3RmmLVbKudGavqegiTSJY6vwzzy8GpNiMsTlN6H03Vtx4nQOj8Tg0n2O03Gf0zD6OLCsVvEut2rP+S6ZciHJGHYoXeD+VV6JfHYl051Y8dEzN/nC58hwfrpGiEZaSlYHDmXEJpLoU3MaW4TZdcTzO0WufuuCgS22aY+pWY736XE0TffRReOB0AbdLfM40d9V1G78KLx80S4mWe1t2g66QrmOQ== 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=2aCvlAVLR1RlPDnltjLbv03P2vwGNH3sNKAg3b+EPWs=; b=O01u53qh3xS4eseYuXuXkFfElHv4LUFdE/BD74OCFislRJMG8gozMnUtX61GojhcVoWUcdzmtyI54DegZ1ORXBDe8s/EhLaguvq71glku8YrY3ciVFn2B4WcQsawc8ev841lBgNaJ6PuPgSFToMtxDyUf932OuMpcBngp0bvzGJXvvGYOpF5UExjhsGhGRt3bOPz44UG0X6spw6dX2+zGPPghUKz6PxUtFXiCGd5DE+QcdWNSJoGg7eC18mybaEDq69+OGd0n47mQxcaCLeONthe/h66g+SxwBE2cncNWIO1231K9gl7Uza85OUOh8DbhtZdu5qhJBlvtxm3uygLLA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.60.83) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2aCvlAVLR1RlPDnltjLbv03P2vwGNH3sNKAg3b+EPWs=; b=NyYTrCrDtCPgsbNJ/eQMaFxf2OdLHb+94p6OQSO5n6GjW62Nkbws0ipsu4ov2audrALb6XUOCc400hXigG9lYGIFFAk9IfpScpvMYzf/Cb6CGLRQeg0UQ6oyrdYc1A3G0PbEAOkDuxFeTGagXxUlH6brt6yIvopdsAzK0Do29tc= Received: from SN4PR0501CA0035.namprd05.prod.outlook.com (2603:10b6:803:40::48) by BYAPR02MB4103.namprd02.prod.outlook.com (2603:10b6:a02:f9::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.22; Tue, 17 Mar 2020 12:57:00 +0000 Received: from SN1NAM02FT018.eop-nam02.prod.protection.outlook.com (2603:10b6:803:40:cafe::9b) by SN4PR0501CA0035.outlook.office365.com (2603:10b6:803:40::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.12 via Frontend Transport; Tue, 17 Mar 2020 12:57:00 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by SN1NAM02FT018.mail.protection.outlook.com (10.152.72.122) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.2814.13 via Frontend Transport; Tue, 17 Mar 2020 12:57:00 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1jEBmF-00020N-Po; Tue, 17 Mar 2020 05:56:59 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1jEBmA-0001f0-Mj; Tue, 17 Mar 2020 05:56:54 -0700 Received: from xsj-pvapsmtp01 (xsj-smtp1.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id 02HCuqlh007535; Tue, 17 Mar 2020 05:56:52 -0700 Received: from [10.140.6.23] (helo=xhdmubinusm40.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1jEBm8-0001dT-7T; Tue, 17 Mar 2020 05:56:52 -0700 From: Mubin Usman Sayyed To: tglx@linutronix.de, jason@lakedaemon.net, maz@kernel.org, michals@xilinx.com, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, sivadur@xilinx.com, anirudh@xilinx.com, Mubin Usman Sayyed Subject: [PATCH v5 0/4] irqchip: xilinx: Add support for multiple instances Date: Tue, 17 Mar 2020 18:25:56 +0530 Message-Id: <20200317125600.15913-1-mubin.usman.sayyed@xilinx.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83;IPV:;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(4636009)(396003)(376002)(136003)(346002)(39860400002)(199004)(46966005)(478600001)(36756003)(81166006)(966005)(81156014)(8676002)(9786002)(26005)(186003)(8936002)(4326008)(107886003)(336012)(356004)(7696005)(2616005)(5660300002)(426003)(47076004)(103116003)(1076003)(316002)(70206006)(70586007)(2906002);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR02MB4103;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;LANG:en;PTR:unknown-60-83.xilinx.com;A:1; Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: eadda818-c2c0-4dcc-3bd1-08d7ca72aebe X-MS-TrafficTypeDiagnostic: BYAPR02MB4103: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:923; X-Forefront-PRVS: 0345CFD558 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mEvG39uylTp7cqbrsBB3dHCKYkaLBk42F4Vson+Yo64k/H2GRvV1gBi1A5HtKnl6VMSJNg1DeiHfD7AHUjFgGzX0RBidE+clKvVcI6FWTQmDOgUgaOUpIA0zqvZXbyIboi06hxGDOdqnD4tJSw9G3v5eey+m/DOnHVIAqLADfamq9AbXgqnjXRIAAQoX8qUN9gC728yU1SPVEk79QQDKcOITdUZbejmAXYChu5RiDRotUVDCZil0wGea8s034hzjJ/DUBhxr4spULlzXbW+1dCvRAJtNlEeI10l8vecVemhYjZbQxDa3pmaT+BCwWAphkVWBEwWaiH5H0lB9SkogqBfo/yRpeRL6+KdCP8xAyAbd45sbobtpYYLehhMYKoZPu6VlvEXrfKdUmKpIjb0bKB/l+FmvKNRX4plrHe+SovwVa8brJkCNQCS7VPIkT9XFt3MewI7Aj1CInp7e7VuOBj/r7qdOq8W12Q5sxHaUB/tkSNlWneHsgY73AVNiBkUB5LjJU/fWeaGD8vomFAUqJH2k8yd1YaYIGU9uLF5BKvOQ+NRclJyYjtvoAM1611ib1LEANjP/Xjp1noL6oxtN3w== X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Mar 2020 12:57:00.1848 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eadda818-c2c0-4dcc-3bd1-08d7ca72aebe X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR02MB4103 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Created series by rebasing inter-dependent patches from Michal (https://lkml.org/lkml/2020/3/8/164) on top of v3 (https://lkml.org/lkml/2020/2/14/2680) Changes for v5: - Fixed review comments from Marc - fixed intc_dev related handling in 1/4 and added 4/4 to remove unnecessary call to irq_set_default_host() Changes for v4: - Fixed review comments from Thomas - updated commit message, variable declarations changed to reverse fir tree and cleaned up some code. - Added inter-dependendent patches 2/3 and 3/3 from Michal https://lkml.org/lkml/2020/3/8/164 Changes for v3: - Modified prototype of xintc_write/xintc_read - Fixed review comments regarding indentation/variable names, used BIT - Modified xintc_get_irq_local to return 0 in case of failure/no pending interrupts - Fixed return type of xintc_read - Reverted changes related to device name and kept intc_dev as static Changes for v2: - Removed write_fn/read_fn hooks, used xintc_write/ xintc_read directly - Moved primary_intc declaration after xintc_irq_chip Michal Simek (2): irqchip: xilinx: Fill error code when irq domain registration fails irqchip: xilinx: Enable generic irq multi handler Mubin Sayyed (2): irqchip: xilinx: Add support for multiple instances irqchip: xilinx: Do not call irq_set_default_host() arch/microblaze/Kconfig | 2 + arch/microblaze/include/asm/irq.h | 3 - arch/microblaze/kernel/irq.c | 21 +---- drivers/irqchip/irq-xilinx-intc.c | 123 ++++++++++++++++++------------ 4 files changed, 77 insertions(+), 72 deletions(-) -- 2.25.0