Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp677240pxb; Tue, 12 Apr 2022 10:29:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmycq97DtOG8vzEf6JUUKTr5sbgKt9arbMQRdNrbMKVsTV+e/gMWzVC2H3bvSpP3WPzIZK X-Received: by 2002:a17:906:3919:b0:6e8:688d:5fd9 with SMTP id f25-20020a170906391900b006e8688d5fd9mr17079048eje.263.1649784581896; Tue, 12 Apr 2022 10:29:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649784581; cv=none; d=google.com; s=arc-20160816; b=Hatl8RcX7EQCkgqmyi+yf85dxzqJQvA6dUUkCc+7kR5aFyZ3M4c0FkD99Gw8lglBCR d0uYHna1F46yckXyIJLz48yfVb3Bn4ZEyGeGhFET8XIqpORAbvQL6hsYgov2jJjyPfVU zt5V0Hw1jwj82BJfiMwky5vZUIS1kV9HUbU8kmB5xzYbFTtu2PlSRPgF8RxQiQX5r57W KkghUrA5a/+GoTmASn4YczwWm/19h0f5HJh/MUapy0oEW0xB1IHjJNLr1cPfldkFiPES xmYdyR1ZftC929BCFhOhJm6WWpFcZwY3vprBEAPoITxLq0QukDhs5knS/m+HBItqsF3E 0/7A== 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 :message-id:date:subject:cc:to:from; bh=N04l1QdUBKlIFxHqqXD0EDL1DfzCI7F3YupsERnc84o=; b=H7fg3cosMtsSlIMOGkXA/ZGdw45AWYrzSq6PNkE5op/+QHnBjq7AgfKSv/NEI7a1xG xBwzSy31DRESz5c56uRUQtYbbYqdO+FrqtoGtB6HtNFM98w3zW1j4kF93UoHOdSDHnMY kMfxjljaapSHQvInd8kzPuvujoXqxOqv3jLRyhG0mwRDUM+YWTdBDbEMa5jGt8KN1Bby OcFXLeK7GHjctcAWx95k8Rf4cB21OFAIjUouJntGZ92sWn0TMBuhwy+GIj2JYNMDUaS0 Vpgg/wLxEqByeukxE1mWeE9GP7JqonLTqmC3mtDf9b2fEXrsAeQjW/VvnLO8nJXupfwe Dl0g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020aa7d450000000b0041d79095740si46955edr.107.2022.04.12.10.29.16; Tue, 12 Apr 2022 10:29:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344798AbiDKJvX (ORCPT + 99 others); Mon, 11 Apr 2022 05:51:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344780AbiDKJvO (ORCPT ); Mon, 11 Apr 2022 05:51:14 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 62EEF41FA8; Mon, 11 Apr 2022 02:48:35 -0700 (PDT) Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 446C1809F; Mon, 11 Apr 2022 09:45:38 +0000 (UTC) From: Tony Lindgren To: Greg Kroah-Hartman Cc: Andy Shevchenko , Jiri Slaby , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-serial@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, "Matwey V . Kornilov" , Steffen Trumtrar , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Subject: [PATCH 1/2] serial: 8250: Fix runtime PM for start_tx() for RS485 Date: Mon, 11 Apr 2022 12:48:04 +0300 Message-Id: <20220411094805.45696-1-tony@atomide.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 The early return from serial8250_start_tx() added by commit e490c9144cfa ("tty: Add software emulated RS485 support for 8250") failed to call serial8250_rpm_put_tx() that normally gets called on __stop_tx(). Likely this is a harmless issue as the RS485 using folks probably are not using runtime PM for the serial ports. Fixes: e490c9144cfa ("tty: Add software emulated RS485 support for 8250") Cc: Matwey V. Kornilov Cc: Steffen Trumtrar Cc: Uwe Kleine-König Signed-off-by: Tony Lindgren --- drivers/tty/serial/8250/8250_port.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c --- a/drivers/tty/serial/8250/8250_port.c +++ b/drivers/tty/serial/8250/8250_port.c @@ -1681,8 +1681,10 @@ static void serial8250_start_tx(struct uart_port *port) return; if (em485 && - em485->active_timer == &em485->start_tx_timer) + em485->active_timer == &em485->start_tx_timer) { + serial8250_rpm_put_tx(up); return; + } if (em485) start_tx_rs485(port); -- 2.35.1