Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1538448pxb; Fri, 20 Nov 2020 12:02:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwX7q+r727xgvvU2vRIxJUTjRrJyXbniDclkUvzlpDuGRYbsVySn8FPlZ28FpATQoH4LqWi X-Received: by 2002:a17:906:f286:: with SMTP id gu6mr35571285ejb.182.1605902574722; Fri, 20 Nov 2020 12:02:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605902574; cv=none; d=google.com; s=arc-20160816; b=EuWO1vfSpet8qy8ckfovX/8xfT86P+UqKLOurSZFV9juize1RQu2GQfEhYm4zl0gb+ UBJmQ9g6KJq2pW7S1kbhxtT4QCWUN1s9xyMNTESmQF0Xp+ZXVzY3hdkdzeKJKrkPUqZZ Yol0eNf9my6SR3+dTALwgIE7Su8x5MEil69pgAoVFDdulLtPsmhx+q2wBiaXdize0Oz4 cIpVOwiB+6aYvj8DoQk8Mr7hd8gvgFeRq4AgAwuDsaYK5vOoor5Pl7rJtRKGE+tuQIGC WS+JzsAHtHLFOzpARcAszQpeBw4Ly6jKeD7m548RQzwVFVB5I837b7X/Rs8zLI7h6Qai MA7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=mJHxYL7H9RymwMqscc0XJXPjHsU0qpTIbKqvunGMrEc=; b=Y3aqUS1GH5VDNWzoGm5oI0g37RL2aq5qktYwxXJ/2fM2DZImGDFeI3s+tNF9D+fcML 5o0lRZVmne+IGxmfB1o2I1FfknnyFMdR7H6u2BTenkEW4bLMmrbBVgAk6W2EjafwBpNp rAq2t0BoD0gHftv8VPikQdfolWLvrh7eHx0glim59PitbyHGWM862uBPJ+tYf0DMJ+zB fAztETgwWDLdLIOuURjSLECfYEApkDejst6WQtBWIIECNqdQEnYKA13+LebUqHiZAikw 3Q3QsfGEfhEsMIEr60CG713HNgMs3B/LwbAStOZ4YAPXL04J93qHgOslXFaHYpsqTLjg TPLA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk20si1153590ejb.123.2020.11.20.12.02.24; Fri, 20 Nov 2020 12:02:54 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729484AbgKTUAK (ORCPT + 99 others); Fri, 20 Nov 2020 15:00:10 -0500 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.86.151]:36766 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729012AbgKTUAK (ORCPT ); Fri, 20 Nov 2020 15:00:10 -0500 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-57-DKzvyGEWO86tzjNp9HgpTA-1; Fri, 20 Nov 2020 20:00:06 +0000 X-MC-Unique: DKzvyGEWO86tzjNp9HgpTA-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 20 Nov 2020 20:00:05 +0000 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Fri, 20 Nov 2020 20:00:05 +0000 From: David Laight To: 'Johan Hovold' , "tiantao (H)" , Thomas Gleixner CC: Tian Tao , "gregkh@linuxfoundation.org" , "jirislaby@kernel.org" , "afaerber@suse.de" , "manivannan.sadhasivam@linaro.org" , "linux-serial@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] tty: serial: replace spin_lock_irqsave by spin_lock in hard IRQ Thread-Topic: [PATCH] tty: serial: replace spin_lock_irqsave by spin_lock in hard IRQ Thread-Index: AQHWvzvedNBRKBahtEqDJHaWmtJ6SqnRaVoQ Date: Fri, 20 Nov 2020 20:00:05 +0000 Message-ID: <40a52ea2273146b98b3ae3439a22d1eb@AcuMS.aculab.com> References: <1605776489-16283-1-git-send-email-tiantao6@hisilicon.com> <9ce93d7b-f769-58ed-e6bf-95c34bd0123e@huawei.com> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogSm9oYW4gSG92b2xkDQo+IFNlbnQ6IDIwIE5vdmVtYmVyIDIwMjAgMTI6NTANCj4gDQo+ IE9uIEZyaSwgTm92IDIwLCAyMDIwIGF0IDA3OjI1OjAzUE0gKzA4MDAsIHRpYW50YW8gKEgpIHdy b3RlOg0KPiA+IOWcqCAyMDIwLzExLzIwIDE2OjIzLCBKb2hhbiBIb3ZvbGQg5YaZ6YG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