Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2598844pxb; Tue, 21 Sep 2021 03:35:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3ZywievcqVOnv+Z2381xXYjcEdVhkUSX8dp7Or3Dcrn9zmfPRhWs0uR7I+gbSnShARjgs X-Received: by 2002:a50:cfcc:: with SMTP id i12mr24478896edk.133.1632220539030; Tue, 21 Sep 2021 03:35:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632220539; cv=none; d=google.com; s=arc-20160816; b=YEvDfxNW9m7lyA/kUn00RjH9MxXbhJJgObIiJzJE2hIMtdrgadFRN7XuWCViQLphRf JSoqaOAs8Nx/SaC7lTrCxMBveEdDstt6BCeso62SgUB7ESDpwXK+d3jUvuUBqSopUvSx cUBciV0jFdJ6lpG0PujPzYQQnZ23NwPtj1BU56HElT8uvcOi2UL9poLnTxISclYndasN FEzOif2ZIKgr1tsSnCDmyQfZol6bibgS7RG3/0q2F/Uw6sQbGvjSK0ppimhkyGRVMaku i8b4paAj6I6Ct67n9hwClH5+BrmBEqahBsRGpnAGScDcvpvxObKO4HpcdxM1YU6GAPj4 jaQA== 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=OCyzKJLHKHKgfaVPVtM00Nm/LUr6kODHisSOkUjGcgM=; b=Al2XA7NqpehE9P1ClJfi/gfxMShz/tVRHWAXJPsLKiKR1tq47Ww6cqxScPt1DbB/+A DLsFkIY9DYCu52UsvhyIw6Epq+tFEL5/XMgW2Arn57AKk8mQ7ApxVkOZo1j9S7ZgRV6I xu/Drk7gxmbfGdIRDO0cDDUgCXkvVm6gKCoubTkq6Ou/lbAtIr7Bw503e9PXr9TD/Qy0 XQw1UcmXMjJH40eaE/heWz36qxoWIzm+GafeYPYbOVmS/96LVeAcWJ7CrN9T1lA/jMw9 v9Ie84nYjw4AxJiysCme4hJsQjBneLr4bEu3Fhka6oTfT2J4CLgiKuku++plghjk26zE BHww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u28si18696293edi.314.2021.09.21.03.35.15; Tue, 21 Sep 2021 03:35:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231189AbhIUKfX (ORCPT + 99 others); Tue, 21 Sep 2021 06:35:23 -0400 Received: from muru.com ([72.249.23.125]:35502 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231615AbhIUKfW (ORCPT ); Tue, 21 Sep 2021 06:35:22 -0400 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 5BAAE80A8; Tue, 21 Sep 2021 10:34:20 +0000 (UTC) From: Tony Lindgren To: Greg Kroah-Hartman Cc: Andy Shevchenko , Jiri Slaby , Johan Hovold , Vignesh Raghavendra , linux-serial@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/6] Get rid of pm_runtime_irq_safe() for 8250_omap Date: Tue, 21 Sep 2021 13:33:40 +0300 Message-Id: <20210921103346.64824-1-tony@atomide.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Here are patches to get rid of pm_runtime_irq_safe() for the 8250_omap driver. For removing the pm_runtime_irq_safe() usage, serial TX is the last remaining issue. We deal with TX by waking up the port and returning 0 bytes written from write_room() and write() if the port is not available because of PM runtime autoidle. This series also removes the dependency to Andy's pending generic serial layer PM runtime patches, and hopefully makes that work a bit easier :) Regards, Tony Tony Lindgren (6): n_tty: Start making use of -EAGAIN returned from process_output_block() tty: n_gsm: Don't ignore write return value in gsmld_output() serial: core: Add new prep_tx for power management serial: 8250: Implement prep_tx for power management serial: 8250_omap: Require a valid wakeirq for deeper idle states serial: 8250_omap: Drop the use of pm_runtime_irq_safe() Documentation/driver-api/serial/driver.rst | 9 ++++++ drivers/tty/n_gsm.c | 5 ++- drivers/tty/n_tty.c | 8 +++-- drivers/tty/serial/8250/8250_omap.c | 36 +++++++++++++++------- drivers/tty/serial/8250/8250_port.c | 24 +++++++++++++++ drivers/tty/serial/serial_core.c | 23 ++++++++++++++ include/linux/serial_core.h | 1 + 7 files changed, 90 insertions(+), 16 deletions(-) -- 2.33.0