Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2737176pxb; Mon, 18 Oct 2021 00:13:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5BgsuHQitF7uiPw452xS7atGTDAPcI2lrAoMp6DO+MRbxUq0W2rBcnyA/+NHce3bJcgyH X-Received: by 2002:a17:902:7e4b:b0:13d:b90d:cdc1 with SMTP id a11-20020a1709027e4b00b0013db90dcdc1mr25983124pln.72.1634541193999; Mon, 18 Oct 2021 00:13:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634541193; cv=none; d=google.com; s=arc-20160816; b=g70HsyNVFLXw+6vc4tdGQAVm5st18A9UgvUd02vBvtt2vQ4X1Z2sGRcrs7CMiZENly m253l0BiHKhifsNl9r+CdgHLpZfCo6A/2qvzkwJEBNE3VzzO9llT/kNK8WjLKpts0jb8 EVutCl/4AZrGb+Xb68IP+3Wo2Uu65lm3wPI1QImhMuBbeG3yyBkjuMFG6zK267N+xH7i NgQldWstYj+v7tlEuVssVvsRaFwX00Ocj1o3qW4E+HCkzmOQT9RKUjuqotS5sizNEHHG 8aNDR/FWqq8nvITT113t547wbyTsuFj0EDrA5OASO/ZbrXF9/TbKj+l1m4uU/j31MzvG CzMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8BiEPGreGN57eU4jgm7zl2rE2G5FqvQA3xBr0kQR8vQ=; b=CZ0BK4EYigR6PQsrqlAuOOVlz3sGKz0rWUglWpiWjPcKm4+OXdosmOA66xqieYTFuj /L4HblwsKEkhi0T0hND7Cq0Ebfy8B+hIDeEl6Su3QW4fcivvGOmfM9KzNRJRc+EleBYQ Jqw3h3VseSd5CjKCcaChzKsQNVbNO94JnHO4HCCssRHKO4ERpnTOgVAKqT4lEZBvc81Z Yt9VSPGf73lRFe6NwVIdIGEV59GpvtUGpkpu1A3V3VvXwiyCI3O7M4gVBSfU8ORFEMCS 1NdWAj+YE/KgxXBYOOHC+pTa1LZm4OXJNHWt/xZ5T9ta+FRkeIQJSPC5JzWnqqp7Ba4N D2aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Izq04WHZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s12si22798978pfk.357.2021.10.18.00.13.00; Mon, 18 Oct 2021 00:13:13 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Izq04WHZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230236AbhJRHOE (ORCPT + 99 others); Mon, 18 Oct 2021 03:14:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:59198 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229708AbhJRHOD (ORCPT ); Mon, 18 Oct 2021 03:14:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8BD2760F46; Mon, 18 Oct 2021 07:11:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634541112; bh=YuHQREwHg5QEL8Elw/QVagN7Yj1O6FCyx4TJPRwDUag=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Izq04WHZKvoaeWxq2Vfxb0cE6R62itvL4cZseXTS7DGlTZiqRff1NGXQnAghJQWZi xy6wCRS7X3XPZL3yIyiz8PXx53bcMFiqIpZTtVYchs7nXdNN4f0Lo2CXkowfTcoycl 8DM6Xb13/5kIegYAbBnKbbW7bKyEoLfhG+rK2nNfEd4CHiu7DjI3Z2eqVgIq/N7cqn OhnrHn+Y7pXv2Qq+4wH+mSUcorP0QArzEp4ka9nd3HktuPv9R25U3glJQ5DHB9SO/H 8h2CvLAratKMk0nZFPhN8XCDbIpto4+uQoJ8u/OfEKYcoHafaNmOuS5uIK/5JxC7kA 05DNF5qv/wGtw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1mcMoA-0000AO-VJ; Mon, 18 Oct 2021 09:11:43 +0200 Date: Mon, 18 Oct 2021 09:11:42 +0200 From: Johan Hovold To: Tony Lindgren Cc: Greg Kroah-Hartman , Andy Shevchenko , Jiri Slaby , Vignesh Raghavendra , linux-serial@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv3 0/4] Get rid of pm_runtime_irq_safe() for 8250_omap Message-ID: References: <20211015112626.35359-1-tony@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211015112626.35359-1-tony@atomide.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 15, 2021 at 02:26:22PM +0300, Tony Lindgren wrote: > Hi, > > Here are v3 patches to get rid of pm_runtime_irq_safe() for the 8250_omap > driver. Based on comments from Andy, Johan and Greg, I improved a bunch of > things as listed below. > > 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. Oh, there's a lot more than TX that needs fixing... And I believe the second sentence no longer applies since v1. > Chganges since v2: > > - Use locking instead of atomic_t as suggested by Greg > > Changes since v1: > > - Separated out line discipline patches, n_tty -EAGAIN change I still > need to retest > > - Changed prep_tx() to more generic wakeup() as also flow control needs it > > - Changed over to using wakeup() with device driver runtime PM instead > of write_room() > > - Added runtime_suspended flag for drivers and generic serial layer PM > to use Johan