Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp991404lqd; Thu, 25 Apr 2024 02:50:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUgjaBHolUN0QOS6RQ/HZTCRVU46y+aGtHvCyfOP7ollYUfihWIk8/c4MzOdmDXYisDp0jMRp5VgAK7s+Gf33Ce/kv0OG9Dp6EYUlJUlA== X-Google-Smtp-Source: AGHT+IE2ChByKyTAhi7rmDoYkMGqCubhNryfLhrmmrP7RxMg6lHrapGIq81ABk8WMed1BP4288wH X-Received: by 2002:ac8:5e0b:0:b0:43a:4bb6:ed51 with SMTP id h11-20020ac85e0b000000b0043a4bb6ed51mr999740qtx.11.1714038649949; Thu, 25 Apr 2024 02:50:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714038649; cv=pass; d=google.com; s=arc-20160816; b=I0v2PWVKue7AmDZ5IWhRj4Ys6YNi4nho2zvpTfqors/0uSYnaINMEhZmcjVoap0zb/ D3bLmevLb2/mhNAtPeDdQCAT5AMrUWFfgjCsMxoN6dIKMZCl5gT8VKkIVOoBW/CRSei+ nV3jOTgRDMBn2YB4yp2cEKrpChzdMXJCBnAxLjwbC2qTs0tj/mXnEX9h2ZNXp4ca2byI SE9y9xBqK8bF5s+IZimmwhzTowl4RUE5f6jaB9emFOI7E6Ih73H0069J+FN0ecCtemLs YQSfpFAusQ1WUxeJuYSMoJnlp5eik4+jL/UKcLArN9F0vPwMRwF09L0vzpP1DDgojrcn VY5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=hSUkc/IQR2TVtAvTJCjlkRuf92kBa51uvismwVfo4Lc=; fh=/10Cr4vnBwJcaIT+zZrhwLAxBgU70DJzcCDAPleXPbU=; b=K9Kr2MpcKUfHC3gU/RN3Va1BYS98bkzGr4uNevP8X2HBX36DxmzoWBaIiVunrmU6K/ p2ZAQYoN6OhH5kzJWvHEIIeqxVZqHlmXm5/A326AwZo6CxgQHqoARru749U7+UmXCv5J c5bQfd+359kcrU7dknDf0fNK2o7lZ0/4W8iKOLy6rrBTZkObFyl3e4JlXSXKEC8g8sNn e5QruYUXV6VJxV6C+efQki2yHw67ghuTjs0R1b1BItG3oiPSyrC4X9JYTJSd8fHPa2YT XiNjeJjt+yd5dOVqfEH8kAEr6CtTmhxxeoXpo+538isKLVj90eGsSt5gGgu9tGLAIxBP lBNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=P+5+CW2w; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-158330-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158330-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p11-20020a05622a048b00b004378c11f20csi17251459qtx.229.2024.04.25.02.50.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 02:50:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158330-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=P+5+CW2w; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-158330-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158330-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AC3531C245AB for ; Thu, 25 Apr 2024 09:50:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5910885954; Thu, 25 Apr 2024 09:50:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="P+5+CW2w" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EAF7584FA9; Thu, 25 Apr 2024 09:50:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714038625; cv=none; b=Aeznhcz3HEq5jx0GRzvbsZHI0tT5FBvXTxISRTZ51yD20te/u1aiOwe8/brVlFTdDPhQ5Y0l5V1qqj/JoZ/O4u0YJy1M2tTvUOFm5h7v38kCNuGkgw4AFkU2Y5BHDcb70yDruebXMoMSulj0zqjoxt8HUmFjnXM975cvr5Up/4A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714038625; c=relaxed/simple; bh=uC4kA70xl93pLuFD/UoEPvIqfy9CGMqdBnnLhXJ/cBo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=m0RrrI19gRVwFEpxYvxqueOhkz1wUcivqBgg18MRUiCEaIGjTBJXZsmN2LmnV+IdkY5gj3kkZYr2dvRFyED63gwfliuBAStpbuX3PRVq2LW25BL/dbUE1eBsOMaw/U5Oy8sUHA8oMRJ1zLeBT9UQTdPt+gCwa1EgBD4yR8SXDwo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=P+5+CW2w; arc=none smtp.client-ip=198.175.65.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714038625; x=1745574625; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=uC4kA70xl93pLuFD/UoEPvIqfy9CGMqdBnnLhXJ/cBo=; b=P+5+CW2wjWoxriDmMXkV0lP7dNpw1xrmOiVYlrV1lioC8DqWVM6RJXS5 yaq8r/ufyDpyz7oF/p5QAp69Wuj1LjpaW8oFM77v6Dz8OKUqezHTaWy2/ HxuoNievGncRYftJrwGq9ez82Ir2CzaqG8f59/yej7+hdcAM2wNtCgHtj aVj82Pzxlj4lsw/ew4p9XQLei6HfLvySvldckUYBQOTaP+riB9k2ra145 WWDseSA2bCwdW1uNNcFxtr26cWIMcAR28yTLUOXpPvO55xTcT0gGnyUGk Ycpz395fxtobQ8p0jIiQhjHQxD+/AORIMKAD6MD4+8zffOXZusvl4HWSf w==; X-CSE-ConnectionGUID: GwBduIHkQ1aIAq7rPCE8FQ== X-CSE-MsgGUID: 0LCnd31GQJePku8meyYfpQ== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="13546863" X-IronPort-AV: E=Sophos;i="6.07,229,1708416000"; d="scan'208";a="13546863" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2024 02:50:24 -0700 X-CSE-ConnectionGUID: BWhnmIHyQm+oMO9OMsFKcw== X-CSE-MsgGUID: tnRuId7DRZe98pwRC8vrCw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,229,1708416000"; d="scan'208";a="29644225" Received: from smile.fi.intel.com ([10.237.72.54]) by orviesa003.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2024 02:50:20 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rzvk8-00000000x7w-3GXg; Thu, 25 Apr 2024 12:50:16 +0300 Date: Thu, 25 Apr 2024 12:50:16 +0300 From: Andy Shevchenko To: Claudiu Cc: gregkh@linuxfoundation.org, jirislaby@kernel.org, tony@atomide.com, l.sanfilippo@kunbus.com, tglx@linutronix.de, geert+renesas@glider.be, ulf.hansson@linaro.org, peng.fan@nxp.com, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-pm@vger.kernel.org, Claudiu Beznea , Geert Uytterhoeven Subject: Re: [RFT PATCH v2] serial: core: Call device_set_awake_path() for console port Message-ID: References: <20240425070936.547100-1-claudiu.beznea.uj@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240425070936.547100-1-claudiu.beznea.uj@bp.renesas.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Thu, Apr 25, 2024 at 10:09:36AM +0300, Claudiu wrote: > From: Claudiu Beznea > > In case the UART port is used as a console, no_console_suspend is > available in bootargs and UART port is part of a software-controlled power > domain we need to call device_set_awake_path(). This lets the power > domain core code know that this domain should not be powered off > during system suspend. Otherwise, the UART port power domain is turned off, > nothing is printed while suspending and the suspend/resume process is > blocked. This was detected on the Renesas RZ/G3S SoC while adding support > for power domains. > > Based on code investigation, this issue is present on other SoCs (e.g., > Renesas R-Mobile A1 [1], IMX8QXP [2]) and different SoCs have particular > implementation to handle it. Due to this the patch added the call of > device_set_awake_path() in uart_suspend_port() instead of having it in > the platform specific UART driver. > [1] https://elixir.bootlin.com/linux/v6.9-rc5/source/drivers/pmdomain/renesas/rmobile-sysc.c#L116 > [2] https://elixir.bootlin.com/linux/v6.9-rc5/source/drivers/pmdomain/imx/scu-pd.c#L357 No need to have the HTTP links into the kernel sources, you may simply refer to the files in the source tree. [1] drivers/pmdomain/renesas/rmobile-sysc.c:L116 [2] drivers/pmdomain/imx/scu-pd.c:L357 > Suggested-by: Ulf Hansson > Suggested-by: Geert Uytterhoeven > Signed-off-by: Claudiu Beznea The rest makes sense to me as we also have an internal hack to achieve something similar in the case of Intel LPSS (8250_dw). But I like Tony to comment on this, from my perspective it's good: Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko