From: Pavel Machek <pavel@denx.de>
To: Biju Das <biju.das.jz@bp.renesas.com>
Cc: cip-dev@lists.cip-project.org,
Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>,
Pavel Machek <pavel@denx.de>,
Chris Paterson <chris.paterson2@renesas.com>,
Fabrizio Castro <fabrizio.castro.jz@renesas.com>
Subject: Re: [PATCH 5.10.y-cip 14/23] PM: core: Add new *_PM_OPS macros, deprecate old ones
Date: Sat, 20 May 2023 00:13:00 +0200 [thread overview]
Message-ID: <ZGf0bB94Ugj2sQ36@duo.ucw.cz> (raw)
In-Reply-To: <20230519082058.109760-15-biju.das.jz@bp.renesas.com>
[-- Attachment #1: Type: text/plain, Size: 1766 bytes --]
Hi!
I'll have comments on 19/, but this one is kind of important:
> From: Paul Cercueil <paul@crapouillou.net>
>
> commit 1a3c7bb088266fa2db017be299f91f1c1894c857 upstream.
>
> This commit introduces the following macros:
>
> SYSTEM_SLEEP_PM_OPS()
> LATE_SYSTEM_SLEEP_PM_OPS()
> NOIRQ_SYSTEM_SLEEP_PM_OPS()
> RUNTIME_PM_OPS()
>
> These new macros are very similar to their SET_*_PM_OPS() equivalent.
> They however differ in the fact that the callbacks they set will always
> be seen as referenced by the compiler. This means that the callback
> functions don't need to be wrapped with a #ifdef CONFIG_PM guard, or
> tagged with __maybe_unused, to prevent the compiler from complaining
> about unused static symbols. The compiler will then simply evaluate at
> compile time whether or not these symbols are dead code.
>
> The callbacks that are only useful with CONFIG_PM_SLEEP is enabled, are
> now also wrapped with a new pm_sleep_ptr() macro, which is inspired from
> pm_ptr(). This is needed for drivers that use different callbacks for
> sleep and runtime PM, to handle the case where CONFIG_PM is set and
> CONFIG_PM_SLEEP is not.
>
> This commit also deprecates the following macros:
>
> SIMPLE_DEV_PM_OPS()
> UNIVERSAL_DEV_PM_OPS()
>
> And introduces the following macros:
>
> DEFINE_SIMPLE_DEV_PM_OPS()
> DEFINE_UNIVERSAL_DEV_PM_OPS()
Changing interfaces / deprecating macros is not good thing to do in
-cip kernel. How sure are we this will not cause build failures or
build warnings in unrelated piece of code?
Thanks and best regards,
Pavel
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
next prev parent reply other threads:[~2023-05-19 22:13 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-19 8:20 [PATCH 5.10.y-cip 00/23] Add RZ/V2M I2C and WDT support Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 01/23] clk: renesas: r9a09g011: Add TIM clock and reset entries Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 02/23] arm64: dts: renesas: r9a09g011: Fix unit address format error Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 03/23] arm64: dts: renesas: r9a09g011: Reword ethernet status Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 04/23] arm64: dts: renesas: r9a09g011: Add L2 Cache node Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 05/23] arm64: dts: renesas: r9a09g011: Add system controller node Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 06/23] clk: renesas: r9a09g011: Add WDT clock and reset entries Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 07/23] dt-bindings: watchdog: renesas,wdt: Add r9a09g011 (RZ/V2M) support Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 08/23] watchdog: rzg2l_wdt: Add rzv2m support Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 09/23] watchdog: rzg2l_wdt: Handle TYPE-B reset for RZ/V2M Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 10/23] arm64: dts: renesas: r9a09g011: Add watchdog node Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 11/23] arm64: dts: renesas: rzv2mevk2: Enable watchdog Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 12/23] driver core: add a helper to setup both the of_node and fwnode of a device Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 13/23] PM: core: Redefine pm_ptr() macro Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 14/23] PM: core: Add new *_PM_OPS macros, deprecate old ones Biju Das
2023-05-19 22:13 ` Pavel Machek [this message]
2023-05-20 15:00 ` Biju Das
2023-05-23 13:19 ` Pavel Machek
2023-05-23 14:05 ` Biju Das
2023-05-24 7:43 ` Pavel Machek
2023-05-24 7:46 ` Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 15/23] clk: renesas: r9a09g011: Add IIC clock and reset entries Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 16/23] dt-bindings: i2c: Document RZ/V2M I2C controller Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 17/23] dt-bindings: i2c: renesas,rzv2m: Fix SoC specific string Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 18/23] dt-bindings: i2c: renesas,rzv2m: Change maintainer to Fabrizio Castro Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 19/23] i2c: Add Renesas RZ/V2M controller Biju Das
2023-05-24 7:50 ` Pavel Machek
2023-05-24 12:35 ` Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 20/23] arm64: dts: renesas: r9a09g011: Add i2c nodes Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 21/23] arm64: dts: renesas: r9a09g011: Fix I2C SoC specific strings Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 22/23] arm64: dts: renesas: rzv2m evk: Enable i2c Biju Das
2023-05-19 8:20 ` [PATCH 5.10.y-cip 23/23] arm64: defconfig: Enable additional support for Renesas platforms Biju Das
2023-05-21 18:55 ` [PATCH 5.10.y-cip 00/23] Add RZ/V2M I2C and WDT support Pavel Machek
[not found] ` <17613D7F1DB6F5FD.16124@lists.cip-project.org>
2023-05-22 20:12 ` [cip-dev] " Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZGf0bB94Ugj2sQ36@duo.ucw.cz \
--to=pavel@denx.de \
--cc=biju.das.jz@bp.renesas.com \
--cc=chris.paterson2@renesas.com \
--cc=cip-dev@lists.cip-project.org \
--cc=fabrizio.castro.jz@renesas.com \
--cc=nobuhiro1.iwamatsu@toshiba.co.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox