Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp328379ybg; Tue, 9 Jun 2020 01:25:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQGR9JmryVRIasMpvxlB4HjDw2FvkWP0vWmFkpcDRm7ApX7jpD7IH+rO+pfZ2wKKyjHHf7 X-Received: by 2002:a17:906:4d18:: with SMTP id r24mr23581237eju.222.1591691146274; Tue, 09 Jun 2020 01:25:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591691146; cv=pass; d=google.com; s=arc-20160816; b=nWv5BiqNd0XSjuvIXGNpFan7QUC1Mos5VVcIbiRuzBHTg6MO0SV9vezEQaRRhsUrQ2 eov6S7aLIV0YQCYIKUQZJoutOQJoiAmqTtgKicb2ZjyGHH3fgY5Z3mKHDU5iWT9eBic/ aCh0jfczHVKHWyaGTxL251YZBQJ1OFX7tdvEM+JGgAh3EHONgKfYlR2lorQ2Q/ErDQnL +Sv01VromxpPq/mKmkHcpzNVErMa/qzbQkJNXX+Gubc2kaJPEN+/enfcb8jFsh/vZhfx cIncu5nh3i/AmnmRCGhFXuFvPANIiAzRhCULpBuhFuH35Y8wAzJhqZ22qsitOlVi3vkg kkwQ== 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-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=aw1+QD+dZcHJ5X7zGaZ2DOPe9+1Gz7NZ6CY0sb02xk8=; b=OcelSYwO6oFkrpk1fnh/Ad/foB0Ciecsr+VeO2nyn2avoRUPuJa0HergJO9qKD1FI9 p9ukpXwUNLpIP06dzFE6GsQ+S2MppRYLxkLZO4Rzplhf0Dr6Z/Fk8Ze3KUmMbv1hL8aq NgWaQq5kQIH2eYt6ROqK1NPdaSblPJqfH2a3OlMdWV+h8MJqAXYZp0H9YCFvyy0NQoV7 HFjqIIR030gSJYWtpDDvpMDWAtZ5t9jn121WEj1bbXdbf58J1b97Dz5njXg9+mQNb6xJ ya/PD98O/bDi71ZyUU2KtrRUR9aKdSIUVRQaEoZ2d+DuAb3EqPx7GZ2F7NyyFVRzMXcL XGKQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mysnt.onmicrosoft.com header.s=selector2-mysnt-onmicrosoft-com header.b="d/0KV0va"; arc=pass (i=1 spf=pass spfdomain=kontron.de dkim=pass dkdomain=kontron.de dmarc=pass fromdomain=kontron.de); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k14si10192985ejz.68.2020.06.09.01.25.22; Tue, 09 Jun 2020 01:25:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mysnt.onmicrosoft.com header.s=selector2-mysnt-onmicrosoft-com header.b="d/0KV0va"; arc=pass (i=1 spf=pass spfdomain=kontron.de dkim=pass dkdomain=kontron.de dmarc=pass fromdomain=kontron.de); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728089AbgFIIXi (ORCPT + 99 others); Tue, 9 Jun 2020 04:23:38 -0400 Received: from mail-eopbgr30124.outbound.protection.outlook.com ([40.107.3.124]:63103 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728034AbgFIIXg (ORCPT ); Tue, 9 Jun 2020 04:23:36 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Zmeq9y42FxfXrLgacnjU/YT9hzT0wraee6Pq0uDCAfUwn1Lvn9AZTNJm3usZ2bR7Et+BCFGX5SL9g0jly/ytI1O3dJ1+6y2o8YA7b+L2BXW80qufWzBh90DZeaWCFGnFkYItCLjNtW9Zzhk+uL1knBjM8LGaREtGuRcBw0uDTZa3lRsnEnEAN8tcVOwrJtqSAh/jMIXqGHqnfzTYXgUFed7V4hrT3CyP//uT5kmTFvDdfcPLPBush46BE90x25fboszp6iW358e1Pihn9tYcSGjoahJsF8HO3yBSEcuV0og/iFtao+kauDqfZsBDeqMT4IdliC+QKQ+/45idAnwT9A== 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=aw1+QD+dZcHJ5X7zGaZ2DOPe9+1Gz7NZ6CY0sb02xk8=; b=bU6e+70+S7eTEi1JrcyYmP6hQwOb/IVNJjdoVxdNvKZ8JZNAZnbX7R/ihANcjaL8EyCHSRrmlgm33NQ10V2UXwQOgAIaP4sDQCX0imFRd4zdr3hLrLlqcTrt/xUnktBcEzTUGT9J3mr8YuslUxWNlyTveH1QqVeMVB9+61FLIQKUaUwRrJoEaxHYboDWF5E/SH6fTwPOkSQ7rbnbpZQKeF0c2UAiMx/46fx/adaQ1hWIb2arkF8qFFa8Atvy9il70EDa5/yyEvUXglemZ3o+GsyhV3G4ECtbNwiS9XzZE+t5bvNs2FJU9t1s7kDmOybisxuQAwewXca0XSAHLuE7/w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=kontron.de; dmarc=pass action=none header.from=kontron.de; dkim=pass header.d=kontron.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mysnt.onmicrosoft.com; s=selector2-mysnt-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aw1+QD+dZcHJ5X7zGaZ2DOPe9+1Gz7NZ6CY0sb02xk8=; b=d/0KV0vawMlS+RnwM/qSdknY70P2MP4hFXX3SFe/5sGGtQlbQRx1JQuLR1zzuDDchVPl7mvNalKGhc1sN0jsjunHuZG3Axbcj4hr7sHrtW0QxZpfKvC/Q4oY+npxj3a1bOrNp5r+SLDfQ0FM75q8Wy+oktOiC9T/KF5naloA9Fg= Received: from DB7PR10MB2490.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:50::12) by DB7PR10MB1947.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:5:b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Tue, 9 Jun 2020 08:23:30 +0000 Received: from DB7PR10MB2490.EURPRD10.PROD.OUTLOOK.COM ([fe80::acc5:2acd:49a6:5048]) by DB7PR10MB2490.EURPRD10.PROD.OUTLOOK.COM ([fe80::acc5:2acd:49a6:5048%7]) with mapi id 15.20.3066.023; Tue, 9 Jun 2020 08:23:30 +0000 From: Schrempf Frieder To: Greg Kroah-Hartman CC: Fabio Estevam , =?utf-8?B?VXdlIEtsZWluZS1Lw7ZuaWc=?= , "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-serial@vger.kernel.org" Subject: Re: [PATCH v2] serial: imx: Fix handling of TC irq in combination with DMA Thread-Topic: [PATCH v2] serial: imx: Fix handling of TC irq in combination with DMA Thread-Index: AQHWPi7m3YXfW/ta4UitHElBbvaQXajP8iSA Date: Tue, 9 Jun 2020 08:23:30 +0000 Message-ID: References: <20200609072259.8259-1-frieder.schrempf@kontron.de> In-Reply-To: <20200609072259.8259-1-frieder.schrempf@kontron.de> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: linuxfoundation.org; dkim=none (message not signed) header.d=none;linuxfoundation.org; dmarc=none action=none header.from=kontron.de; x-originating-ip: [77.246.119.226] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: df7343b0-5f11-4326-6a59-08d80c4e648b x-ms-traffictypediagnostic: DB7PR10MB1947: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:226; x-forefront-prvs: 042957ACD7 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: n6420Fct38Bj26RBcrzED4nwfehPa5Hsofs8Yg3irWreRjC1U1P2Iq5LN34wEEJ4E5AC5jWCReIpYMiCs1dgFfmv9LpsepkZoNrdSzRGb/MQvs2gmwrdOINeT3ss7D7TFlZFbllqDnx5Eb8tzqJwivZoF5vM3tyl9NmR38vs6YtWo1UGhJqRHnmgPiaD0/iho8KUM48GI4gOVY55wGByLG5JOkns2HPVCYsXxD7TwFDYNfAkGxR038yBFTvprkP3pS90PRTPt28rGlrIZljHqmcdMZrzxx1YBqixW+RFxGw7BFcpgdiyj/OV9gXOQeFT4YLvzGgU/LYAECAGuFU3Zw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR10MB2490.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(366004)(376002)(136003)(396003)(39850400004)(346002)(2906002)(6512007)(71200400001)(8936002)(478600001)(8676002)(186003)(54906003)(6486002)(6506007)(66574014)(83380400001)(36756003)(53546011)(26005)(5660300002)(91956017)(31696002)(66446008)(66556008)(66476007)(66946007)(86362001)(31686004)(6916009)(76116006)(2616005)(4326008)(316002)(64756008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: oAh78Kf/Lxx52wX94LrDSvsMGqz1TFmIoUreo76oy/lEoudLJYZOkz7WP2AQYwAGva7/40TyNtf8MP8c+LgCC+89+v+TIUvPng9WGd8d8fjzdnVGMEc3vAoEHnes5Se8qkfGW++G2HTdjeDiohDdXgZQEfIjO71o6FXtuXplrEYlyEJOl/trx+1OgLXg5R0Cd3rgITM4V6ich1CmlA19uNHbsYvlp2KrU2KDN67FVBkQE8jCuyP+gK6kZB4nIC4MfkdtLw3dTknQq57cJ5axFoxua9ony0wSCfuEsjhtILQIxHoL4EHUH//e21cWFfAYdwnEsYrG3nEfVe6Xjs6jz82YeqTR/AneZm+QeQTsoRMRNJe4zJDDBKU9UNmZzek8JE5zLaB2RgjRlbsXhJ+9ymTEDiX6iPTlOJrsWw8Tj2bYon+56H5u1++SnNHAmFzITKQSm9q9KqeGEm+uGA/4uw9i1ATiKZ5QriBLP73wOo2oF5getlCBeXAHDwKDFfJp x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: kontron.de X-MS-Exchange-CrossTenant-Network-Message-Id: df7343b0-5f11-4326-6a59-08d80c4e648b X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jun 2020 08:23:30.6146 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8c9d3c97-3fd9-41c8-a2b1-646f3942daf1 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: QHMz8D7MUyTVaokHuacpothlo3DTHfcKwd85TgqZjNCul+QK1Chq0NjE/MeOUkVOdUGHo8TgMIw/XGB+R3ry8O1YWUlcN/7iBsDpXoi56IY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR10MB1947 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMDkuMDYuMjAgMDk6MjMsIFNjaHJlbXBmIEZyaWVkZXIgd3JvdGU6DQo+IEZyb206IFV3ZSBL bGVpbmUtS8O2bmlnIDx1LmtsZWluZS1rb2VuaWdAcGVuZ3V0cm9uaXguZGU+DQo+IA0KPiBjb21t aXQgMTg2NjU0MTQ5MjY0MWMwMjg3NGJmNTFmOWQ4NzEyYjU1MTBmMmM2NCB1cHN0cmVhbQ0K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