Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753732AbcKOMXK (ORCPT ); Tue, 15 Nov 2016 07:23:10 -0500 Received: from mail-bl2nam02on0062.outbound.protection.outlook.com ([104.47.38.62]:32448 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751567AbcKOMXH (ORCPT ); Tue, 15 Nov 2016 07:23:07 -0500 X-Greylist: delayed 4559 seconds by postgrey-1.27 at vger.kernel.org; Tue, 15 Nov 2016 07:23:07 EST Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; imgtec.com; dkim=none (message not signed) header.d=none;imgtec.com; dmarc=bestguesspass action=none header.from=xilinx.com; X-IncomingTopHeaderMarker: OriginalChecksum:;UpperCasedChecksum:;SizeAsReceived:1795;Count:20 Subject: Re: [Patch v7 1/7] microblaze: irqchip: Move intc driver to irqchip To: Zubair Lutfullah Kakakhel , , , , References: <20161114121351.10924-1-Zubair.Kakakhel@imgtec.com> <20161114121351.10924-2-Zubair.Kakakhel@imgtec.com> CC: , , , From: Michal Simek Message-ID: <4f055736-5977-4d0f-ddf2-113c787e383a@xilinx.com> Date: Tue, 15 Nov 2016 13:22:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161114121351.10924-2-Zubair.Kakakhel@imgtec.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-22700.004 X-TM-AS-User-Approved-Sender: Yes;Yes X-IncomingHeaderCount: 20 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(189002)(24454002)(199003)(33646002)(87936001)(77096005)(2950100002)(65826007)(5660300001)(6666003)(4326007)(9786002)(31686004)(575784001)(229853002)(83506001)(86362001)(31696002)(2906002)(92566002)(106466001)(63266004)(230700001)(2201001)(76176999)(305945005)(50986999)(54356999)(23746002)(4001350100001)(36386004)(47776003)(7846002)(65806001)(81166006)(356003)(8936002)(5001770100001)(189998001)(8676002)(626004)(36756003)(81156014)(50466002)(65956001)(64126003)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR02MB2588;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;PTR:unknown-60-83.xilinx.com;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2NAM02FT059;1:yMMG60axUPqW3fiftYgRMakiHUUcaCUk6FM0wI4oT/fl4EX+nRl1ooNCzMt8NVFP02ZYqXNViFPzVVWGitjRJkofREt/9v8qHvwnAv82cBOWZWBHyjNYyawVQfse5Qj75NXJkR9VroKxD8xjtiFzc2Ajp34Quu6XtA8hcJiBITq45dZ6arllSATJ6eKSEYWx4WHOp9BX91XAwk41lNGa5JQ5oBvezBBwbv8gMiOefPwfjIz/ikCTNb8sfIZ7wKR9aK5KA97Hq4ftCAHvPQxFM8PHNcqhy34PDMijUYKMXveJT2DngYhM3T5c4fa2iujmrCdRyaVQ6WD2ZWv1cBGgdZl24WsqtP7ndqv3s8QaS5gd7iEJWG3/sbxbS2aPTwCzbrmWLSFsWrnTgfxsnziKrPPsLsdB+dFfbfESMSf79E4gTARG/vepGQbRz91IlqcQcMwU+7ZAQ5A2EWRYRMylSC1p9ur32mWR+SAI2f+pG0vlgmD+wH/vQC+KPQUhOCO+SWyEjV7XYkZswXTnOv8AML6YyXj1zDi4EP5oUhivXG5GR0/n9crwR2Rvx3wwQ8MLiMBLoMPGSYYnbdHnuBs9Ux6xnjIKpJgqLCrIHG/sdnk= X-Microsoft-Exchange-Diagnostics: 1;DM5PR02MB2588;2:SWSq35AHDPQ8k6jMXzz0MLSgDfiIdaq2b0k5dIRf1VMhRztmj4UZEpNr86T2cMYiP6MxiyK8tRzHIlep+kov5RISUkUgGHY6DArxZv7OjY5qAhVql+kx/aJkphEskvqMRh5ZUZ1bhgbdxzZhAw+Kf15mobDiW9+cYPFQ+XBD63I=;3:U3rCIYSHW9AsDSZuZzpOIE3+yQbooSCI5GxhE/1cxVGbE3aQC5Cf2RvKgCs5BHB+/bVPYs3n6z7in42gZRU5C78vSLRvJl2qU5rqTEciUTVaFyEUqwzd+Dl+CnCXAmudrbpd5crg4o5/UKUJyXOG/5Xb4QHsOOfQQiGRNztG/AioL9KTURnteW6XbrCKPqdXs0eGP94KUvA+dBvZEjF2soBiult1P12ATa5r9w4n2cT1gSh3zkAoqAGWKnP6oBW77Lz02Ad4a4zLcYXRr7Oprd0EyVZ+2z82oZ+oN5waIQw= X-MS-Office365-Filtering-Correlation-Id: b3443648-1ceb-4d7e-678f-08d40d522112 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(8251501002);SRVR:DM5PR02MB2588; X-Microsoft-Exchange-Diagnostics: 1;DM5PR02MB2588;25:uXGbg6N4IMBKK/fZRC0hj61elqUQ3nuF296k+eV+tBiKRugKdOsFdFyYbIm/9KAk6ffJqICRSCaQi0SIPLXTAMlMz+IBgO+7myu0AX0xlXmGasDay8CQEn+zRGjxVzN+xYqF4YGjugZJ081ZWL8NZ+sxZqk4IQUDK3/RUOSBzZZxMz6AYLpuCBolo7/V7I4K7mxXBwxDuOA7gktcJnLtPvOvi4P8Y3sVhGf0dfFrrKzBNGMBgwj9RQWxQy/BwrOYZErghclxtJmY6cvZ0mvMUgBG4ZgcfIBEDJJE/4hLek95EPT6G6YvK+wnMBk5wNcEvS58DcmWOlVJz4dLid3EjFnpTNXcuqAKge7CYtS8Cl8dUaH0w5ACEdlNFW4gcj+JbipQc5Zlg3GkDtAkmUMcJwniSiEAusMZO1w+ca/tV/vdmsLrvq8IggP2yy8Bm3qUddBGe2msiCnJTySH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KMNStJIpG684wQuFUTmlrx1vkhHA4RdOuvYLHKADImS2JEAV7brx65uUCYMkwtsoB44HVoPaWTT02VxaJtBs011ssPmc1DoQsNAh++TQ+CiaW1vnvSLCZGPFD0KLXYyYFyGw584CWB3D2csVBlAPFaxG+HA X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6060326)(601004)(2401047)(13017025)(13023025)(13018025)(8121501046)(5005006)(13015025)(13024025)(10201501046)(3002001)(6055026)(6061324);SRVR:DM5PR02MB2588;BCL:0;PCL:0;RULEID:;SRVR:DM5PR02MB2588; X-Microsoft-Exchange-Diagnostics: 1;DM5PR02MB2588;4:UHnAJ1wLg8KPRG236Jrm+KeX3yP2JyWhEv9l03Om2NkDLcr8av3LCqmhRE9j1cUQL4pSyeNM0S2Eo8umPgug+MmKqaXyNi4TLLkmoCI4SaxHj+pK55KvhpDKuRQFbXrzH4g4Sjo1j+xIcJ0/BKxWxvFNopmfNmC549paHOY/z+ZMaSJexv9JdwvY0pM+oIFStf0ArRQZuh7CB/TTQzDonzmEkHdLRxLm/v6tdR1u4H2gzCj1AuuZjhIzO0CFJCNIl1pHyJCTluFX2UHdacgZ1+ikFANX9/TSQewx95BDdudQsSOzLmh3zMSa3Vl3YhHHyCznC54V99W/SnWPJf0kBJGmUTlRX7t0NU7/r7Ex6BuOGwipgC4oSgdqRz4QAu2XHuzeolD4BL2h070oQVyRFXVNUn/Tiu/84mIjj1TTmuZK2Fn9C6wjOYDWRfmLs4/ew4lmB1Yk1ql8kxLBtrtsRAkA4xvQvCMS0d5PfulWejbNzO6uF0FDmdnRLgxw3rmhiAxpdneWAymMnVjWtUz/q7cgfooara/+IDZx3BC5vUrcZpdINM0ez7xZlvkOnJuD X-Forefront-PRVS: 012792EC17 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;DM5PR02MB2588;23:nl2QlTF8Ck7zlqYzlADwjddz7beAiIPHIIUoT?= =?Windows-1252?Q?pM/X9U/MAoGmCfi93X9kqmnCkY+A3Iq46UfDojIAZ9UFnOaPr+7F/d45?= =?Windows-1252?Q?yFejEMr4qQWqkqABfIlHbvjEacrWQvTBoZN8QwsYRlnIDQy+7ZgGNOjU?= =?Windows-1252?Q?rQcIMhKsWvdhbdDUpdDnS0QlJUbPQJrw/fsz1Y9EQnFPb5Zt4p62vooc?= =?Windows-1252?Q?m5kXpSoqX6Cp97uI6ybAZZn1jTXEmgOmZVkTBzQh4Rz+pkvPb4Q/NnFF?= =?Windows-1252?Q?RI8a3q0++8DT14o/eyGi65uv06aLuBo7PTQX0A7bE9n0JxFGIvEnuqmV?= =?Windows-1252?Q?yKG3LP7sOLApj17imz2IJlgC0WcSgc9zQLTYgTNwuKN8Raob/v/XH+KA?= =?Windows-1252?Q?pgRv/vXjIh+Mj/IfdfSyGaC1YHlPAB7wPo1V5eFc+BGerT+y2PZB/7hr?= =?Windows-1252?Q?+jpA4mwkg8m4CGrKA1ISxdcnIDJvtqAW28awSEx5teOUbjMLl6xwlntr?= =?Windows-1252?Q?RLd9VpIUnQeDhZx/AAJF8YEEEewZgfEXDYNcjIE7aQUc9kOSo8EwBljL?= =?Windows-1252?Q?PNpv3/hHVH6GkiEgk8tWdBR7Mv9nVWa8MlY1mVkgHxBbc1D1F0b21EiQ?= =?Windows-1252?Q?JG+fCQznUEYgzKun7ZZCiFHn9Np8F8IrtLxqWOu/WRWhRVN2iI4dTbgE?= =?Windows-1252?Q?7ts6xmSJx+BRGMpotZ+SINQmhCSidxG+ZtfEeQIBjspKd1wZHRUBJCne?= =?Windows-1252?Q?Z7JkC/lBehaS3X3xcd+pVSQVfvNZ/UEYLfB8wJ6e2S5n9DXjeEzDRg7Q?= =?Windows-1252?Q?7z0cDrWbx4Xpa0v+XyuoFlWsRWUY3oou+Gx9zlwkUsCdoPx7+Ec75/tx?= =?Windows-1252?Q?b5Y6/Hq5S/vcd3WkinRdiTlxM9HO64y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Xnp06n5sm0A==;24:UqbJVhpgf0/0PfQlcLIvifc+ure3o/tne1xqJXnSOhBAVQ37IVP1gwVviPwfk3ou25mZw52iSZJwDIFhIP/nhCN1SyK3A4lNKrEkO7jMoV8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM5PR02MB2588;7:IJyKenrH+p2RQLN8OazISJdsZ8WtCiiFo6IVEMLbzAdfveV2XUIVamhXwOk8uzLXc9eQTkUskxa5NWeba7mbGVwzGGt4xAyZXkWTuaWr/RwnxDFVZARPR+n0ohHloaU3sUhMjlnMU4sNx7dEdnPImFcTedeZGOi8fKB7/AYuYc6lCUsSNmZKrwGApWUgE+Y0aw5qOo7gaR/V20PTtkriYQOmFyhN3YI6o9GCDsLxmGhvncgmojVQQSqa/+pRISdLQM1RbKkz0zJhZw1dksJdpThGmf57TaHoHU5B9I8g5PfSxadMDrkLQWtmaxy9nSHhBo2fhaMqiDLaKhbHoCd7b92yHZtLjiaM5ZuyzbMZGWE= X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Nov 2016 12:22:55.6759 (UTC) 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: DM5PR02MB2588 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3443 Lines: 104 On 14.11.2016 13:13, Zubair Lutfullah Kakakhel wrote: > The Xilinx AXI Interrupt Controller IP block is used by the MIPS > based xilfpga platform and a few PowerPC based platforms. > > Move the interrupt controller code out of arch/microblaze so that > it can be used by everyone > > Signed-off-by: Zubair Lutfullah Kakakhel > > --- > V6 -> V7 > Rebase to v4.9-rc5 > > V5 -> V6 > Rebase to v4.9-rc3 > > V4 -> V5 > Rebase to v4.9-rc1 > Renamed back to irq-xilinx-intc.c > > V3 -> V4 > No change > > V2 -> V3 > No change here. Cleanup patches follow after this patch. > Its debatable to cleanup before/after move. Decided to place cleanup > after move to put history in new place. > > V1 -> V2 > > Renamed irq-xilinx to irq-axi-intc > Renamed CONFIG_XILINX_INTC to CONFIG_XILINX_AXI_INTC > Patch is now without rename flag so as to facilitate review > --- > arch/microblaze/Kconfig | 1 + > arch/microblaze/kernel/Makefile | 2 +- > drivers/irqchip/Kconfig | 4 ++++ > drivers/irqchip/Makefile | 1 + > arch/microblaze/kernel/intc.c => drivers/irqchip/irq-xilinx-intc.c | 0 > 5 files changed, 7 insertions(+), 1 deletion(-) > rename arch/microblaze/kernel/intc.c => drivers/irqchip/irq-xilinx-intc.c (100%) > > diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig > index 86f6572..85885a5 100644 > --- a/arch/microblaze/Kconfig > +++ b/arch/microblaze/Kconfig > @@ -27,6 +27,7 @@ config MICROBLAZE > select HAVE_MEMBLOCK_NODE_MAP > select HAVE_OPROFILE > select IRQ_DOMAIN > + select XILINX_INTC > select MODULES_USE_ELF_RELA > select OF > select OF_EARLY_FLATTREE > diff --git a/arch/microblaze/kernel/Makefile b/arch/microblaze/kernel/Makefile > index f08baca..e098381 100644 > --- a/arch/microblaze/kernel/Makefile > +++ b/arch/microblaze/kernel/Makefile > @@ -15,7 +15,7 @@ endif > extra-y := head.o vmlinux.lds > > obj-y += dma.o exceptions.o \ > - hw_exception_handler.o intc.o irq.o \ > + hw_exception_handler.o irq.o \ > platform.o process.o prom.o ptrace.o \ > reset.o setup.o signal.o sys_microblaze.o timer.o traps.o unwind.o > > diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig > index bc0af33..ae96731 100644 > --- a/drivers/irqchip/Kconfig > +++ b/drivers/irqchip/Kconfig > @@ -211,6 +211,10 @@ config XTENSA_MX > bool > select IRQ_DOMAIN > > +config XILINX_INTC > + bool > + select IRQ_DOMAIN > + > config IRQ_CROSSBAR > bool > help > diff --git a/drivers/irqchip/Makefile b/drivers/irqchip/Makefile > index e4dbfc8..0e55d94 100644 > --- a/drivers/irqchip/Makefile > +++ b/drivers/irqchip/Makefile > @@ -52,6 +52,7 @@ obj-$(CONFIG_TB10X_IRQC) += irq-tb10x.o > obj-$(CONFIG_TS4800_IRQ) += irq-ts4800.o > obj-$(CONFIG_XTENSA) += irq-xtensa-pic.o > obj-$(CONFIG_XTENSA_MX) += irq-xtensa-mx.o > +obj-$(CONFIG_XILINX_INTC) += irq-xilinx-intc.o > obj-$(CONFIG_IRQ_CROSSBAR) += irq-crossbar.o > obj-$(CONFIG_SOC_VF610) += irq-vf610-mscm-ir.o > obj-$(CONFIG_BCM6345_L1_IRQ) += irq-bcm6345-l1.o > diff --git a/arch/microblaze/kernel/intc.c b/drivers/irqchip/irq-xilinx-intc.c > similarity index 100% > rename from arch/microblaze/kernel/intc.c > rename to drivers/irqchip/irq-xilinx-intc.c > Tested-by: Michal Simek Thanks, Michal