Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4455967ybg; Mon, 8 Jun 2020 08:16:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyD0BcMHfuIWCUrhV0JReOBj1PGLQbE7xkLNI18hu7J3cnAaatx4/pkv+SMDuB4FntVK6q+ X-Received: by 2002:a17:906:468e:: with SMTP id a14mr13878532ejr.124.1591629380069; Mon, 08 Jun 2020 08:16:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591629380; cv=pass; d=google.com; s=arc-20160816; b=dnESm+aGk2sUWBAXYwGeqjDkO+G/Fp7rjM2Xd84maTt5QweGR1CBf390PRWLSbakAr e/p07qwYuVPujowC4eh55blpTXGvc8fFJo88tiL5xKjBpQwOO5h/Kdkl44xvA+fPjqhC xdX8KgJO1MWQTdRtChRxKS+8ujYVaHGUr7OjYvX7hZkkGxg3MFBqVTV5P9UxmhitSDdY IVmxL4YPplb1lXvEsTMtfgckH0TXpEqYM/3/9+9/IBG0sqO8Qk8Ev6ZDl6ry26FjSenc FOHQlLC3Ig1wgIsK4r/dHqPqHrPSlUscw+zO1EljA4uAHLfhKeJLfzas3G06B6oNx1jw Q9tQ== 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:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=v4kZAD0Lgw+oGfxVwzCegd01JmMLaNZFSW8ITYYMk4g=; b=KRBNHPe1XkdGG7t1AeprPzdcS41TA1BmPfyiLyGSlmgX5z4yeYiX9i1tLKBfAYe33t Cq2lfWsaQ67+EVU0PkvWLteCiINOfbt2MWyqLiFi7LMROMLCqajfyIjhUTqC0qkM7ouF i7K8hHEazBnjXwZPK/QaWU5Hdhyjx9sOIvLiG4bKgUlE7xwsqe5ZGpoXceXbvw6uaytX gQyY84JGMJ3wuODuPSSkRUM5bX3sgpbvHAvVdFmTX7kMq7Tq6/SsiTkPJSjg77UoTpRF JsvOJK/BVDBw9QMUu2h7Zt+GqCZL6DdAljV3owUQX2CxtMTpiT6OrvO/zhSf8fCATqO9 2JSQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mysnt.onmicrosoft.com header.s=selector2-mysnt-onmicrosoft-com header.b=MyjiaSxu; 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 n9si9095049eju.428.2020.06.08.08.15.53; Mon, 08 Jun 2020 08:16:20 -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=MyjiaSxu; 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 S1730212AbgFHPLo (ORCPT + 99 others); Mon, 8 Jun 2020 11:11:44 -0400 Received: from mail-eopbgr30109.outbound.protection.outlook.com ([40.107.3.109]:34305 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730190AbgFHPLn (ORCPT ); Mon, 8 Jun 2020 11:11:43 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m0k9dpL6t9I/b2C1tshF6YiQFdZp5a0tSpGPMSvYZNHHAdGqGTYElM2gJ1Bit8Xr4DTwsuwNMwPhc7jKS+b2ebCT1KOvO8aKl8JnO0oO1+nFH2mquTdKxgd1DR/oC9JTrHYm1znWiT2Z1/lsSK8sTQYeVpV7UnXPMjeFqF7e+HKHduU29wI6IFmpdEgUGNnYFS11FWCI/t6nrYYRBilyMkkTZWwW2ZzzgmXUvW3IivzFIL0OTDkfXCwvNW3CgqGV+CPSyXCJlBZAc4fOVL/HbmJeuzuPzbcaxVKX9rheQMNAFBbRxps1qiUdU9pXGNYTvA5NNespqY1nG59iHkocOQ== 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=v4kZAD0Lgw+oGfxVwzCegd01JmMLaNZFSW8ITYYMk4g=; b=FKaPV4l9tJ+OuHuTuo8lPgd62YND525RwsxHxOfVq1WVrvkv8V3KjaSN5cx0HLiIljfRSWREDCe1bRBWZzmc1brImU+Y5IM7E8ulKCy2XfmBsw0vb6GherbIatjMd3RWlVUu9mu4zgcFy38DFiWQIlhU+6cQYvg3syJ2gWxJzdrKKHRmN5C7QYTzXdTRXBoJMvgVc5FBHPORcmOtpJpbgAhkzWHkV3ZMVTQR2HGTQqq/v3uJvG5T3lDkbHb6HBVdH2uRIT9SmzVr2UIsULlFbMupL2cG6UMqO4eguFTTbyAcG/+5VEYGqmhPuT0+EofF9mzpmJQ4sqt326bzkPd5zQ== 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=v4kZAD0Lgw+oGfxVwzCegd01JmMLaNZFSW8ITYYMk4g=; b=MyjiaSxuIrpgHwlF/zWRLABL4eb7JMMmucsXfh81fAINr4CDy/mjjJg0GBxy2uvgGIYIyv65EU8wJf0K7YB1HERm2ECmgQ8jG5CP64L0/SKFaMljQzhStsBz1TeBCOwjTpAain4ivskM75E8KLpmKsblYD1Vjehu9W7mLfoRydY= Received: from DB7PR10MB2490.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:50::12) by DB7PR10MB2043.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:5:12::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Mon, 8 Jun 2020 15:11:36 +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; Mon, 8 Jun 2020 15:11:36 +0000 From: Schrempf Frieder To: Greg Kroah-Hartman CC: =?utf-8?B?VXdlIEtsZWluZS1Lw7ZuaWc=?= , "stable@vger.kernel.org" , Schrempf Frieder , "linux-kernel@vger.kernel.org" , "linux-serial@vger.kernel.org" Subject: [PATCH] serial: imx: Fix handling of TC irq in combination with DMA Thread-Topic: [PATCH] serial: imx: Fix handling of TC irq in combination with DMA Thread-Index: AQHWPacakgJZrwZ8pkOomdvwi0/9IQ== Date: Mon, 8 Jun 2020 15:11:36 +0000 Message-ID: <20200608151012.7296-1-frieder.schrempf@kontron.de> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.17.1 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: 32172caa-f316-4836-c6f4-08d80bbe3c93 x-ms-traffictypediagnostic: DB7PR10MB2043: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:226; x-forefront-prvs: 042857DBB5 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kyxuASHfKYig5pqqedEIUSoCgUJ51Dd/YGZ+cNScLqceahb5my81JCc7SbWXk7ulcNJQVWsoAqpgQeW1e8jcQxnRxSYQF/4SoCGHdK9Na655OkaLjohsre4VWzu7b9OyI9mTkXkKv9Ph4gSZ/LNGQekW9QH12GiM+HQhYdYSv2YFvi39QFCs+6LmFOZGaylpr0EXG9DlXbC+c4TVsv+Zt5HLrUdI6K+5q+RhNAhQ6HBjdwgfPuu3rtnGO8zMsg/kk9fiVTINlsReejKSisqnhAM9t3AFLoD+9uvseKe0ZhDSKr8Mps6BQy0dinetDj93rDAb6EglXvoIv99vsSAiIA== 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)(346002)(39850400004)(136003)(376002)(396003)(366004)(8936002)(66574014)(6506007)(86362001)(83380400001)(8676002)(5660300002)(36756003)(71200400001)(4326008)(2906002)(478600001)(26005)(186003)(66476007)(91956017)(6916009)(66446008)(2616005)(64756008)(54906003)(6486002)(1076003)(316002)(6512007)(66556008)(76116006)(66946007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: rbsJnBu+DNoqm2d12U7EOB9faKZBbjHjMzeqydfKqhNVn2pTB70x2WdDGkI1jaDymBskAUksBnPdS7gPLrHnMiFW38D0Eaj80hnzqC6r+vFk/EKAC0UHC7Wp7+oURxuY/tVhrhk2wMxvrrXThDPUOpR739vjH027M3hCRz92pIPu7wh/SMySKMNFqer6QLa5PRGO0aFOtyB20UWDBlRGlAStubY8S2wCo1HdJ/ckAZHYJh/6se7TTC8ZhxNfUi5yFIsftlyyg5RVlmdW6Tqbxg+dbb9Z+qcGb0R6nHQEplnUZp7ZvEiiWIB5NX0uABgO1NLeRvApCkgl43/M9RvcihLP+SV3zAOr1W3IIZWQF36qZ8iZjZ8Jh+5YrYXm2jVUgLzN90gJMNMX5W15Hd+XbeBATRFTKznXorasN+Igl7HsRZBkUq9zrXwB9+ngZ/9+eSyEiPnl/A2DV8bLn+9CFURKANvwckqCUvDXNsTsO8IcADgrcKH4fInkw/pybkT8 Content-Type: text/plain; charset="utf-8" Content-ID: <3D23C829F8B0C34D8F5AC104D2B3DA92@EURPRD10.PROD.OUTLOOK.COM> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: kontron.de X-MS-Exchange-CrossTenant-Network-Message-Id: 32172caa-f316-4836-c6f4-08d80bbe3c93 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jun 2020 15:11:36.0594 (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: LrY1+xSLEkmvRmTulTuDRBJXn6Rxd8+HrVzFdm8/R6ouvJB4UxbPXUPO+LVyu0tYqcIsCKuSmGlGBEpkvP+wL6++KqQlwtIPJlDymN0nK2k= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR10MB2043 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogVXdlIEtsZWluZS1Lw7ZuaWcgPHUua2xlaW5lLWtvZW5pZ0BwZW5ndXRyb25peC5kZT4N Cg0KY29tbWl0IDE4NjY1NDE0OTI2NDFjMDI4NzRiZjUxZjlkODcxMmI1NTEwZjJjNjQgdXBzdHJl YW0NCg0KV2hlbiB1c2luZyBSUzQ4NSBoYWxmIGR1cGxleCB0aGUgVHJhbnNtaXR0ZXIgQ29tcGx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