From patchwork Mon Oct 19 17:02:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 7434611 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7B3049F37F for ; Mon, 19 Oct 2015 09:13:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A45FB2074B for ; Mon, 19 Oct 2015 09:13:33 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 643F7206F4 for ; Mon, 19 Oct 2015 09:13:32 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zo6TR-0002Ih-Nt; Mon, 19 Oct 2015 09:11:21 +0000 Received: from mail-by2on0120.outbound.protection.outlook.com ([207.46.100.120] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zo6TO-00024M-L2 for linux-arm-kernel@lists.infradead.org; Mon, 19 Oct 2015 09:11:19 +0000 Received: from CH1PR03CA002.namprd03.prod.outlook.com (10.255.156.147) by DM2PR03MB496.namprd03.prod.outlook.com (10.141.85.152) with Microsoft SMTP Server (TLS) id 15.1.293.16; Mon, 19 Oct 2015 09:10:57 +0000 Received: from BN1AFFO11FD048.protection.gbl (10.255.156.132) by CH1PR03CA002.outlook.office365.com (10.255.156.147) with Microsoft SMTP Server (TLS) id 15.1.300.14 via Frontend Transport; Mon, 19 Oct 2015 09:10:56 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=none action=none header.from=freescale.com; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD048.mail.protection.outlook.com (10.58.53.63) with Microsoft SMTP Server (TLS) id 15.1.300.4 via Frontend Transport; Mon, 19 Oct 2015 09:10:56 +0000 Received: from anson-OptiPlex-790.ap.freescale.net (anson-OptiPlex-790.ap.freescale.net [10.192.242.118]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t9J9AqGC002643; Mon, 19 Oct 2015 02:10:54 -0700 From: Anson Huang To: , , Subject: [PATCH] ARM: imx: support edge irq trigger for gpc Date: Tue, 20 Oct 2015 01:02:12 +0800 Message-ID: <1445274132-12253-1-git-send-email-b20788@freescale.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD048; 1:zmcBhxTP7sBIMkoN73qsZROLiY5jTkOlK2rFnY1uHzZzD3xX/9sCP52k/jfuAaEPjh+hfe32nWz1wVMlSncetJeHAMh6k3Sa7TjFLu5HUOadkl5k6l3U7fA6a18iP8HdoOpUoLp4kw/v9B1jgdp1ZJK2Ig4yJKxxJgeQOxWkTTcu8g5AMygiUgGKKu0jIgMmi9NicQeH9bcGxOz6a/wizKuSI/tV3ldWdFfv/JyW9xyhoFqNgIfRLg5viUwVuxcmhjG2aDMsdtr8m5NVPk+i+luLCqOcdvVtOS7P2S3KtZyO8ZUiSks4cn4tiBOwEnGDD4NAqiejemKkxav4ocYtuT99yyDRH4pohF4BXFNLaFuEwyZOv/iU6U2czUoZAzIl X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(50226001)(64706001)(77096005)(5001960100002)(46102003)(189998001)(5001920100001)(81156007)(5007970100001)(104016004)(92566002)(5001770100001)(87936001)(105606002)(229853001)(5008740100001)(6806005)(106466001)(97736004)(11100500001)(50986999)(36756003)(47776003)(33646002)(19580405001)(48376002)(50466002)(19580395003)(5003940100001)(85426001)(2201001)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR03MB496; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB496; 2:JTvxOm9zORpgc6Ue610rlncGtMNXaiCCMNU1olSmMvnEdoZiQ36FIE11ZI4FtBH+waKXU8TJBV3rWjM0sC8uxfQM6B7kZIoXgNTLnjz3GZ6FHNxm4jfNMnwqM7aJyQEdFL97E6Si7dHO1Z2xRDWK+5ItZE82nt0sj1PLH5SSLNM=; 3:DYPqNHq8hClqnGg7oW7XYuU5hgZHA/gsvFKqlI4b1V8eWDEeBCZyb430jNQvbCqUcmlmBFVdk9k4wdEsufuc0sTt2XND9FSqZ1KY3GScfJehRFwTwpuY6h7fA3xfRo7gwUizHU0xc+la+xn/l4kfgWf4muUoscmdmuWgW1BtlIJ2W63V4Tbv0A4QmxRW42F5hen7juCpIRuCiNOJEZjIpEG/MBcLUlE5uz4kp1bGLao=; 25:6c1lsiqhfchqie0qq0/GT5I5FkDhwMvVC2oBnEdnPgRx2i203bXluQkPRBy7MFS9uVWzgdmGmK1ikD5Z8DnJLdtr7GFeqeiDEdxQ1hOaUcFgH+ODoDEftdAJMHbxENGgWFR19wMkELkOdXG0S/L0cTsYmwPkw9HVlWR0Go82MJ6Ig09OjA4/3sAIGYGj9o8rAfQpwKrsahqSYew8Lxt2p22lFtDjkoF1QSg6GA/Hi+i/G5DRWe/xWJspS/4NZB4v+gIKoD07w+VXkYCa7NrUng== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB496; X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB496; 20:xW7XOVp/IiMhZ5AZ+ovH7dGcU//1puN/ebzutidTRfvzpR7g4Sc3Sv+KyZg7KdieLue9WokF5vukgK4iX8RQ5I7EpI6keb5VoJBjo4/yAZT91Ef82QHQ8N/GWCck/UxWqXAQJ/BnVkK5N8kE2DUzSNjEWdrO5/E0CYFFHglRUQ+XvT1BGiS6XUeHsjSiTpHeXN1pAVgYrqCBsFodL375N2Uwwzf/Iwx6vICwH/bR9HIgJMpiiRGpgOn9WW+w4JWOmmhZyP1egR95F3e2VkESW9vgxqQGKuv1e+lCWxU1JnOxVhyxN2YDEpOfTxrjoGYt4Ybj/93A6AAHXZOK7npTyxFX75ynf09PNhcteFY5irU=; 4:aEGIPUWdFR/EJJz0X74WJ5m8HaAeb/hyN9veEU8idXUv0TRA+dBpoERk1CiyfjMom6d+rrjsh1eQ1M+jgmNl6Orr+w1E1vXKN0cIKKT0t4TdmuwcMD8kJ5B+8aMqHUYM6/uh+8nFDoO3+VtBn9E/cSIiQWd6MjE1q2bpMsjaBh1B7A/Q/oZeDQxbgTPIgYTG0OiUG2G2DnHgJVGRCg4NuzX/VNk5j02WgBBwWOnXrqRDLGtgF0+fGWEmTnd995SpOcYwmvtbm513OzbineKQy6Y23cm+peLGv9FjrHJ6kf887bOUnYTyf2IquCMxmz/e0SlkCyyzmVBsH6lajHhUQiqWukgY7Ux6IbgbkuWPafg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001); SRVR:DM2PR03MB496; BCL:0; PCL:0; RULEID:; SRVR:DM2PR03MB496; X-Forefront-PRVS: 07349BFAD2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR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0qvOlB+nBeQ?= =?us-ascii?Q?YyN3IGh4jBsNsFl/bswPd0II8CPFkr7GzCvLeph3oIR3U63BOVaXoifMXtm7?= =?us-ascii?Q?f+fV5QfUX0lw2Vf4PeY+XR6UUawheM6QgbQgquKzZKEyT0CYP8rxkz9dZjzp?= =?us-ascii?Q?v/dzlfWsTR+WE3Hg/okoyvzhU4rqGXZs6j3uEISF2bfUP9s90YsS/F23PqIX?= =?us-ascii?Q?PHvaS0BnOOZ7LQc5d+pXbvo7Qe?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB496; 5:ogtUsWICe4Xtm9NLrc5qJbEh4f3mpY7D1px9j3Oit4CqyWdSBec2MGHOf5xJJI1Ccd5z+5bzPkvyEqJwlicQOB3pLC/xnD+AreCreyrQEcbV6PEKKL7tvayjbU3buIuTwnIhttK664JrbsHtRHP+9Q==; 24:ddqZ/JHy+XaTpBMfbmEjtg1z2KAkhOliE/GT9WQ28r/mGVAMJmAfNGqkShx4whQbhg3GKkZmcq6jh/6eR4/C1GtmZAvfSSLQr7CF4sBWIxc=; 20:HIlqlIhZi8II0hgxTZTckVkVqX7ZXA8Mmz1l/gF+ZA4e46Jl8Kn1hUqsMDWuonCRR9unWTsdjna5XNhvumhNdw== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2015 09:10:56.4598 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR03MB496 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151019_021118_747527_568642AA X-CRM114-Status: GOOD ( 17.94 ) X-Spam-Score: 0.0 (/) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, DATE_IN_FUTURE_06_12, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP GPC irq domain is a child domain of GIC, now all of platform irqs are inside GPC domain, during the module populate, all devices irq should have correct type setting in GIC, however, there is no .irq_set_type callback setting in GPC, so the irq_set_type will be skipped and cause edge raising type of irq work abnormally after kernel boot up. Since GPC has no irq type, so just tell kernel to use irq_chip_set_type_parent instead. Signed-off-by: Anson Huang Reviewed-by: Marc Zyngier --- arch/arm/mach-imx/gpc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/gpc.c b/arch/arm/mach-imx/gpc.c index 10bf715..b3a7a74 100644 --- a/arch/arm/mach-imx/gpc.c +++ b/arch/arm/mach-imx/gpc.c @@ -176,6 +176,7 @@ static struct irq_chip imx_gpc_chip = { .irq_unmask = imx_gpc_irq_unmask, .irq_retrigger = irq_chip_retrigger_hierarchy, .irq_set_wake = imx_gpc_irq_set_wake, + .irq_set_type = irq_chip_set_type_parent, #ifdef CONFIG_SMP .irq_set_affinity = irq_chip_set_affinity_parent, #endif