From patchwork Sat Oct 22 07:24:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7473 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1099111wrr; Sat, 22 Oct 2022 01:12:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5thLdue35giwt0UHCJjLipt8/ezLjXGDf8CoP+TcwHBBHVlYFfHM7Wp+FS6poQp+lftDno X-Received: by 2002:a17:90b:1808:b0:20d:4e7f:5f53 with SMTP id lw8-20020a17090b180800b0020d4e7f5f53mr61371667pjb.170.1666426361397; Sat, 22 Oct 2022 01:12:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666426361; cv=none; d=google.com; s=arc-20160816; b=pTnxRqoTtq0SNmjjyPuhUDwd8IoTfixDN+kll8Shx4TvA2DshbMONI0DMOOaDm+6Rt CcN4AmlsRDZKmSquiEx/6c1JIotYqGHAs+/9FGakFwP+In3ZNmUP+0ngYFgM5fc2Dtfk FkD9pCG+dvPrgzmhjp8Grv1eRp6pfNPCnc5/AIdbojx+uw88E9iRPkbhWAATCJIrxkPC uZBOPBl1njbXRRsTq0ZYO4JF59heSla9Us8AAbm0iIwUiuKzJuVyv8iHNSWDlJ/2smyy JTTe8c96AhHrpxgwvw5KWSt22Ry7U7nhjLBu4KHwf1D7KOdx6asFhIgnwaMt2mjZJm9n VyQA== 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=SvvFDPIRagDwQAw7oBOyp2vi2gZF403zm7RAQR3gSzc=; b=I25BCqfnlQwfrPMlAnvPfXT1ROBi/iiOCBFI9POPL9fykL3Pc4/Z8hbMoFrX73/ZxJ 6RQ4oY1JKh3EJ6/+Le+yymxO+4nbCxmyEW0CK8A1QD/InbzWb/hA7jrjYd59zbfDHxzl jEdVObXxACL9yu3cmIA6fmzjhAxKcYPsoeqqrfdaishjPO6RinutnHw472J+Sc5JcQt+ oCa5CFZGcJKOj5Oi3JScdpPFDgpQNpKes4jz1afSaxVUlVY7s4ltQjWirrMnjAAXJlB0 zl+qLIMZklYE8EfKZ4SmEZPzjvul+tPFyUgV9fmq5jCejxVrvCdR+RN37fvVjSQR53CX gbwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cPw8gRNn; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cx19-20020a17090afd9300b0020a755f2b83si2030921pjb.100.2022.10.22.01.12.29; Sat, 22 Oct 2022 01:12:41 -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=cPw8gRNn; 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 S233204AbiJVIL7 (ORCPT + 99 others); Sat, 22 Oct 2022 04:11:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233427AbiJVIJt (ORCPT ); Sat, 22 Oct 2022 04:09:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDB572CA7EC; Sat, 22 Oct 2022 00:54:18 -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 dfw.source.kernel.org (Postfix) with ESMTPS id ED92060B82; Sat, 22 Oct 2022 07:53:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E80AFC433D7; Sat, 22 Oct 2022 07:53:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666425201; bh=hqNac0gTxsglYnMmGMAxm6Y4F9sO9iFM2+9XX3B3yuA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cPw8gRNnJFNA8JT//uCCmL6Fw5UMkO/RgqHinJW0/HR/i89BIbd+pEcLsgKM47c3/ dQzwgZbRt9SZjogJwdI6M0+FPx3bsGoWX5WYTo+aMq92/hf+QwVJ5tMrz599xnqRhn cintvDN5QY9kpDTVlbp8OooJFK4EwULOgN5vPaf8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shubhrajyoti Datta , Sasha Levin Subject: [PATCH 5.19 395/717] tty: xilinx_uartps: Fix the ignore_status Date: Sat, 22 Oct 2022 09:24:34 +0200 Message-Id: <20221022072515.268051620@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747374688321073498?= X-GMAIL-MSGID: =?utf-8?q?1747374688321073498?= 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 9e01fe6c0ab8..e08d2c3305ba 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -361,6 +361,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.