Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7397929rwi; Mon, 24 Oct 2022 14:08:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6BOrvux3OtalYy9T4kfhcY1cyJbmrqUKmeKW3qoE/gSOHV9J7BpI40XwhZLixoHe9YaR7h X-Received: by 2002:a17:906:4fca:b0:78d:b042:eeca with SMTP id i10-20020a1709064fca00b0078db042eecamr28301890ejw.685.1666645710979; Mon, 24 Oct 2022 14:08:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666645710; cv=none; d=google.com; s=arc-20160816; b=i3jC1AxkX8WAScHOSu94fAHxJD9JFNn536IvWV+RBmo/EQLSqfjmaw5LQGATx/ic/x 2c5b749X0e1jC8HkFIGauO8RfjaSvMNU43gxP+VWy0FCJAazS3nVLeHUFYXVdE5A6mB6 3iP9ElRY8YHQXQzo03rX1IlwHGewqtjz7N4Rtr6UksLGZf1+I/EIfA38aUmipvmMrotJ QzzAPWJsamlEQ9XcbLEc86sZpw+3b7DVBegyi6/cqIkEm/LWrmhv5X3Que0OC7GcwhiA TGR0UZF49+RWWKyswKh/NzvDIi1iXQtbj5Vm93+yMYnw88B4E7Is3HaSABiXff/IzWQ7 GQ4w== 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=WfkXqYA93xROFtWoTxi5v6B999hBzjivZUmpzZrf87M=; b=AMJmOIc8ITTr9aEa2YZyeLM1zKIsC119cX8FmCe/okxmmC5iiw2YVnCwtGq32aJB7D QQ2RtiM6z9m5uBJ4zoqN0xr8znrMnFzMEp74KvDioWq2PifzNLXtefmtEogK3WYR15Nj +rBeKmxoKNZHnj/MED+BOrQvlaCXsvLLanTATQYAVqi9LDI9nLqIF/AE5qwcnriQA4/c Whtu3P1XaC9jxAX+CxTf/hLt2bQ3yUAjyOiwuSfRXcRiQRnFUJGv0YZp71cAuo3BraFc jKh2TvxI/6IfZ0mO0ENsIPVsFKS5LNznMXCy89362BaVu9HYmpEVmsL+h8t2xEPhnuZm zTnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=o45Wi3FI; 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 x2-20020a05640226c200b0045b293121f1si845191edd.12.2022.10.24.14.08.05; Mon, 24 Oct 2022 14:08:30 -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=o45Wi3FI; 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 S234519AbiJXUhy (ORCPT + 99 others); Mon, 24 Oct 2022 16:37:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234345AbiJXUhU (ORCPT ); Mon, 24 Oct 2022 16:37:20 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90CFA3BC63; Mon, 24 Oct 2022 11:48:44 -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 B16DCB819C9; Mon, 24 Oct 2022 12:45:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1273AC433C1; Mon, 24 Oct 2022 12:45:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666615528; bh=QvZyrofpx2RDc7Q95XGcOIix7KgJLsvg8cGVQruO/Sg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o45Wi3FIdkw4MlwuqlnsvgtndWjzX19br+GpA6DFf7VZ5H/6HJjZt9aYgN8F058X5 f4NWO+jfqXoaQe8/7qteLlSx/euYBWWiojUuskiwbIOsarkwqHav9E4ROJNbHj60ER UoWm3KN0mJG04l7HO/DMSLfKpfWXPARVuJn8Z0zM= 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.15 285/530] tty: xilinx_uartps: Fix the ignore_status Date: Mon, 24 Oct 2022 13:30:29 +0200 Message-Id: <20221024113057.949533730@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113044.976326639@linuxfoundation.org> References: <20221024113044.976326639@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 d5e243908d9f..815e3e26ee20 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -375,6 +375,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