Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp555493ybp; Wed, 9 Oct 2019 00:01:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIRP5xw6UsTfIJ8p9fPbLL6Ol9qzCFkgiTgFCko0OVP6V+Lf0ZMzpnPIV4AacqVrNHRmwI X-Received: by 2002:a17:906:e113:: with SMTP id gj19mr1374813ejb.203.1570604497315; Wed, 09 Oct 2019 00:01:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1570604497; cv=pass; d=google.com; s=arc-20160816; b=mq855OYIUHDFVOPBwBmEfSvEfHR4Q03f7ti4sIRkS+EHJA1bm8HvG9hXumE9JKoq9x /H1LSaXYvOwizHj6E8vI65QdnfIluODaKIUEgyMEL/BssiB0vzu3pmvZUZUpZJOUS2xy VO1uNTVEoKLGiHrsCEWOW/N3XPsgt5cXOMPZJ4gk6J+EklWSEEBDjrgjx5lbi3xNnDJh pOnjx6EHGTmlTqi1L3loiDLT+AmdOpVtL2hDMvnMSQfrCYbvUrAQI6Y71VpWENQP3xc2 EIWWm8a5m4g1yIzxHK/WOzAdo+jPmyrERVB6/rESG3SKxPbJRcZYfbgb8Lr3tZ4Z9Bf2 wg/A== 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=7XyknKhTwJnDdinRy8p9HJUi3Lp4jXFIt0IQhfRQTvo=; b=XUUsnjvHRMayFmlu1U69WnhuHLfBjz0uxcjrorVRbNg8mj3WeYb9+N9hfulsvKlBNe 3HHrlgkAW7dv/FZAT2vcegTmdhu+LPhcQ6lHSe4k1jEuqqeeUcmD5eBd9xMJTbkkMJTm qBXplMPvwyeacYR5qkPiyUPAxJxgDcLt8kfU8WGoUWf5vtXLLJmlwD6Q7yIOV6QcM6KQ u96xClDol15X8jiJMohNyNGXOf2sZ8o31uhtltTTc/Nq/ER/PSeJbDNe32RX3GozQEOA fcaI7UW2ZQEyBOkGVQEF57Kn9ROB8Dg9gNTrIRX51DSyHkGTe7LL9w++bVuLPd/rm82v sKwg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=CR1kULCQ; 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 w58si825369edc.312.2019.10.09.00.01.13; Wed, 09 Oct 2019 00:01:37 -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=selector2 header.b=CR1kULCQ; 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 S1727769AbfJIG63 (ORCPT + 99 others); Wed, 9 Oct 2019 02:58:29 -0400 Received: from mail-eopbgr130085.outbound.protection.outlook.com ([40.107.13.85]:49078 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725879AbfJIG63 (ORCPT ); Wed, 9 Oct 2019 02:58:29 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XQJpYpem8g8XIKNBHTw+5k7ZMdrWUBcU+zrN/Bf7ccxqGdW+PanCeiZxc0lZX9gqYhhzEYevOJCPIqSPXg2mPCIfFWfgjmnRWrzZjO7Tr+P885W3LP4x3Arg+qyM76GdVpXHjdDMtCgcjgl1Vy9/q+lT/vvJ1cjhx4jQtSK6VvQ72AiIN46nP+1f+cHjQPP84bV+vxVetsSEBHJw4s1WpLGrJGhnYJInzW5+MV0r3s+fWA6RdsaBQCYsH+8FargrB5JOtllYnjhFu0tlFtp4haz/SQes0qz3syq2CXlqxZtowmz6WuErTHK3LMMiPPWqE2GdY3Uh0KeKWfTWLs1bKw== 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=7XyknKhTwJnDdinRy8p9HJUi3Lp4jXFIt0IQhfRQTvo=; b=isXde4ZsF52wSfIoZzgwVAhsicNQt+Kvd0jkPv8LpsGXc21ydMMe3Y8eiKxBknITGETijTJjd+NnCTi+MJHwFg7VeOEleVq5n8mL+PKhBunfgCNnmT8Q6N3CrH+THpyNwUVM/LxfreXDc1Md6EOgtH+JjObFW7MHcpQvUhGMMxCJS35udBHFrvlPSP5cz4N3HMQ9V2uyQ+KAZ/Btyn4ANOowBDrVLbkRqvv1B+aQ6N5K5nGwGOa8tH1SCemgLdnJr3vC9w49YxEY/I5USjLv3ugVsZ4t0t1Ca7KiW4qtTuNPTtXBLX6WJZKKPRnNQQLD5EoVWvLih+4teOAj8ufO8w== 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=7XyknKhTwJnDdinRy8p9HJUi3Lp4jXFIt0IQhfRQTvo=; b=CR1kULCQ03dGM2lAZj5RawqcO+zFgPKQenqNb7saYsZq3G9Vy5TD9E+vQcU6jtqpFFCJzX+/ormgxNdoIEFo6PuMVVPqk46WlVSUK7/2mPWa3WNH9o6H5RYQoApGJ+Pa6qJS6xdCBkVsmyiWT8F66+QonlAS9x17phP7yA0I+gQ= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3948.eurprd04.prod.outlook.com (52.134.70.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2305.15; Wed, 9 Oct 2019 06:58:24 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::d469:ad51:2bec:19f0]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::d469:ad51:2bec:19f0%6]) with mapi id 15.20.2347.016; Wed, 9 Oct 2019 06:58:24 +0000 From: Anson Huang To: =?utf-8?B?VXdlIEtsZWluZS1Lw7ZuaWc=?= , Stephen Boyd , Greg Kroah-Hartman CC: "jslaby@suse.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "linux-serial@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx , "Rafael J. Wysocki" , Andy Shevchenko Subject: RE: [PATCH] tty: serial: imx: Only get second/third IRQ when there is more than one IRQ Thread-Topic: [PATCH] tty: serial: imx: Only get second/third IRQ when there is more than one IRQ Thread-Index: AQHVfmm1cibywjMA5UifVvn4HL9DWadR35+AgAAA6hA= Date: Wed, 9 Oct 2019 06:58:24 +0000 Message-ID: References: <1570601911-9162-1-git-send-email-Anson.Huang@nxp.com> <20191009065315.wgdvmkv6skteyul4@pengutronix.de> In-Reply-To: <20191009065315.wgdvmkv6skteyul4@pengutronix.de> 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=anson.huang@nxp.com; x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 35c2c9b8-0abd-4f4a-b042-08d74c86145d x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: DB3PR0402MB3948:|DB3PR0402MB3948: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 018577E36E x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(396003)(39860400002)(376002)(136003)(346002)(366004)(189003)(199004)(55016002)(33656002)(446003)(8936002)(74316002)(66476007)(66946007)(6246003)(6116002)(52536014)(9686003)(11346002)(4326008)(256004)(7416002)(25786009)(305945005)(5660300002)(476003)(99286004)(66556008)(486006)(3846002)(76116006)(64756008)(44832011)(66446008)(26005)(102836004)(6506007)(86362001)(66066001)(81166006)(186003)(76176011)(478600001)(81156014)(2906002)(7736002)(316002)(54906003)(110136005)(8676002)(71190400001)(71200400001)(229853002)(14454004)(7696005)(6436002);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3948;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: BCL:0; x-microsoft-antispam-message-info: OEX+ujd31QMQNoG8UrgX01OK2mRC0WpJtsI5gxY2S0uxSwwWImE5nNKA5ON393xEwJyVKmhDY/b2KO8VCrH3Z8jGD+kGqdRexACw5P0KEp1oCI/xjccXRLL249vTYiKaarEaqq+3n2VAeQic4/S2jAH/Wj59f3o6AKe5/aDIxe5Q0dE13KeknRqwX9//xrHjsMN4Hw/YSul5g8fPKqYAnqzlBf2bbVmcs3qNttRudKSQdGzSKQMLrs1j2ccjqo5tYL1jdfYte5gchgOlRPmzjMcyri/Fa/egEzUjFI6/OE6x7V3YyarXVKy/+IH3fTsE2gedsDkH/1v5/82yP3sR8h6qUxia9ajTGosxo08cFKsWhP1Oo4HZYfU2U1etFPypQls994bitwXeWKesgiknmgsnCuU+/8omjMNyYI0IFU8= 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: 35c2c9b8-0abd-4f4a-b042-08d74c86145d X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Oct 2019 06:58:24.6098 (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: wmonbYR1dkHCXNz5KZXnVDgo6Wx9KMQdMI4d2GmiutR9SlZLxkVIVqEsook0DLk2jCXQy9lsVOcUssSAh6P7LA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3948 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksIFV3ZQ0KDQo+IE9uIFdlZCwgT2N0IDA5LCAyMDE5IGF0IDAyOjE4OjMxUE0gKzA4MDAsIEFu c29uIEh1YW5nIHdyb3RlOg0KPiA+IEFsbCBpLk1YIFNvQ3MgZXhjZXB0IGkuTVgxIGhhdmUgT05M WSAxIElSUSwgc28gaXQgaXMgYmV0dGVyIHRvIGNoZWNrDQo+ID4gdGhlIElSUSBjb3VudCBiZWZv cmUgZ2V0dGluZyBzZWNvbmQvdGhpcmQgSVJRIHRvIGF2b2lkIGJlbG93IGVycm9yDQo+ID4gbWVz c2FnZSBkdXJpbmcgcHJvYmU6DQo+ID4NCj4gPiBbICAgIDAuNzI2MjE5XSBpbXgtdWFydCAzMDg2 MDAwMC5zZXJpYWw6IElSUSBp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