Received: by 2002:a17:90a:3541:0:0:0:0 with SMTP id q59csp369546pjb; Tue, 9 Jun 2020 00:25:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5w5fOxhK99sphCwRQLIQxiK5XC6BIMnUXbIrM1rBd8UC3zr3qABdmVHlzzb/VoEia62Iz X-Received: by 2002:a05:6402:8d1:: with SMTP id d17mr24369793edz.38.1591687556272; Tue, 09 Jun 2020 00:25:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591687556; cv=pass; d=google.com; s=arc-20160816; b=Q4T1jMKHAx8Ez1vgSIYEOp4Z0g+QjFaE72xhGSc/yzq7TNKx1pRu2abWcELhL1nvxn /++UBTb2ruG9vhTN7RE0tpMRK9oqwMp7z/IajbGKDf+shgNcTJBAXOtpBQtNX8LpMFFz AKTy5DJ2vu5HS3Bnak04gw2Nhr7+3bC2MSUPqJNrBXu/c96eZzlVixbe7RBHN6SCUtqD s/xgd3jWg0F1z0DpvamtMWSglazEwRxDUxDUEIkcSIeqcHwdcJRI1duBHgPzii5u2JW6 J1ZbSPpYJROejmYVobsUHk8AvCYasi0di0L6r3r+gK5FUadg5HoVaXgdR7I8RRbuC+gf Utbg== 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=8WSE4mdrEa4VrmDwLEkO8/+v34K36Kl/YH4u56hlgYI=; b=gIxyUaLTlzmUP9LSIA4ZZHVvzeZUbU7yS0BaVj/tY1Sd9GEqCjOeEQDScW2j9BwFon 0Kd+QUZoJu7RhtfFVyVp804ESwIh0KQ9Jup/oYo62Kh0zqrrg36uzg8AF0pZtW/XET9m ScwMB624eQ7Z0didxueqpNkbJyVwAuzE5JiE1k5XgwKSyNuWEGRqTilGcZRYV8tFBSPb lqXZBnk9fNBNfR3O8Svw76mrf9Uji0N6HugbjHGrIQey6V3ZBXP88zM+bsDRzzKTQZd4 D2kT3vik1cr3/8UG9OEl9eDdepxQNRzH0doD8ORgVVZZ4mwwFcBBnvHLEaUQb2UgdLp1 XtPw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mysnt.onmicrosoft.com header.s=selector2-mysnt-onmicrosoft-com header.b=kvXEw30Y; 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 q12si10192047edc.413.2020.06.09.00.25.32; Tue, 09 Jun 2020 00:25:56 -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=kvXEw30Y; 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 S1726778AbgFIHXp (ORCPT + 99 others); Tue, 9 Jun 2020 03:23:45 -0400 Received: from mail-am6eur05on2124.outbound.protection.outlook.com ([40.107.22.124]:42177 "EHLO EUR05-AM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726083AbgFIHXo (ORCPT ); Tue, 9 Jun 2020 03:23:44 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nt4j9NQwlOanWwWc/zBU9+4TwmlBuCUWN1vtBHM73VfnjcKFbdp7iKumdSkWvURs2dO9ASdvyUOVUrDsVLMAMQDyvnEXcW2VjFArmXu5Nx/YGgvonWq4/raYhNmn/FPThOnthdyACrvNw+eVx/aKvoqNiUMMRCPunKLlKPYfHg7qw/UtiC9Kp3ZLYdXCURxHzw7lLppm2jDfd10Hh2L+e4LEy6PbmW9+O3zEvuKUAkO/Sr6soaOkzppXOuUN35xizJLZedtlRba9F8gZAgmyXncOaOcplHU5XY6/cFwI31utZZ/tNLubldzcPJ3YaWwWLAb/4T5RBhF13yKOIhFg3w== 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=8WSE4mdrEa4VrmDwLEkO8/+v34K36Kl/YH4u56hlgYI=; b=U8WflaV42iaFOZd2AfWCxl6oKsOmTunoURFEH5tfDRsDABrq8kZZ5xv3oXVAK3gJhipLNld6Ef4Z7wio759VavB/eFsXzNiIVBbT2pKHVeznCYn73TtlPDzWARNQFjKXdSQjyQPrbMYMKj/2vqkXhYdSoaNl5Ka2aNdkN2B/biHSArCd7WjWAtfSEG0vHyPKYqZzzWHgkXY0oho0KCMtZTE9YXJONEDYr1FQzHWNV1NqThZFRmQlNN/1tfkqE6KAQ56hQ2nwD72BNf2JWxXkvm5Nqi42e4bR/YhTCzNDAXYPDBywgHcMAYIiB8ABvdwvP7VZRLUWR7hoTTYmYZ9Kyw== 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=8WSE4mdrEa4VrmDwLEkO8/+v34K36Kl/YH4u56hlgYI=; b=kvXEw30YCgg5zRKrnJZA1agDK7V+HPgt8FeJk7y0a8wAs3RJJroCWD9AMdrHjHM8UzhqQDCctdVPaFdQ/TK86qUVcOSl8z7tgO5VjJCu3rOtk7enCBTIYDGUYHMkzShU3at2NnGMt3GmOohlN7G7949Cq1TAycXCRX4B+F5q2UM= Received: from DB7PR10MB2490.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:50::12) by DB7PR10MB1900.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:5:a::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.20; Tue, 9 Jun 2020 07:23:40 +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 07:23:40 +0000 From: Schrempf Frieder To: Greg Kroah-Hartman CC: Fabio Estevam , =?utf-8?B?VXdlIEtsZWluZS1Lw7ZuaWc=?= , "stable@vger.kernel.org" , Schrempf Frieder , "linux-kernel@vger.kernel.org" , "linux-serial@vger.kernel.org" Subject: [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/ta4UitHElBbvaQXQ== Date: Tue, 9 Jun 2020 07:23:40 +0000 Message-ID: <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: 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: 7afe26dc-b56b-4626-99df-08d80c4608c8 x-ms-traffictypediagnostic: DB7PR10MB1900: x-ms-exchange-transport-forked: True 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: W2j+fdXqfUu2hAQNJRps9JlCOktEhEGf9CCxxtbZHyrMl/WDIvTio9k1fzKzUmzE/NM8Vjl7Q+hsLil7eek2HiMCgLBF1cXckff8Kxgn+9kfS3gonafcLk/Fo1PFNjrpb/PFLcxCkEK5OblJDd5xSSxR6TWtapy9ua0NquuYX50j4gxo1tmEMfKQJx9CFcGffHn0Vo8yojB+ACa9qT6Te0mCLQp0xqTmS3w8xDKPW0/0AhM5DK3DWuJBjs8Me8umVAADcBmPiS4DDetG+TUpIxYRUFp5WD5U0tluvECY83rdn6oQ3Jxcb9JGGoPMHjtgmSZKPxEfgVHfsNuui7oIUw== 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)(136003)(366004)(376002)(39850400004)(346002)(396003)(4326008)(66574014)(54906003)(6512007)(83380400001)(36756003)(6486002)(6916009)(2616005)(8936002)(2906002)(6506007)(66946007)(8676002)(5660300002)(478600001)(71200400001)(66476007)(91956017)(66556008)(66446008)(64756008)(316002)(86362001)(26005)(186003)(76116006)(1076003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: XRF9/dQpcOu+YGCBME3YEZ8Ge2f1lJ1jl5v5bP0FnLhrqsOAdudPN0/44B5cOVeLZtx2Je3qNRhaVCXP2SLmaQiORqs4JhDnGfsO+QsnpzuQ0ylc5Q5EU4d/A344yhop27AQK3593TItZpjvr+pPvNYI2JeR66LLR92+p9d8oLMK9+A5AW2VMcyk5aZRn/+YTgyxRdjWHO5hi3o4QHZ87jaRm2fi81SsPhyD1yM5WDKLrG3sldTXMtDoSLr1C6u08+B+8UF28wSLjfUTXhPGHEbRZKAxpsC7uS4egAE9+kq1RiRHl7jpppeqqxsrLWb2GXYCZvCYIkPrfBF+gfOSkhMALDVagXghpom4SxkZgFx0Q1me8yVZQX244S/oRn4z/vApw6E3uEPb8tWgMPMmesaxihDJvEhJ8Yjl+/gyPCwIeUnLAQeY60ZUE4W+JDvrfqjp9Sy2cMZfsJwv/2fSFzLAOhWmI2N55lcDuUAfyOV9UIaszdt4FhoCNBkIBVBJ Content-Type: text/plain; charset="utf-8" Content-ID: <96F7689729BDA647AD496AAA4A8CB489@EURPRD10.PROD.OUTLOOK.COM> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: kontron.de X-MS-Exchange-CrossTenant-Network-Message-Id: 7afe26dc-b56b-4626-99df-08d80c4608c8 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jun 2020 07:23:40.6444 (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: DOWaNgPzZVmpGPEuz0ho6WySuSLqQeZNgh0yLZbj+b308C2h7E417fhy3abqeYkzdWonou+bR0uT9li252XPpqcsl+1XQ9d0xlL2oiI7b8s= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR10MB1900 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogVXdlIEtsZWluZS1Lw7ZuaWcgPHUua2xlaW5lLWtvZW5pZ0BwZW5ndXRyb25peC5kZT4N Cg0KY29tbWl0IDE4NjY1NDE0OTI2NDFjMDI4NzRiZjUxZjlkODcxMmI1NTEwZjJjNjQgdXBzdHJl YW0NCg0KV2hlbiB1c2luZyBSUzQ4NSBoYWxmIGR1cGxleCB0aGUgVHJhbnNtaXR0ZXIg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