From patchwork Mon Oct 24 11:30:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9108 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp456095wru; Mon, 24 Oct 2022 06:33:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM42lADJiTg/UC+RaCwjcnY6nLmv94U39IOz62as/pGhixp7/Jm+XBr8yaARIlI/BVqqpM7y X-Received: by 2002:a17:90b:4a09:b0:20c:316d:e58b with SMTP id kk9-20020a17090b4a0900b0020c316de58bmr74606530pjb.217.1666618413695; Mon, 24 Oct 2022 06:33:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666618413; cv=none; d=google.com; s=arc-20160816; b=end7YLZXoCJXJYqBbhqDWNxG4nQIbg9U17UvSttSL+EOfPDeKEAgQTXnScoQI5qqjb SAyWxMNkf9orgdI3l03l3LBRfnD65lJSlda+gjpF4uTkAy1iem+ALxd5S9wSdR6nh8os teXcA+oQrV4CpVAojutrQrJ35ibR9mSCjKP+oHOC0Ff7HyuLC7BBPFRnxJHV7enwRaO0 VIXw3vSQkgVPIbNlZqmznqvOTM4PqqBIid9dMUPkOIweDFzgFiRKjTmH0QA4kkbZPopu /u5i7oRhxrxRrG6Dyo7EeSaH4nyf3SH6kW1HeKfgTq6sgNoURlm/wAm1wNFB/ZAk913+ imoA== 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=EkOuZeephq1I5logVvo+1WsEQR7um+UBGCaZVCPrzdQ=; b=RwNkPlztAz1LM3Vx22M7qWJ5Pt8ZtZnI6ZWkaSAqYWzriTcsqpdhespTsjsiXI+vMM k7o/wWCbACLopCGN1yept/2/xaoGd2Eq+Fp/oFSNCsYxYXGGyBYhy1gpRzyoiWmSpSdz 3Xnop/dQWIzElcagDn79g8s3x+Ib3zlhon795Rirz6iB1Ln42bBgDO2jAiCUOwJ/4yTv 10TlOQYqW2lCUMyfMf/Zm/Iv3Mqtq2cbfl9YjqsRYahdLYQUF6TMM4o+B/w7YDSQMz66 Okcc4rvZy/MuNbCvRY0AWEPRafLiIRAurhMppUAAsZKeQsXJFM5gbB+a7mEl+K0cYAQp DB0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fbCS+pPX; 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 bu3-20020a056a00410300b0056c0a9e09f0si357954pfb.292.2022.10.24.06.33.19; Mon, 24 Oct 2022 06:33:33 -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=fbCS+pPX; 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 S230414AbiJXNRE (ORCPT + 99 others); Mon, 24 Oct 2022 09:17:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235817AbiJXNPj (ORCPT ); Mon, 24 Oct 2022 09:15:39 -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 0AFC3A23DE; Mon, 24 Oct 2022 05:25: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 dfw.source.kernel.org (Postfix) with ESMTPS id 3D9E7612CF; Mon, 24 Oct 2022 12:24:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D698C433C1; Mon, 24 Oct 2022 12:24:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666614297; bh=oTg7CPOJxYAvFd77/5cg9hTGZkS8zJbP5ZCy7OrxxK0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fbCS+pPX8872H4U0SM8UT/O+kDGDKEyIpd/mPngzp4dtZyHhh75GBo0tIJsUJOGkS s76bp7BVCs8ITVLt60sCz5th/UKcMLiu9Va1dw3zweN0O7s9NOhrrmaIwErwC8Z34D QEbNNsUgVczmkgSrWyHog/ExF1EzXy7YL4Defg+8= 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.10 207/390] tty: xilinx_uartps: Fix the ignore_status Date: Mon, 24 Oct 2022 13:30:04 +0200 Message-Id: <20221024113031.592085925@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113022.510008560@linuxfoundation.org> References: <20221024113022.510008560@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?1747576069951734109?= X-GMAIL-MSGID: =?utf-8?q?1747576069951734109?= 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 b5a8afbc452b..f7dfa123907a 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.