Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3442126yba; Mon, 8 Apr 2019 19:46:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoPPsj5id2eXwqHUumBPOTc6RBeHLVi6IxLIUr77rwu7N99xxMmz2/SFmF4iA+zLcE0SeT X-Received: by 2002:a63:465b:: with SMTP id v27mr32521677pgk.165.1554777973604; Mon, 08 Apr 2019 19:46:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554777973; cv=none; d=google.com; s=arc-20160816; b=MNeqH/VTpqjmMV/INmOBvqwoetlX1Jlm/PMDf/4c2BBLI8RcilevG/vRPrU/IcQZ4i QFw7efQYBDLNZS0L1m03Oahd1J3d9Z2rNDsrmCZ5CZaAwKHeqQPN5Y3vbtZJUqlx2qf6 +3BscQusGf+MpGN7OYH84IabPYfuipsyRd+6X0xdwYv6fYuV0DEnDDA85RwF+qLPdPHT PRuGUdzoDhhxArz1AMp2MCCfh3Vn5l8hwziGXIVnNTqJFoFcyhzvohkA2tYGiYjJ0b3r lIGaQWWcQmLp7PB35YwG7QIjgJzzWhgFc1dmqQuJUhQEVr27x6MmLvkrz4mCXJ6a061h 0TNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=gvZrYX159TT+OWojpeg1NAxRgGNjUxgZWeWBrQcZdTo=; b=fj8kjd0M2I5diLzmsdpaEJZZENNe78sgyanGmelYKAcazLNqxPAT0ZURiqZDltickW G6O4PSiEzao6wjicYQ4oPC5gWVMVEb1yblXxDHIwJzPBVgUQHX5t9NCgNZ+SOyDaG+ZH McO8THevCu8O9PURwYdJnnMLSk2M0J8Vd98QqEjGOEyjr42WJLE6LaVS7ptMEOdxtq1U i1sBP5gunT4g5GAAzjsqQGLcm48wh4gn9b0zb+I99+MgiSyyJdR+kktveujj3KH3kmDS i15+rv84jbyzrPGdo5kOvtDjsQ95CYfs8H4Quqi9oFOqU+lBrG4drnDkQXBlBeYloMwE A99Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=AJQGwgGG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c3si7385815plo.243.2019.04.08.19.45.58; Mon, 08 Apr 2019 19:46:13 -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=@nxp.com header.s=selector1 header.b=AJQGwgGG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726953AbfDICoC (ORCPT + 99 others); Mon, 8 Apr 2019 22:44:02 -0400 Received: from mail-eopbgr80050.outbound.protection.outlook.com ([40.107.8.50]:3920 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726523AbfDICoA (ORCPT ); Mon, 8 Apr 2019 22:44:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gvZrYX159TT+OWojpeg1NAxRgGNjUxgZWeWBrQcZdTo=; b=AJQGwgGGZ+Jsvb3is2XUXdb9u/yD/ZCLDwBbUggxG9H3DSa1UF1nuiOTw7XMi/rbEZTpqAoH+dq/iHxDsYwbeRNUo8M5I+R8kFqv5ei3+w/1U+mIMMFY9Y86EtkqobKrYni3XersJARK4tc9bFOK2maVE5+ROumbtUOEkn1rU8Q= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3929.eurprd04.prod.outlook.com (52.134.70.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.18; Tue, 9 Apr 2019 02:43:18 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::e8ca:4f6b:e43:c170]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::e8ca:4f6b:e43:c170%3]) with mapi id 15.20.1771.016; Tue, 9 Apr 2019 02:43:17 +0000 From: Anson Huang To: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "a.zummo@towertech.it" , "alexandre.belloni@bootlin.com" , Aisheng Dong , "ulf.hansson@linaro.org" , "sboyd@kernel.org" , Peng Fan , Daniel Baluta , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-rtc@vger.kernel.org" CC: dl-linux-imx Subject: [PATCH V6 2/4] firmware: imx: enable imx scu general irq function Thread-Topic: [PATCH V6 2/4] firmware: imx: enable imx scu general irq function Thread-Index: AQHU7n3820Y16VlDTkmIKJKC3R5bhA== Date: Tue, 9 Apr 2019 02:43:17 +0000 Message-ID: <1554777487-31075-2-git-send-email-Anson.Huang@nxp.com> References: <1554777487-31075-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1554777487-31075-1-git-send-email-Anson.Huang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK0P153CA0002.APCP153.PROD.OUTLOOK.COM (2603:1096:203:18::14) To DB3PR0402MB3916.eurprd04.prod.outlook.com (2603:10a6:8:10::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2813bdad-7377-4353-72a6-08d6bc951ee2 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:DB3PR0402MB3929; x-ms-traffictypediagnostic: DB3PR0402MB3929: x-microsoft-antispam-prvs: x-forefront-prvs: 000227DA0C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(346002)(376002)(136003)(366004)(396003)(189003)(199004)(6512007)(53936002)(102836004)(478600001)(14454004)(6116002)(3846002)(7416002)(99286004)(97736004)(386003)(6506007)(305945005)(186003)(110136005)(4326008)(7736002)(316002)(256004)(25786009)(26005)(14444005)(446003)(2616005)(11346002)(5660300002)(105586002)(2501003)(106356001)(486006)(6436002)(6486002)(2906002)(476003)(68736007)(71190400001)(8936002)(81166006)(81156014)(50226002)(2201001)(86362001)(76176011)(52116002)(71200400001)(36756003)(8676002)(66066001)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3929;H:DB3PR0402MB3916.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: BLl8ydw8fAK4s5KOBUbQOyrVI30R99Qf23aJNWehcAk7ebAuc6huC97m9/jYfRV+3a/aSEKhJeS+N+l3Xecb4/Lxt4ctXUrfBhAjRfLW5OJpGK2e5Zny5/Y6SQlYPsz0rVmNZmMbb+w7GYuC8jkUlbni2EzH98T6WYnmQvhKkl/0lJOTtNh8eOwncAin9N/DU6MDMKu3O+8HhrSyeWsV4wBTZdZEzF1rTl3UOISchsvKaBF+Y3BQXv78+HsNOp/u8tjZpFZkt9WYfLVxmsfXxWypVOHFQlr7SxJJv7U67PbbDMgWr0lMaoEUo3OKvlfyNG6pmrF91A5LVy0UCfclLm9ZXYluiTAKG5WeYDE4W2TWfWCNmhSza7diatpMw2rwTB4GJwY/kOGv83lIS7CPuAbmhlMxpuyk8NBE11CUC+A= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2813bdad-7377-4353-72a6-08d6bc951ee2 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2019 02:43:17.8423 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3929 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhlIFN5c3RlbSBDb250cm9sbGVyIEZpcm13YXJlIChTQ0ZXKSBjb250cm9scyBSVEMsIHRoZXJt YWwNCmFuZCBXRE9HIGV0Yy4sIHRoZXNlIHJlc291cmNlcycgaW50ZXJydXB0IGZ1bmN0aW9uIGFy ZSBtYW5hZ2VkDQpieSBTQ1UuIFdoZW4gYW55IElSUSBwZW5kaW5nLCBTQ1Ugd2lsbCBub3RpZnkg TGludXggdmlhIE1VIGdlbmVyYWwNCmludGVycnVwdCBjaGFubmVsICMzLCBhbmQgTGludXgga2Vy bmVsIG5lZWRzIHRvIGNhbGwgU0NVIEFQSXMNCnRvIGdldCBJUlEgc3RhdHVzIGFuZCBub3RpZnkg ZWFj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