Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1950086rdh; Tue, 26 Sep 2023 08:07:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGcs+EfP9Q6+D1GUaiIFs8e68ZhundtARL5z+FVcNAW6lmveiOPN8VDCfMxvPA5bY2EZtn6 X-Received: by 2002:a17:902:e807:b0:1c3:39f8:3e67 with SMTP id u7-20020a170902e80700b001c339f83e67mr10118677plg.20.1695740838339; Tue, 26 Sep 2023 08:07:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695740838; cv=none; d=google.com; s=arc-20160816; b=mGD+c3XoIJIYTr2PuO8VsAv7VGnQHyGVtCZmGmy+hlY3RhqJVRPtonm4KfRAR0i+po sne4+3bdXruztt8UMe0ojfAtbV5BJaz1hgYSike340NbUQ9OfO3k/LsTixjd0XNX8mA0 YKNqPzfQRukv/pYE/VijWV1XiHsSx8DrGFPU0EmwimkqLVXI67vLF4bb/7/tUKLEJ6aw T/PeyQxYgHmSPFwgMshNHY2HZKrs8VtydPkPGtEQE9cgOjv19YTHy2PNWcFDHvgwKXpi v6zwBOTH1E3MAMod/fpGh6qmnjvZMWqEBCgB75qMawhSU+Rs9nP9acxcoy2rb86VaQuF DTZQ== 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=ppKEBNyfSb3vrig8azgXGcTb9nvcZ6UE6SQOTmP+lAQ=; fh=g6wFdvkYxITgsSiM1BSC+D8V5FrAd2+T5kFaPemcfZc=; b=KsTV/Vs0cns2EI7wq3KJBUAh1s/dQuHyaIXCIzo5eD8DySOB/43nJib8xUos0bVgXB F45pBMWMuNyscj0DwrdB6rjvQLH3JJqrqnyChbnafkXZyZ0PazHKi4i3cEO/4ulHMBVu me9f9ZHMDFH59s+ReuXr9aO/g9QK33P83Ri9esoFRs6oQz8Y4Atb0UHETnP4ueugPVHR 6++CcaBLmBzko4+nma02Mi365Y0987vDJrp+dVLyaWRmvy4NpipoVVzw0REhDPm1ab7u aDmm4mXY8qXo7jjxa3SWKW+gxJ/7HSDyomVuYNXcS/xqs2IlX3ycKTUpaJ+ayKxLaUJL 5NJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UEcECKgk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id kp5-20020a170903280500b001c5bcddc7aesi5690339plb.126.2023.09.26.08.07.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 08:07:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UEcECKgk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 944DE82A1749; Tue, 26 Sep 2023 04:59:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234324AbjIZL7K (ORCPT + 99 others); Tue, 26 Sep 2023 07:59:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230231AbjIZL7J (ORCPT ); Tue, 26 Sep 2023 07:59:09 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F9D7E4; Tue, 26 Sep 2023 04:59:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695729542; x=1727265542; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=X6Ezl3igJyj5iL9SCOzpBy1pkFBQKSIdF3T21PwY86I=; b=UEcECKgkUinxgDpTl4QvB/HsLgo8gI2rcLaxNxj6fCph/TbFEDD0j8Fc Lk1QQsbH1j27vgZKhsaL3/bSo41tKk1uEx37Ur/LFjJuSiSsAP8ji32/1 vJWgetqNGCkmuvlmCE5gKChaclCNJyK8HhrnBXJuO/VLTME/T/4y0/+CZ HYfmHgABxI/YmBP/Q9q2Ajh/hYB7t9rcwq98tSXtrMOvTa8vJiaY0OJXR AATM3x2y+Gz61/vBLij0HJveZiCdErWHQaUCSVVnxnQwQPZc7unwY1SMC JVSO9e7if9t/zUjmRueWsL27Lj0hVx/PlvxXGaEu0jUy/ZaaF37GOU2Ve w==; X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="467831929" X-IronPort-AV: E=Sophos;i="6.03,177,1694761200"; d="scan'208";a="467831929" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 04:59:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="922395903" X-IronPort-AV: E=Sophos;i="6.03,177,1694761200"; d="scan'208";a="922395903" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga005.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 04:58:58 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC0) (envelope-from ) id 1ql6J0-00000000ac3-1qon; Tue, 26 Sep 2023 14:32:42 +0300 Date: Tue, 26 Sep 2023 14:32:42 +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, Udit Kumar , Thomas Richard Subject: Re: [PATCH] serial: 8250_omap: Fix errors with no_console_suspend Message-ID: References: <20230926061319.15140-1-tony@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230926061319.15140-1-tony@atomide.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 morse.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 (morse.vger.email [0.0.0.0]); Tue, 26 Sep 2023 04:59:07 -0700 (PDT) On Tue, Sep 26, 2023 at 09:13:17AM +0300, Tony Lindgren wrote: > We now get errors on system suspend if no_console_suspend is set as > reported by Thomas. The errors started with commit 20a41a62618d ("serial: > 8250_omap: Use force_suspend and resume for system suspend"). > > Let's fix the issue by checking for console_suspend_enabled in the system > suspend and resume path. > > Note that with this fix the checks for console_suspend_enabled in > omap8250_runtime_suspend() become useless. We now keep runtime PM usage > count for an attached kernel console starting with commit bedb404e91bb > ("serial: 8250_port: Don't use power management for kernel console"). ... Btw, how close are we to getting rid the pm_runtime_irq_safe() call? -- With Best Regards, Andy Shevchenko