Re: [PATCH v2 00/12] mtd: Remove #ifdef guards for PM functions

From: Miquel Raynal

Date: Tue Nov 17 2026 - 08:38:07 EST


On Tue, 17 Nov 2026 10:37:38 +0100, Paul Cercueil wrote:
> This is the v2 of my patchset that updates the MTD core / NAND core as
> well as several drivers to get rid of the #ifdef CONFIG_PM guards.
>
> Instead, the code that depends on PM or runtime PM will be
> garbage-collected by the compiler automatically if this config option is
> not set.
>
> [...]

Applied to mtd/next, thanks!

[01/12] mtd: Remove #ifdef guards for PM related functions
commit: 7fb3ea311f1da6a6ef13ed4b4dab7fe74b82f161
[02/12] mtd: rawnand: vf610: Remove #ifdef guards for PM related functions
commit: ab12847196fdcac7e72e46c5366036c024b0fd8f
[03/12] mtd: spear_smi: Remove #ifdef guards for PM related functions
commit: 2a37924f5c8152c25bb485ca8419317e086a19aa
[04/12] mtd: physmap: Remove #ifdef guards around shutdown callback
commit: a54ceff6976e239666f8f19ffbbeea50ae5ca3e0
[05/12] mtd: maps: pxa2xx: Remove #ifdef guards around shutdown callback
commit: 397d22308379b6445890811a107dc950d4fbec05
[06/12] mtd: nand: mtk: Remove #ifdef guards for PM related functions
commit: 5d1883f69df537e6ed34bba098cf49f5595dfeb6
[07/12] mtd: rawnand: fsmc: Remove #ifdef guards for PM related functions
commit: 81f7cbdb040e768bed8db543221a214a5df2042e
[08/12] mtd: rawnand: hisi504: Remove #ifdef guards for PM related functions
commit: 76ad0034e3013d8a03a79e6820e97e9537b769d8
[09/12] mtd: rawnand: mtk: Remove #ifdef guards for PM related functions
commit: 41e59826fa387b4a151cc97c2907e0d71aa6bd64
[10/12] mtd: rawnand: omap_elm: Remove #ifdef guards for PM related functions
commit: ce7455c8b2fd693cadb65078d625c7eac984ea1b
[11/12] mtd: rawnand: r852: Remove #ifdef guards for PM related functions
commit: 6dbc7c326713261812531134085c7a3d23abf3be
[12/12] mtd: rawnand: txx9ndfmc: Remove #ifdef guards for PM related functions
commit: dc88e180ed485a7c8c97e06c6f7e0ef896992290

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl