Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp20759rdh; Mon, 30 Oct 2023 12:26:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEIh8j1QyP2mDQlvYa9gSkSUU+qTpEHRI8HaP1XCBCD7t6M4wXhIE3vusSlKDyY9pxp9tFc X-Received: by 2002:a05:6a21:a597:b0:172:918b:3907 with SMTP id gd23-20020a056a21a59700b00172918b3907mr15648733pzc.54.1698693972492; Mon, 30 Oct 2023 12:26:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698693972; cv=none; d=google.com; s=arc-20160816; b=RuI8tx04Q+nhsaYtXdajOXC5q8czADHQhOkU+PNUTRQ6OGyiB7YqcaEvWllY++gPHj s/6ik1nwF9bBefqb2DDGzB8Jcj/K/VAht2SFyrg4LB0Ila0eTA8uC0RwwjOtusN5I1EA 8LQShI2gdtLqX4dKjR1EMXxzyoGU9Kgq0tJAzZcQAiMmnZ5Pa9xBPYXiCfhiny6f+2oI nUseMUF3yetHmK8Am1yWqEY25/hphqfE8J9eH/AZEUC/DbrIO6PND6yZh8mpjKRNPVlP 2mfRqctTiLu3EDN7XeW9TN5aGQouIcemsx/i1gS43T9TZzOJYsFKwj+O7aFpi7ThickG 5Spg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=AjNHyWgBX/JxPj3cYkNRi1t403+NwKYCK1pR6Wv2zvY=; fh=tNpHX8T02ZZAzWa/j3OiCcEsNf0VPQCgA0CD2cUF8l8=; b=dsgraiuJYlYvhG5ErZcNMzVgtQIagdy+3bcsNllLyRJ164Xa3ztUsJhs0FSOGOe1rZ y9uW6VQGOwjMCFtu5Vagi0uIi6jF0bDmM6sdZDaQDkl41NxwHWrteEEdNnn5WIYWxRJu W0FfjmDImiZ9K9jLFxSzatByWuC42EaJrdMIRfKdIAM0ue4FXKrdy0i+wKZ77/CVe0FZ exCKXQ/ARxtRDAepFdVkexNoeYCaaHtZCkrg4dfnRK1V5qoZoNMcFVZvYFUE/KEJAqBj k1PWqRTr9suORHDHnpgVJJoBPiEUB49qZT9nrLkc+JOkjqgAZlpYMdtBgGhxGsXrkit1 P9KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=dhnkcWSO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id l191-20020a6388c8000000b005b8dd557b38si5416135pgd.14.2023.10.30.12.26.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 12:26:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=dhnkcWSO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 410BF8041FC6; Mon, 30 Oct 2023 12:26:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231635AbjJ3TZw (ORCPT + 99 others); Mon, 30 Oct 2023 15:25:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232360AbjJ3SWD (ORCPT ); Mon, 30 Oct 2023 14:22:03 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2ECE1738; Mon, 30 Oct 2023 11:21:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1698690066; x=1699294866; i=rwahl@gmx.de; bh=juI+8xCOhSJyejFjOT2zkvfZkD279hxgL01eRZueXmI=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=dhnkcWSOdzAkTce9+0fTzPMoVmi6fOPzmDE1BgDM9CfeIdKlFEwoYDiRDMvdSIAd 1jGYvTDc9KBE96pWCRY0a7T3+fc39EpTrF3CThFdu3JdIsT6yZULGbU+C+8QCDsIF o7XxFF+JP77rTTL9wk6/4KJntb7PHNUC7qrO7P/+JoYqMd0KIkzFcgV83atE+TdVF RTzHfDWnc8vM7m9Bis45Ljk/Fv//Pk8S1iHGy697NTimNx4B23NNW1xnBs68tqSLh tQiQG4EsQeE0hBRd3rr3CPRiKZKTUdMWN5ITM0yAyqKY0CfPs41JNFk2zpZQPWMAR odAB4uPU58HyIrDU7A== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from rohan.localdomain ([84.156.147.134]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mnpns-1rGbIB3wj4-00pMjn; Mon, 30 Oct 2023 19:21:05 +0100 From: Ronald Wahl To: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Cc: Greg Kroah-Hartman , Vignesh Raghavendra , Ronald Wahl Subject: [PATCH] serial: 8250: 8250_omap: Clear UART_HAS_RHR_IT_DIS bit Date: Mon, 30 Oct 2023 19:20:44 +0100 Message-ID: <20231030182044.14056-1-rwahl@gmx.de> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0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Z6JjcvReC7bs4XGtKRjW/TebAku7zg+5UmVkOOCt/hr+ptdFAcO6cNV8S14kMnMOT6c+ ElpBpMUaCaULV0F9UDr5gqGtn0RufFIRg0lIw6AtP4GNpZON6UPSNc1iX1jVTvwRfEtipSYIT V+R1juwOsHj6nyRwevKAVuhawq1ZJg4cB2SRLuRgbRbnf9i+wqY1H/zFlLSGTFAdWMfgHsrmE vEqBwMWg3GHssQLDt7yrjQuu2Xk= X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 30 Oct 2023 12:26:10 -0700 (PDT) This fixes commit 439c7183e5b9 ("serial: 8250: 8250_omap: Disable RX interrupt after DMA enable") which unfortunately set the UART_HAS_RHR_IT_DIS bit in the UART_OMAP_IER2 register and never cleared it. Signed-off-by: Ronald Wahl =2D-- drivers/tty/serial/8250/8250_omap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/8250/8250_omap.c b/drivers/tty/serial/8250= /8250_omap.c index ca972fd37725..c7ab2963040b 100644 =2D-- a/drivers/tty/serial/8250/8250_omap.c +++ b/drivers/tty/serial/8250/8250_omap.c @@ -914,7 +914,7 @@ static void __dma_rx_do_complete(struct uart_8250_port= *p) if (priv->habit & UART_HAS_RHR_IT_DIS) { reg =3D serial_in(p, UART_OMAP_IER2); reg &=3D ~UART_OMAP_IER2_RHR_IT_DIS; - serial_out(p, UART_OMAP_IER2, UART_OMAP_IER2_RHR_IT_DIS); + serial_out(p, UART_OMAP_IER2, reg); } dmaengine_tx_status(rxchan, cookie, &state); @@ -1060,7 +1060,7 @@ static int omap_8250_rx_dma(struct uart_8250_port *p= ) if (priv->habit & UART_HAS_RHR_IT_DIS) { reg =3D serial_in(p, UART_OMAP_IER2); reg |=3D UART_OMAP_IER2_RHR_IT_DIS; - serial_out(p, UART_OMAP_IER2, UART_OMAP_IER2_RHR_IT_DIS); + serial_out(p, UART_OMAP_IER2, reg); } dma_async_issue_pending(dma->rxchan); =2D- 2.41.0