From patchwork Mon Oct 24 11:30:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8850 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp432932wru; Mon, 24 Oct 2022 05:48:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7lkumREUE1bopTJKfJr9ay2zcKB5OUAqM9dwkmzirSypxBXIVRAZMVQV7GTeih29QW9xnk X-Received: by 2002:a63:f921:0:b0:46b:18b:fe4d with SMTP id h33-20020a63f921000000b0046b018bfe4dmr28624777pgi.573.1666615686366; Mon, 24 Oct 2022 05:48:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666615686; cv=none; d=google.com; s=arc-20160816; b=fmFFhlsROo3+S4IXSs2du8G3G0XkEYOahs0KBg26auMEL0qs72bMsE4Ho05SwaYJ0s +9oggsvMPZFG8VnnVQsoeXq0n+CZ15JxGUfylG6ochWfY5RaxqIU251qK01iSWGktZX6 kjQpqc0vvLkdEeDQBco6QdHDWtuIXqvnUG/rgS3y00Ua3okKiDUXI8aO/Sn2O31qV5aK 3ARRC2KdSogcZYwGjFsUyUYxHPIR/qgl0JEhNKNaYfSjsKNPDvWNPg1slzxBoqUrYjXk 1LQ4JjzG8C1uARjYz+uyz/x5GTzV4r0lw62Tgfx1ScpJOzQ+MRCn3UkY281pbvzrSK5d 1LPg== 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=+CciKDv6JKY+01zt7+ltKwp8SwfWo0VDF5P02kTmE5c=; b=mElZ1m8mkUdraPUrp6Oy6nkB7HthKJybh4sgThdHmD3+7mEfTA3mC+wEA+v2ug7T8s 4ZLejrb3JYs5lGC9XR8nmTZ8BwpFVcK5mlAP4NhAkrlbA97aKQ3ATwKUGw1+/7ZA59qs DSygV5PhtofwCjqVuUQdKFUhzQ4u8EvxKtAadeGXaOIQCMwu3wwydkBSjM1e+hglgwSH xnQ01oiv7o6YJjpDUKULBFof0OHPhL9R5I7ohuSZ2tyLfIFJUlP6aW6WsTPlnep6UlNK 1eDqTRMalymB/IE9oXy5Uae8TordnB1HurOr/HBInMfbfxe9N68sfFq8N+LE7rCpKDMl 4Ubg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UFes2JN2; 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 s7-20020a17090302c700b0017532e01e57si32182697plk.200.2022.10.24.05.47.52; Mon, 24 Oct 2022 05:48:06 -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=UFes2JN2; 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 S232131AbiJXMis (ORCPT + 99 others); Mon, 24 Oct 2022 08:38:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233979AbiJXM3I (ORCPT ); Mon, 24 Oct 2022 08:29:08 -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 8AB0387FAD; Mon, 24 Oct 2022 05:03:05 -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 2033BB81205; Mon, 24 Oct 2022 12:00:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52CC8C433D6; Mon, 24 Oct 2022 12:00:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666612811; bh=Ws77N57CxyF8R2lCt0Q+LCWWOIs7ZrRkFT0j9x5vLi0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UFes2JN2qSRIY2dvj/LoqHhybzj9GYtl5cZYIxYLX3o6F84d+sDmHiAR4RPHe708L HjrATpUJvU1CYOWQIExEqXqrJSXOqTa6DE2ss2Sur7UDdXm1i92KK/+2VDE7msin+P 79c7VWqDaDIxdm9WztWO6ofULO0FoPFFnsfflfSw= 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.19 129/229] tty: xilinx_uartps: Fix the ignore_status Date: Mon, 24 Oct 2022 13:30:48 +0200 Message-Id: <20221024113003.181254735@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112959.085534368@linuxfoundation.org> References: <20221024112959.085534368@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?1747573209743711000?= X-GMAIL-MSGID: =?utf-8?q?1747573209743711000?= 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 c22bd40fc6f0..ded9f16d08eb 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -365,6 +365,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.