Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp338006rdb; Thu, 5 Oct 2023 07:27:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFIoxSZU/+O98DsejkbJyoezepSwJGv0VxJkeY29mIe1D4nJH71jJYgr7LKm0qIqa09OFyD X-Received: by 2002:a9d:7c99:0:b0:6b9:bf1e:c141 with SMTP id q25-20020a9d7c99000000b006b9bf1ec141mr5876460otn.23.1696516044043; Thu, 05 Oct 2023 07:27:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696516044; cv=none; d=google.com; s=arc-20160816; b=cHd3aZMVnGFJzZF4iOnh4RDSTfME3pfjzRjOqRJQY1ceOAi+z7zS9r3/paqxOBsi/9 eDqljpjbCEns1gflicBSkK3r+FCxCWNOiLoo7knxz5nPIP6qN/cuGRQ5FT6xNXY676E+ hTkX7Mxlovbb5xtMG3dw+yKOEfcFyrVNlCS/mYAEjxAY6P8gRRSysYyWoRTkFP8Kl2aP sEAHfYyyILHg77IfGdnCCMnULl3DPyu1ZPuyhY6CiM4GB99SnR68PKhebTg9cgWfv52b ClMSFhFyhwLT2om6GWwyqm0GHhjhFpRi44w5Ufao9CQKmIbnl5xlVsPK1441cM4CFrzg F/Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=2Oxind3JeGe9Keoa1Anq/m8EdN6CSM6G7s/121VDE88=; fh=+pEOKK4xluj0DFGnswAzUpS/5uIsoOZyK/cWca0wJEs=; b=ycsPjclngDr+DqMinK+Q1CE1xAwMcY7ZJ8F/3HBo7rvIGhB9YB1DHO+wpXQbcwgeOK sQF2vAZuQW2+4TTv2Dq5qBNo1oeVdoQvPWxdg1jMlrVCQ9wxs1lWM1wfPKGo93C31+SJ vfQNitZeEiW2Jr2hbvyWMQFGj2Bp838KauuUJxcHKLSI4LcO6c2wav+MycgXoDp9AcFZ dYp9qLgHlGCexu/CkFi3GJ063KxXTvGj8YQEcA378+DVMh9WETG2Amg9I1AKlr1shQsC rMmE9Ow/pL/me1pA2+4dSnDIG1EJolMcmD7b6J/n2YpB1UFqRzx8zJWw9mBi6xWxAdS3 fDHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=K4RNaZ1F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id z4-20020a633304000000b00585a16c102dsi1527916pgz.39.2023.10.05.07.27.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:27:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=K4RNaZ1F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id EECDF82F3066; Thu, 5 Oct 2023 07:27:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233905AbjJEOZK (ORCPT + 99 others); Thu, 5 Oct 2023 10:25:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233876AbjJEOWv (ORCPT ); Thu, 5 Oct 2023 10:22:51 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DFD927B3F; Thu, 5 Oct 2023 06:44:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696513470; x=1728049470; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=FKCtbN7+J1DFK4Wis91OM2jfqlmQHuZrK9CqwaCbtBg=; b=K4RNaZ1Fl3Yxi4bjM6GMuqaoaNJMQGhR0h0ruSSuib0ySaKpUTArK/PE wZCLu/bKPAuplja7F5qDgvuoGG1v2rd0YKNGHC57MUSsDZA+gjt0CKcrl 18zdhbcMO6sh2o17QT/99EKnTY7Q4ZblWYzMvL1LDjLJdkkZQDMyjAJyV 6e8ZOmE2PBIotJiXB28O0fd6kOPskPVsNn+UTvWtlcR1fevHWsN7aovHe tfVaDZDswNqk2IMIa4yOtYqG85BAXI+ecNXq7A5e5xZjymIXFzet59e6E Ig/xW2/ZliIvjjqgjFTgbQQUNzaTN7pvc4CXuzoJIhGAZTAKh0fOjB324 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10853"; a="387321291" X-IronPort-AV: E=Sophos;i="6.03,202,1694761200"; d="scan'208";a="387321291" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2023 02:03:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10853"; a="701591191" X-IronPort-AV: E=Sophos;i="6.03,202,1694761200"; d="scan'208";a="701591191" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga003.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2023 02:03:33 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC1) (envelope-from ) id 1qoKGY-00000002yxu-1DYA; Thu, 05 Oct 2023 12:03:30 +0300 Date: Thu, 5 Oct 2023 12:03:30 +0300 From: Andy Shevchenko To: Tony Lindgren Cc: Greg Kroah-Hartman , Jiri Slaby , Dhruva Gole , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , John Ogness , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH v2 1/1] serial: 8250_omap: Drop pm_runtime_irq_safe() Message-ID: References: <20231004062650.64487-1-tony@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231004062650.64487-1-tony@atomide.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:27:06 -0700 (PDT) On Wed, Oct 04, 2023 at 09:26:48AM +0300, Tony Lindgren wrote: > Let's drop the use of pm_runtime_irq_safe() for 8250_omap. The use of > pm_runtime_irq_safe() is not nice as it takes a permanent usage count on > the parent device. > > We can finally drop pm_runtime_irq_safe() safely as the kernel now knows > when the uart port tx is active. This changed with commit 84a9582fd203 > ("serial: core: Start managing serial controllers to enable runtime PM"). > > For serial port rx, we already use Linux generic wakeirqs for 8250_omap. > > To drop pm_runtime_irq_safe(), we need to add handling for shallow idle > state where the port hardware may already be awake and an IO interrupt > happens. We also need to replace the serial8250_rpm sync calls in the > interrupt handlers with async runtime PM calls. > > Note that omap8250_irq() calls omap_8250_dma_handle_irq(), so we don't > need separate runtime PM calls in omap_8250_dma_handle_irq(). > > While at it, let's also add the missing line break to the end of > omap8250_runtime_resume() to group the calls. Yoo-hoo! A few years only to get to the point :-) Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko