Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4803322ybv; Mon, 17 Feb 2020 06:17:42 -0800 (PST) X-Google-Smtp-Source: APXvYqzhGDoZRHvRq9h1/r1ixu4lhoqEa7Yl2HcWKpCAlx/vSyNMCWSzb/ZhSMhXIw3aqWyY4H1x X-Received: by 2002:a9d:1284:: with SMTP id g4mr11455498otg.47.1581949061950; Mon, 17 Feb 2020 06:17:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581949061; cv=none; d=google.com; s=arc-20160816; b=zMFwmw34HRTLX3kh5bYdHJ3G52JBpD6wKGikIF6RVVeKgb6hK8rvyDdLji1NNvsa1u 4QrvBvZWpeqJ+11GyQJ+1btgz0BcjddUOY11K7eqobHy5JWwXFXYnhIlFrMaatAxlb46 nu/rD586eDLEtucBlNXdksJOFnCeF4IomdyUr4MBSrOBtPmU50js7XZykVCGkdfIWktA KIKV1xrCV8SAxxIR6Ao/ZBo1m3mvRlTQmQPWtefP3pvgOrVV7NSvYDzUPOZ/6ZGnfq5Z VW0r0Xhnu3J0lCxZIlWkcL2ReMzA6npzjWeoEUYSd/u/zbkMPGbRzqRW6vf5k+fvpxgU 49gw== 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-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from; bh=ABiOEYqWg57Zg8SCSrtobis9RkHwICj6+Fvg29wIuBE=; b=z6TSvVWJXI35qLyMPWV3XVh9ZPyqEobaphg4WKWayzJ5V3COnEi4Tz0TxmZSdFvmB6 P5UUSe8pgf3vhkS4IwPOjJ2gHMPIahad2YHxD+gmAx2GIJxEQs02vAtma3wsSqtI/uXt 2z12dSWHIjrG5BBHiG698+M7m/iYypKN2ZxvJOJJoOhylTvVm1/ndS39TKYNyAe8vHTr 8DPQO1ohtBnou0ZCG3X09ZQOQWINT9aXOQyGMmf26koXFO/RU3x+CG4Aib8GnInOb+zG xaJfWkMb92cyHS8C3T1Xk/LcLSq/ja9DeEbQIzPLXCk3Q5S83+W3cousF8JGC3J3xJHj 24+Q== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15si234500otm.263.2020.02.17.06.17.29; Mon, 17 Feb 2020 06:17:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728524AbgBQOIF (ORCPT + 99 others); Mon, 17 Feb 2020 09:08:05 -0500 Received: from skedge04.snt-world.com ([91.208.41.69]:47656 "EHLO skedge04.snt-world.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728149AbgBQOIE (ORCPT ); Mon, 17 Feb 2020 09:08:04 -0500 Received: from sntmail12r.snt-is.com (unknown [10.203.32.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by skedge04.snt-world.com (Postfix) with ESMTPS id 6FDDF67A6E7; Mon, 17 Feb 2020 15:08:02 +0100 (CET) Received: from sntmail12r.snt-is.com (10.203.32.182) by sntmail12r.snt-is.com (10.203.32.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Mon, 17 Feb 2020 15:08:01 +0100 Received: from sntmail12r.snt-is.com ([fe80::e551:8750:7bba:3305]) by sntmail12r.snt-is.com ([fe80::e551:8750:7bba:3305%3]) with mapi id 15.01.1913.005; Mon, 17 Feb 2020 15:08:01 +0100 From: Schrempf Frieder To: "u.kleine-koenig@pengutronix.de" , "gregkh@linuxfoundation.org" , "stable@vger.kernel.org" CC: "shawnguo@kernel.org" , Schrempf Frieder , "linux-kernel@vger.kernel.org" , "linux-serial@vger.kernel.org" Subject: [PATCH 2/2] serial: imx: Only handle irqs that are actually enabled Thread-Topic: [PATCH 2/2] serial: imx: Only handle irqs that are actually enabled Thread-Index: AQHV5ZuqGzZ2GGx8A0ekS0WJ9nmp0w== Date: Mon, 17 Feb 2020 14:08:01 +0000 Message-ID: <20200217140740.29743-3-frieder.schrempf@kontron.de> References: <20200217140740.29743-1-frieder.schrempf@kontron.de> In-Reply-To: <20200217140740.29743-1-frieder.schrempf@kontron.de> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.17.1 x-originating-ip: [172.25.9.193] x-c2processedorg: 51b406b7-48a2-4d03-b652-521f56ac89f3 Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-SnT-MailScanner-Information: Please contact the ISP for more information X-SnT-MailScanner-ID: 6FDDF67A6E7.A1B86 X-SnT-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-SnT-MailScanner-SpamCheck: X-SnT-MailScanner-From: frieder.schrempf@kontron.de X-SnT-MailScanner-To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, shawnguo@kernel.org, stable@vger.kernel.org, u.kleine-koenig@pengutronix.de X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogVXdlIEtsZWluZS1Lw7ZuaWcgPHUua2xlaW5lLWtvZW5pZ0BwZW5ndXRyb25peC5kZT4N Cg0KY29tbWl0IDQzNzc2ODk2MmY3NTRkOTUwMWU1YmE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