Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6743299rwi; Mon, 24 Oct 2022 05:40:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7YVIbnqwLQK2aQPqjGIkEzDe22UD7dnMX6T8fGlL27FF+p5ygOa849YvDcBBRNN+CKadW3 X-Received: by 2002:a63:5519:0:b0:457:dced:8ba1 with SMTP id j25-20020a635519000000b00457dced8ba1mr27402449pgb.163.1666615240813; Mon, 24 Oct 2022 05:40:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666615240; cv=none; d=google.com; s=arc-20160816; b=J3BCzCDhl+XT3tDMef850qmXSaKPa34sBz3uP2sFWnbVP4C5raaSO48m028IZMmE5J EO57Fwlmd+BaFX0wJe8olzVw7uE8RdgPkpBJsupq0fO5VJs+Gujk+GO0eRxbSvmdBVeo qeXOfffKqFNRQjmUTfbB56MsWLXtqRI5bvUyuQ2NSsp9RtW8LN3IjWCD/pTdjNJbmT8q EhsmRRkmR1RBZYpjka+6JW+oUjpeth6rGTUxIOiQZ+5y75KHAgO1m1rf1peZo4VEQzhH eLolStV3v/xF3Qml5tHeU/m/xHW8WghsN4m5jsAByEVvdubmpElvRYsZZofQq4IDVT+G Y1xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kwDERlHZqfaELe+8QA07ZNmVebcbJNIDJXJbKbdzWJk=; b=tjsJP81vkOe6e5b01ikK2bV4ZKhGZ48hgn7mavumZgp9ve7ejPbUuxME7P7QSuWgp6 oZsXUyC1nynE5VlVRZ//Xt9bnrpPCeJeZeKToVWv06e1Vh4wDxScEY9B+UD4ZmygHcC3 0IwQ0b3tACzcfTsjYxqappkyqiLEOvr+YkcaZr9szEgllDpamZESF89IzATrHoU+phMd NL6YnmLHfcroDs4Ktlb0Y/MWTv24PIEB7h+ejzBC2Tbt2Osg6d5c2nnRD41MdL1JB/GF vTt67UlDKTGD8R8FILHN9LJzwVYNV/qRY5JWzvwypCNRZI3ET+du3xQMSuRb837Apfbd ruWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TTrW+kyH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d15-20020a170903230f00b0018695bddc4bsi7637388plh.470.2022.10.24.05.40.29; Mon, 24 Oct 2022 05:40:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TTrW+kyH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232774AbiJXMKb (ORCPT + 99 others); Mon, 24 Oct 2022 08:10:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232856AbiJXMJD (ORCPT ); Mon, 24 Oct 2022 08:09:03 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 206C47E03F; Mon, 24 Oct 2022 04:51:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0F60AB811B6; Mon, 24 Oct 2022 11:50:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6EDA7C433C1; Mon, 24 Oct 2022 11:50:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666612244; bh=HMtNax6B1YKpRfTbexY+MqRVDn68rD2BXHrv0/2PqNo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TTrW+kyHdxegBKiBbO9u4MPaDYLfyRFAxX3z7hESouLE8CNilz/sjni4ISdp0bxrI +p8kWI8o2eY59yCYgAoxQaHV0Ft0g0RM3dpjLer4yruIA2tm444xFs6xItgiPnlm+Y FSdce94+FaUJPo1wpY+iwJbVd2nwpQw1cCVadzRM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shubhrajyoti Datta , Sasha Levin Subject: [PATCH 4.14 124/210] tty: xilinx_uartps: Fix the ignore_status Date: Mon, 24 Oct 2022 13:30:41 +0200 Message-Id: <20221024113000.997716762@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112956.797777597@linuxfoundation.org> References: <20221024112956.797777597@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shubhrajyoti Datta [ Upstream commit b8a6c3b3d4654fba19881cc77da61eac29f57cae ] Currently the ignore_status is not considered in the isr. Add a check to add the ignore_status. Fixes: 61ec9016988f ("tty/serial: add support for Xilinx PS UART") Signed-off-by: Shubhrajyoti Datta Link: https://lore.kernel.org/r/20220729114748.18332-5-shubhrajyoti.datta@xilinx.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/tty/serial/xilinx_uartps.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index cdd81c28893a..a04fbf83d123 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -369,6 +369,8 @@ static irqreturn_t cdns_uart_isr(int irq, void *dev_id) isrstatus &= ~CDNS_UART_IXR_TXEMPTY; } + isrstatus &= port->read_status_mask; + isrstatus &= ~port->ignore_status_mask; /* * Skip RX processing if RX is disabled as RXEMPTY will never be set * as read bytes will not be removed from the FIFO. -- 2.35.1