Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3791348img; Mon, 25 Mar 2019 18:35:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqw58y9Np27d6A37Lj8VLN4mAcq6xBeGpTd9KbEurjn6bQjOvYmg3EpDBUPCJxffb0LYz7+V X-Received: by 2002:a17:902:d24:: with SMTP id 33mr28324398plu.246.1553564156792; Mon, 25 Mar 2019 18:35:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553564156; cv=none; d=google.com; s=arc-20160816; b=nOARebd8Ns+Rpqhko4dYtbK34bXj1/TKjkfadiXhTmdDG7visDZtxZqXohP90WuilQ Z0JiD5ELhEi73+lP6xoww05Vor0XICI/LQHdElZ3nQtR6e6+HC41YV5SUrpW+gC0o1z/ iw+g+sOvGU8+H+CoWxcXdtsVs0LjZJDYs3JDp65yC3oBxP/HkhjEh4HxQwXIsaAfWRi+ FuXHtQYL65OEoHDwuojNbNziE7/ryHaBlfIv+Ih7rNd2E/lCmRXmH7wo48ZvCe5q9Fu6 UrZt7OpxKGkJSlexSEE4cRJSM61UN2IjnTcu3/0Mu9Ugan14qnyKRxhrHu2Zy19vDKVD x2FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xjMOpJ91xY5bYFw1GkGdsrbJmzjOsOHbtP+HEnchEVw=; b=Hma0YRo2GDTuotO727/DcfDoqZ9BKAmnBmY+6hWvk7CqgJjypyzXlSpGyus+0yWsWB Xiw/beOCBBl6v0gqAMwoX/Qmc5nAA23jpr/OuBNdUeykEWBqkT7y0t5upwwb72yrDmSU gRQVkVpWsEqEwxM4yXdyDgfqzGEfaFrnrwXI/5VfgWl6TeKDKthJiSL6M+vK3vuPzeGQ d/PqG5pIHaTmqwRRCbLlcZDAiZvUtR5qqskqH6KOKGmr3fEz/jpzz04hyCPC73is/8kt EH70UPCiVz4rA2rdPQCmK/CIKLBl9Ez9c5B2au8053NYjhW/Cgsfj0MC4jYPHD4Ne/Im 2V1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ga94NYNe; 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 g30si16425579plg.102.2019.03.25.18.35.41; Mon, 25 Mar 2019 18:35:56 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=ga94NYNe; 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 S1730556AbfCZBfF (ORCPT + 99 others); Mon, 25 Mar 2019 21:35:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:37824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727506AbfCZBfF (ORCPT ); Mon, 25 Mar 2019 21:35:05 -0400 Received: from localhost (li1825-44.members.linode.com [172.104.248.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 713CD2075D; Tue, 26 Mar 2019 01:35:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553564104; bh=BtbVbMRScB1MlU7O4a1gHi6RtXrMC6FJ6yX0WEe+mhE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ga94NYNelUWPt0c3xBt69ZdI8oqhRBpY0/dr/YX4y2T/4NeMHRHWrrKeNIKRd+cR5 XKwXvdk0eBtrHGOpTduTcr1AgvQ+z38oztGdAxeMyczhoaQDCg2uq24LuYxkQBskJI ibtKxkdTbQibVvq3dDxycVIBD8E+d5hoz75QMNug= Date: Tue, 26 Mar 2019 10:34:58 +0900 From: Greg KH To: Arnd Bergmann Cc: stable@vger.kernel.org, Jiri Slaby , Orson Zhai , Baolin Wang , Chunyan Zhang , Lanqing Liu , Chunyan Zhang , Lanqing Liu , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [BACKPORT 4.4.y 23/25] serial: sprd: clear timeout interrupt only rather than all interrupts Message-ID: <20190326013458.GC21198@kroah.com> References: <20190322154425.3852517-1-arnd@arndb.de> <20190322154425.3852517-24-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190322154425.3852517-24-arnd@arndb.de> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 22, 2019 at 04:44:14PM +0100, Arnd Bergmann wrote: > From: Lanqing Liu > > On Spreadtrum's serial device, nearly all of interrupts would be cleared > by hardware except timeout interrupt. This patch removed the operation > of clearing all interrupt in irq handler, instead added an if statement > to check if the timeout interrupt is supposed to be cleared. > > Wrongly clearing timeout interrupt would lead to uart data stay in rx > fifo, that means the driver cannot read them out anymore. > > Signed-off-by: Lanqing Liu > Signed-off-by: Chunyan Zhang > Signed-off-by: Greg Kroah-Hartman > (cherry picked from commit 4350782570b919f254c1e083261a21c19fcaee90) > Signed-off-by: Arnd Bergmann > --- > drivers/tty/serial/sprd_serial.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Also added to 4.9.y