Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3512958yba; Mon, 8 Apr 2019 22:01:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTQj+Om73cOaNuvKvdu0P/uOb/G1Wu0Ow1tWWqb88D8jMyJ5xsU3cNArTahnAX89nctf2W X-Received: by 2002:a17:902:e393:: with SMTP id ch19mr33348968plb.117.1554786062916; Mon, 08 Apr 2019 22:01:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554786062; cv=none; d=google.com; s=arc-20160816; b=oyEjm/R+t5Ia8P04MJFm/8hJzAb+ljABRx8TZMsQklvrDtcI3rFJ1VE/oHpS6sLZkN APulCEO9ctX45Q9+tz0HxvgZTGUhris/ZzCMnq0/DtxynvlQ7FNCfzgEz6QDi1/SXLtC DthtyJcG/RiRLRFFNA6kgW5vszY3iHLwhPFc+RRAoGKaQ4UjAaZXwz9kZA1/AVjUOwi4 xmcFiIspiqOAigr1RxnpUyb2Dz6/L53LHHC5aMaj0JG+hqQ7xy2Q+g+iQYtCuw8HsEa4 XLLyGBSr+cEVIZO+flvmyAoMD9q/XhWyreEkTSieMzV+mjfrn5V1y6uTy7IZNpU89U38 Jl9g== 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=zsg0awdVlpMLLxQu5Ur2n1WhgMHiRdHlZlDbwGYGY8E=; b=HqAyGMS0SsH680jvFjxkgESQhbb6D5c0Qg/h1325UoclzUuZgzjFVIaogrmAsVHcIn P8WOPOW0b8RnOxCp5ymmo7RYFbZhPssAd5O0I1uoy4pzlCrt5F/YJPfrXpFTW2qSW3Q7 nhsnioPJ9xSUKSOGt9K6T8fiKONEPErDamtKySQuNNtb2e6VF4dtIVyfHwm6Edb1eaWf dtZhH4Hha77UIC/6qjPpkg/OGHE/heyWpV4POL3cFrhqkbYIPnT4dKoqKzKT15H1Y15a 3NhNub9A7g4umE/rrbCD0pqfxzumgTAEwT6XVLH6yCO8y1AxVcyoDUQDaHUnUYvcPfqS qRcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=gMombqhx; 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 n7si28281215pff.190.2019.04.08.22.00.47; Mon, 08 Apr 2019 22:01:02 -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=gMombqhx; 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 S1726973AbfDIFAC (ORCPT + 99 others); Tue, 9 Apr 2019 01:00:02 -0400 Received: from mail-eopbgr10083.outbound.protection.outlook.com ([40.107.1.83]:36994 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725550AbfDIFAB (ORCPT ); Tue, 9 Apr 2019 01:00:01 -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=zsg0awdVlpMLLxQu5Ur2n1WhgMHiRdHlZlDbwGYGY8E=; b=gMombqhxYWhF2fx+z6c31K1HwRZKZ0xlHyobFHEfAzRAMYhPv6jgmwLzJQg1vHjiVB+3GOOxD5HZ4P25Bmi8u4vRW6+d38hqq8DnVP8v5DWN8PHzfPyzjaKjNUwK3F4PVgRCWWtJnOn+JantJB1yGxKLh5oHqMRVmu6CEGDlhGI= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3865.eurprd04.prod.outlook.com (52.134.73.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.14; Tue, 9 Apr 2019 04:59:55 +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 04:59:55 +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 V7 2/4] firmware: imx: enable imx scu general irq function Thread-Topic: [PATCH V7 2/4] firmware: imx: enable imx scu general irq function Thread-Index: AQHU7pESFiPArqSQREy0TQYaxheiuw== Date: Tue, 9 Apr 2019 04:59:55 +0000 Message-ID: <1554785675-8090-2-git-send-email-Anson.Huang@nxp.com> References: <1554785675-8090-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1554785675-8090-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: HK0PR01CA0032.apcprd01.prod.exchangelabs.com (2603:1096:203:3e::20) 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: 5769adb9-54af-41c7-cfb6-08d6bca8352b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:DB3PR0402MB3865; x-ms-traffictypediagnostic: DB3PR0402MB3865: x-microsoft-antispam-prvs: x-forefront-prvs: 000227DA0C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(366004)(39860400002)(136003)(346002)(396003)(199004)(189003)(2906002)(52116002)(36756003)(68736007)(186003)(6436002)(26005)(110136005)(86362001)(6506007)(386003)(2201001)(8936002)(478600001)(25786009)(76176011)(102836004)(7736002)(316002)(4326008)(305945005)(66066001)(2501003)(97736004)(105586002)(7416002)(99286004)(50226002)(6486002)(8676002)(81156014)(81166006)(6116002)(106356001)(3846002)(71190400001)(71200400001)(5660300002)(14454004)(446003)(11346002)(486006)(6512007)(14444005)(2616005)(256004)(53936002)(476003)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3865;H:DB3PR0402MB3916.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: 88NLl7TNxvOg69SfGq73CjSQD/kczuKjLA1vidwLUJt4DL4waO1FN0WRJXVUYknzgY0yPo3C1h/9LkjTdRfROs9OQkXygRFmyE1pissudvpchOR0a4tjoL8wIu4gZF7Uy0dMv7ozu6XwLWgTGtA1KsYCS4YaL31Va5EGkGjJVipJHP5Y2+pioTAb49kHFRDuBhNfW77C2iloXdT9PHt5UoB2enapCk1P5MVlshkLCVIydXGfkr3ruKezyTV+9c1Sa5NBIrTMkjXluUEsA9mSNyg04m2sJfQmuWh7Ln/kHOjwdduFqznaz7c/PebkMvUsESlDUQdcS4Ka5ZcTilFoXxdMfLxodq5a548HZTENGlvLX0uOsMWExM3md5b7vi4DqxO96qumLVUphnMr2u7cSPtOfZf5LtkESfx797mlCO4= 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: 5769adb9-54af-41c7-cfb6-08d6bca8352b X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2019 04:59:55.5867 (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: DB3PR0402MB3865 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhlIFN5c3RlbSBDb250cm9sbGVyIEZpcm13YXJlIChTQ0ZXKSBjb250cm9scyBSVEMsIHRoZXJt YWwNCmFuZCBXRE9HIGV0Yy4sIHRoZXNlIHJlc291cmNlcycgaW50ZXJydXB0IGZ1bmN0aW9uIGFy ZSBtYW5hZ2VkDQpieSBTQ1UuIFdoZW4gYW55IElSUSBwZW5kaW5nLCBTQ1Ugd2lsbCBub3RpZnkg TGludXggdmlhIE1VIGdlbmVyYWwNCmludGVycnVwdCBjaGFubmVsICMzLCBhbmQgTGludXgga2Vy bmVsIG5lZWRzIHRvIGNhbGwgU0NVIEFQSXMNCnRvIGdldCBJUlEgc3RhdHVzIGFuZCBub3RpZnkg ZWFja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