Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3101647ybl; Fri, 20 Dec 2019 04:01:30 -0800 (PST) X-Google-Smtp-Source: APXvYqzMaMI41BILByaYtwetuAe1v22Zxkvq82SKQTfRCSdEcxEg4F2/O/VGnko+HqxSUUb0Ssww X-Received: by 2002:a9d:ec1:: with SMTP id 59mr13768487otj.141.1576843290523; Fri, 20 Dec 2019 04:01:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1576843290; cv=pass; d=google.com; s=arc-20160816; b=zR1rtA1Vean/3/Ex8WnGOUyo8oYwDdM0Oe8+agRrXKi/P2PRnxqAlAXrZtlvjgmrQ1 2ILMOKp20kVYXll3Pmm8K3/vGoWwRR0KFzL9U+Sl1KH2b24YGnL7E2i3zrfMy5nWyk7N JxjyzrciY5vYtCuyJuXfFQJC4UytC3GrqSeL8sxp/0G3dZLdSnyCE9KAagTfq24pCYu+ ARJpQyPyJwmr/YRTqvA1Kbd2KQwD7u+YNKcFQJZWbZDxnZV0LBE81QHCjiA4wS3H6k9w dGojgozLoyXLiBZQNIhLrfGZlRWelEg1ss4WIm6GyZlcvg0Ihsc8Mwzg0d2fySEBlZRu ae6Q== ARC-Message-Signature: i=2; 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=7WH1cdTLEOYoq7v8Q9yzc63QowWyXZMCHhT/B+D/fQA=; b=lE1wSkP0eu1ugUJkc4GHEUsGUQqGoTJuj/NSkNnKm8Ly6JStmxO93VbwyAFZTvf9TZ eE6DVvNMn/1IbXZo0XAzYi7GAbHoTmdFG7ZlrDhtXnPI+bbigJ/2KYaPgetJsJI35xUU caTaFPCe9LXHAVK6FJa5nvBZUCi9wLffNyHtw0FtWtcJc1sQ4BawmyAXomTU/8SqTUkO tZc7yVobetUcy4EALUy6TImMj4MMe6H9q9hKUlNtZ0AUswTWW60PkhMFhw+LsukQlUyd cSs+8x5zFKtbCPAM7DYw4AGK3xOWNykmW0LpNVo6qt5mCh/JwN5MTxCvQ/LZEvRngj9u Z7Og== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=JSaGACoS; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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; 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 z194si4772112oia.50.2019.12.20.04.01.18; Fri, 20 Dec 2019 04:01:30 -0800 (PST) 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=selector2 header.b=JSaGACoS; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727384AbfLTMAI (ORCPT + 99 others); Fri, 20 Dec 2019 07:00:08 -0500 Received: from mail-eopbgr140057.outbound.protection.outlook.com ([40.107.14.57]:44046 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727329AbfLTMAI (ORCPT ); Fri, 20 Dec 2019 07:00:08 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hOsTOGjHCSylpSceP7m3NJbRD8zkstfiCJMkSZ39zUDC8yh/iRJGLp3OHObtX8McGY/2dfT6HyJOuf0a7XkCadf7lCfXzERWZflW7FsI2EWLKyfxuCkR6fmJ02+PB9rqIWpmrVQsluUffhz0YmkBgw8Aia36O9Qd+FLymA7N7TPr//B2H3DaFGC1hPIbxmb500Lm6YSsZQEyuIofuYLlEk9i34GgLfw5Yw8T3AYMC+tZYpB2FFnfjFmAZgSYjiw6Hn5oYmeeAsLcyrE8mmXFFONKiyS6G6BINo9JlxxGhEsXtGKYmm9MXX/Xy0GH3KXNP/cADI6voe3a1Y1QViVsng== 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=7WH1cdTLEOYoq7v8Q9yzc63QowWyXZMCHhT/B+D/fQA=; b=KWcuD/GfFEW1lIi3OvZfN24xGoS2YegHi2cYXbRLmG14l0aKFOzWPRKHuyf7Ggl7n/iF8EdmUEkm5hHmqnfvtT82wtAJSj5/z9GI4Tdpl/DvwaoMbZepAwPqPW2fn3IqkQgaQWzdmpDd1s611gipXo4Nbf04L2Hib3uUhhfZQTlFo5+pBLQtm8i9eynbZKiIzwH8/A7x6LfrpSBgDs6Brwvkjf3OF7qJFiZF4ePV4GayRVgnicM/fAqWYrTRY7Azh7AaAUWfdcToZXFZzUEGlFgfEiiKxwuire/gLedoLxu2rKntZY7H7sj8NbndZAaeN5TXVSvBGvQteog9he09aw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7WH1cdTLEOYoq7v8Q9yzc63QowWyXZMCHhT/B+D/fQA=; b=JSaGACoSs6XzuWQnpGIeQDHZhwKuABP1Y2xHK1NkVCmKy0It5lPmlXhS7Z9eD6qIrfMueY/OD007QoNQ8uptPdYPP+fFE6VIu+JY5A6jMI+WW+CcYhG6JPjGuExTHiuzArqQLWaaXROqQn8eJ2l1ldQrVjKHpGu0yXUlJM1pp20= Received: from DB7PR04MB4618.eurprd04.prod.outlook.com (52.135.139.151) by DB7PR04MB5035.eurprd04.prod.outlook.com (20.176.234.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.18; Fri, 20 Dec 2019 11:59:56 +0000 Received: from DB7PR04MB4618.eurprd04.prod.outlook.com ([fe80::b40b:46af:9458:f2df]) by DB7PR04MB4618.eurprd04.prod.outlook.com ([fe80::b40b:46af:9458:f2df%6]) with mapi id 15.20.2559.016; Fri, 20 Dec 2019 11:59:56 +0000 From: Joakim Zhang To: Marc Zyngier CC: "tglx@linutronix.de" , "jason@lakedaemon.net" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , dl-linux-imx , "linux-kernel@vger.kernel.org" , Andy Duan , "linux-arm-kernel@lists.infradead.org" , "S.j. Wang" Subject: RE: [PATCH V3 2/2] drivers/irqchip: add NXP INTMUX interrupt multiplexer support Thread-Topic: [PATCH V3 2/2] drivers/irqchip: add NXP INTMUX interrupt multiplexer support Thread-Index: AQHVtyMd7Qgy3ZfPqUmrp0UjWlp/N6fC6q0A Date: Fri, 20 Dec 2019 11:59:55 +0000 Message-ID: References: <1576827431-31942-1-git-send-email-qiangqing.zhang@nxp.com> <1576827431-31942-3-git-send-email-qiangqing.zhang@nxp.com> <2a2b06ab6d5b3fab51e46cd7dec3f12d@www.loen.fr> In-Reply-To: <2a2b06ab6d5b3fab51e46cd7dec3f12d@www.loen.fr> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=qiangqing.zhang@nxp.com; x-originating-ip: [119.31.174.71] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: ee3b713c-2265-4c62-c555-08d785442180 x-ms-traffictypediagnostic: DB7PR04MB5035:|DB7PR04MB5035: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:167; x-forefront-prvs: 025796F161 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(376002)(346002)(136003)(366004)(39860400002)(396003)(13464003)(199004)(189003)(71200400001)(55016002)(4326008)(478600001)(5660300002)(54906003)(9686003)(33656002)(316002)(26005)(4001150100001)(53546011)(6506007)(8676002)(2906002)(66556008)(66476007)(66946007)(64756008)(66446008)(76116006)(52536014)(6916009)(186003)(8936002)(86362001)(7416002)(81156014)(7696005)(30864003)(81166006);DIR:OUT;SFP:1101;SCL:1;SRVR:DB7PR04MB5035;H:DB7PR04MB4618.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: BCL:0; x-microsoft-antispam-message-info: tewucvVHtGnZujrbsuwT719XG0mZRdgHoo89RbHOsWrYW4NeFBh2PkCCpNfwrWS7jhDTo1tPWxb6glgi5MgwXUkyXVUoHmvEpdTvOQ5v2HiZGn9JZkkobMLOchPipJZ6htYxHhUIh9+NwSw3+okyFfGB1p5H2sFeAGS+mQqG84/G+LdetRsNulI50jL8gXWDP3NPVkmKZc7wG3TfNZu81XYwdoUOmZB17Yq+GY15e1HxSl4UA+FOu5MlHPqqx4nqPxUVKOuDpzZ42pmgiejPcsZHQX4DsJ+h1tTk5LTWDt8h8kihBDmFFcuto1l6DPryEc2/MpB3zycC2umCERskwErMJy+DcHRv9xeRtIjzN5XaepxXk5AyGDHyA/w7WzvSV3cnerDv5mNSqFonb4xGhSVKzjM5NjlxL6b7Hst2mSIO2sDA1wsBoZdECNzaDcScLElmjjv6SnkiK6qteAlyRqJBx1miUJgnWuV1dctGBc0hVpc13Nr94XkOxCbdZOUs 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: ee3b713c-2265-4c62-c555-08d785442180 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2019 11:59:55.9363 (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-CrossTenant-userprincipalname: qq4KGAZmdRjQ3FDwgqfG5t8kiFjzmQQKPb7/73GApQNWJHNC013aU39h84ESxS1VKwk0K27S5/OgZ1LDizmTzw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5035 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IE1hcmMgWnluZ2llciA8bWF6 QGtlcm5lbC5vcmc+DQo+IFNlbnQ6IDIwMTnlubQxMuaciDIw5pelIDE4OjQ5DQo+IFRvOiBKb2Fr aW0gWmhhbmcgPHFpYW5ncWluZy56aGFuZ0BueHAuY29tPg0KPiBDYzogdGdseEBsaW51dHJvbml4 LmRlOyBqYXNvbkBsYWtlZGFlbW9uLm5ldDsgcm9iaCtkdEBrZXJuZWwub3JnOw0KPiBtYXJrLnJ1 dGxhbmRAYXJtLmNvbTsgc2hhd25ndW9Aa2VybmVsLm9yZzsgcy5oYXVlckBwZW5ndXRyb25peC5k ZTsNCj4ga2VybmVsQHBlbmd1dHJvbml4LmRlOyBkbC1saW51eC1p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AxMDA2NDQNCj4gPiBpbmRleCAwMDAwMDAwMDAwMDAuLjk0YzY3ZmRkNzE2Mw0KPiA+IC0tLSAv ZGV2L251bGwNCj4gPiArKysgYi9kcml2ZXJzL2lycWNoaXAvaXJxLWlteC1pbnRtdXguYw0KPiA+ IEBAIC0wLDAgKzEsMzExIEBADQo+ID4gKy8vIFNQRFgtTGljZW5zZS1JZGVudGlmaWVyOiBHUEwt Mi4wDQo+ID4gKy8vIENvcHlyaWdodCAyMDE3IE5YUA0KPiA+ICsNCj4gPiArLyogICAgICAgICAg ICAgICAgICAgICBJTlRNVVggQmxvY2sgRGlhZ3JhbQ0KPiA+ICsgKg0KPiA+ICsgKiAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICBfX19fX19fX19fX19fX19fDQo+ID4gKyAqIGludGVycnVw dCBzb3VyY2UgIyAgMCAgKy0tLS0+fCAgICAgICAgICAgICAgICB8DQo+ID4gKyAqICAgICAgICAg ICAgICAgICAgICAgICAgfCAgICAgfCAgICAgICAgICAgICAgICB8DQo+ID4gKyAqIGludGVycnVw dCBzb3VyY2UgIyAgMSAgKysrLS0+fCAgICAgICAgICAgICAgICB8DQo+ID4gKyAqICAgICAgICAg ICAgLi4uICAgICAgICAgfCB8ICAgfCAgIGNoYW5uZWwgIyAwDQo+ID4gfC0tLS0tLS0tLT5pbnRl cnJ1cHQgb3V0ICMgMA0KPiA+ICsgKiAgICAgICAgICAgIC4uLiAgICAgICAgIHwgfCAgIHwgICAg ICAgICAgICAgICAgfA0KPiA+ICsgKiAgICAgICAgICAgIC4uLiAgICAgICAgIHwgfCAgIHwgICAg ICAgICAgICAgICAgfA0KPiA+ICsgKiBpbnRlcnJ1cHQgc291cmNlICMgWC0xICsrKy0tPnxfX19f X19fX19fX19fX19ffA0KPiA+ICsgKiAgICAgICAgICAgICAgICAgICAgICAgIHwgfCB8DQo+ID4g KyAqICAgICAgICAgICAgICAgICAgICAgICAgfCB8IHwNCj4gPiArICogICAgICAgICAgICAgICAg ICAgICAgICB8IHwgfCAgX19fX19fX19fX19fX19fXw0KPiA+ICsgKiAgICAgICAgICAgICAgICAg ICAgICAgICstLS0tPnwgICAgICAgICAgICAgICAgfA0KPiA+ICsgKiAgICAgICAgICAgICAgICAg ICAgICAgIHwgfCB8IHwgICAgICAgICAgICAgICAgfA0KPiA+ICsgKiAgICAgICAgICAgICAgICAg ICAgICAgIHwgKy0tPnwgICAgICAgICAgICAgICAgfA0KPiA+ICsgKiAgICAgICAgICAgICAgICAg ICAgICAgIHwgfCB8IHwgICBjaGFubmVsICMgMQ0KPiA+IHwtLS0tLS0tLS0+aW50ZXJydXB0IG91 dCAjIDENCj4gPiArICogICAgICAgICAgICAgICAgICAgICAgICB8IHwgKz58ICAgICAgICAgICAg ICAgIHwNCj4gPiArICogICAgICAgICAgICAgICAgICAgICAgICB8IHwgfCB8ICAgICAgICAgICAg ICAgIHwNCj4gPiArICogICAgICAgICAgICAgICAgICAgICAgICB8IHwgfCB8X19fX19fX19fX19f X19fX3wNCj4gPiArICogICAgICAgICAgICAgICAgICAgICAgICB8IHwgfA0KPiA+ICsgKiAgICAg ICAgICAgICAgICAgICAgICAgIHwgfCB8DQo+ID4gKyAqICAgICAgICAgICAgICAgICAgICAgICAg fCB8IHwgICAgICAgLi4uDQo+ID4gKyAqICAgICAgICAgICAgICAgICAgICAgICAgfCB8IHwgICAg ICAgLi4uDQo+ID4gKyAqICAgICAgICAgICAgICAgICAgICAgICAgfCB8IHwNCj4gPiArICogICAg ICAgICAgICAgICAgICAgICAgICB8IHwgfCAgX19fX19fX19fX19fX19fXw0KPiA+ICsgKiAgICAg ICAgICAgICAgICAgICAgICAgICstLS0tPnwgICAgICAgICAgICAgICAgfA0KPiA+ICsgKiAgICAg ICAgICAgICAgICAgICAgICAgICAgfCB8IHwgICAgICAgICAgICAgICAgfA0KPiA+ICsgKiAgICAg ICAgICAgICAgICAgICAgICAgICAgKy0tPnwgICAgICAgICAgICAgICAgfA0KPiA+ICsgKiAgICAg ICAgICAgICAgICAgICAgICAgICAgICB8IHwgICBjaGFubmVsICMgTg0KPiA+IHwtLS0tLS0tLS0+ aW50ZXJydXB0IG91dCAjIE4NCj4gPiArICogICAgICAgICAgICAgICAgICAgICAgICAgICAgKz58 ICAgICAgICAgICAgICAgIHwNCj4gPiArICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8 ICAgICAgICAgICAgICAgIHwNCj4gPiArICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8 X19fX19fX19fX19fX19fX3wNCj4gPiArICoNCj4gPiArICoNCj4gPiArICogTjogSW50ZXJydXB0 IENoYW5uZWwgSW5zdGFuY2UgTnVtYmVyIChOPTcpDQo+ID4gKyAqIFg6IEludGVycnVwdCBTb3Vy Y2UgTnVtYmVyIGZvciBlYWNoIGNoYW5uZWwgKFg9MzIpDQo+ID4gKyAqDQo+ID4gKyAqIFRoZSBJ TlRNVVggaW50ZXJydXB0IG11bHRpcGxleGVyIGhhcyA4IGNoYW5uZWxzLCBlYWNoIGNoYW5uZWwN Cj4gPiByZWNlaXZlcyAzMg0KPiA+ICsgKiBpbnRlcnJ1cHQgc291cmNlcyBhbmQgZ2VuZXJhdGVz IDEgaW50ZXJydXB0IG91dHB1dC4NCj4gPiArICoNCj4gPiArICovDQo+ID4gKw0KPiA+ICsjaW5j bHVkZSA8bGludXgvY2xrLmg+DQo+ID4gKyNpbmNsdWRlIDxsaW51eC9pbnRlcnJ1cHQuaD4NCj4g PiArI2luY2x1ZGUgPGxpbnV4L2lycS5oPg0KPiA+ICsjaW5jbHVkZSA8bGludXgvaXJxY2hpcC9j aGFpbmVkX2lycS5oPiAjaW5jbHVkZSA8bGludXgvaXJxZG9tYWluLmg+DQo+ID4gKyNpbmNsdWRl IDxsaW51eC9rZXJuZWwuaD4gI2luY2x1ZGUgPGxpbnV4L29mX2lycS5oPiAjaW5jbHVkZQ0KPiA+ ICs8bGludXgvb2ZfcGxhdGZvcm0uaD4gI2luY2x1ZGUgPGxpbnV4L3Nw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