From patchwork Mon Oct 24 11:30:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8494 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp403871wru; Mon, 24 Oct 2022 04:53:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6obTdIIcOIFnDwSMBKMbWr9ngDNPPEYSrsrWAqh3g22PB56xLty68TtRNIihORmXhiNs2+ X-Received: by 2002:a17:903:110f:b0:178:ae31:ab2 with SMTP id n15-20020a170903110f00b00178ae310ab2mr33381225plh.89.1666612419176; Mon, 24 Oct 2022 04:53:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666612419; cv=none; d=google.com; s=arc-20160816; b=r/eyUhBtfYTNKlcZDVUUuKBZI5l3TXducw08olZMC7YjISKThtxZ2KPSLdliCq48UW Mraipv4m9q//o4oBusWjbP35fc/woLKmrRIZzzK1aTO6SaKrK/Sa43roMaKpYa2JOVOo nnhwUBwSWI3gA40WBqynfC9GAU+lc4UmVqmd9YsCZf7cJjfm76emrDrCsKqHSVfl58hx dQYrdZhXx6h+PRV8o+jkXRhOOgmrS8KbeUxpFSAJNKx6R9xh411up4f9cfUoA0gDliDr PtfjduWePJmdCUqIeEOqhMXuqbFBfXFqMi379cZ32bqRdhdRvA2jX/kp+aEMb9sex1sM v9iQ== 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=G8RCs1j8VCkNUUdTqiXmPzw/sUEtOCrxHD3Tt2Q6gWs=; b=O9K1FKxFG48440D8tXwYoy3nKCsTvVFadd3HCMCeJ8aQuD+NKzlx4wQEC5e+sLqhtY BJNgoB8gbNzMqQ3+DyAYBe5ajw9au96aBX+noH6quaDwObTEotJGuwzsOYwO7exly/YO hSBPCDxOTMesjQJHkcM9AVTqFc8ZJrV3tvU+gR7b+qmSQv3c2axAcLMk6lwXUcOjfij8 ub1dYsxXFrtzy2bA7Qx6pkj7QYTKVdYHSrmVkepiOR8ijzRD587OzUUvmsnjIMrNUWM9 isW4yPs769LpAfI0EIS7JC0g11Iu4xvVrXRqfXnkbrhHGZNzM6tvTJX2jTafZeZ4er8p FJWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IUFs9+Hy; 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 l5-20020a63f305000000b0045fdb4fca50si36949773pgh.330.2022.10.24.04.53.26; Mon, 24 Oct 2022 04:53:39 -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=IUFs9+Hy; 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 S232089AbiJXLxK (ORCPT + 99 others); Mon, 24 Oct 2022 07:53:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231570AbiJXLwe (ORCPT ); Mon, 24 Oct 2022 07:52:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E418020BDC; Mon, 24 Oct 2022 04:44:46 -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 EEC96612BF; Mon, 24 Oct 2022 11:42:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11543C433D6; Mon, 24 Oct 2022 11:42:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666611752; bh=Vy69GDxqPG6S8USrgQGKNh1k8SXRIWO8A5b+jSFVqU0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IUFs9+Hydal/wHRmz5bbdWKZ2VIST+B11bUaY3fGtyvpVQ4sHxcr7cyycsqBCEufq pCxFGSPjxvZFVkLNLIQ39Hu96fzHUJVStz6hCRvRpDsDjWkK/tzqXqVTIenw0xxElQ sVVVGmght8mgPzGnsQ6F8N5g6SfMvIUjL/mRkg7s= 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.9 098/159] tty: xilinx_uartps: Fix the ignore_status Date: Mon, 24 Oct 2022 13:30:52 +0200 Message-Id: <20221024112953.013895835@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112949.358278806@linuxfoundation.org> References: <20221024112949.358278806@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747569784102890037?= X-GMAIL-MSGID: =?utf-8?q?1747569784102890037?= 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 b92700fdfd51..4fb040569194 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -363,6 +363,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.