linux/drivers/mtd/nand
Maarten Zanders 1da032da3f mtd: nand: raw: gpmi: fix clocks when CONFIG_PM=N
commit 1001cc1171 upstream.

Commit f04ced6d54 ("mtd: nand: raw: gpmi: improve power management
handling") moved all clock handling into PM callbacks. With CONFIG_PM
disabled, those callbacks are missing, leaving the driver unusable.

Add clock init/teardown for !CONFIG_PM builds to restore basic operation.
Keeping the driver working without requiring CONFIG_PM is preferred over
adding a Kconfig dependency.

Fixes: f04ced6d54 ("mtd: nand: raw: gpmi: improve power management handling")
Signed-off-by: Maarten Zanders <maarten@zanders.be>
Cc: stable@vger.kernel.org
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-10-19 16:37:31 +02:00
..
onenand mtd: onenand: Fix uninitialized retlen in do_otp_read() 2024-12-05 11:11:00 +01:00
raw mtd: nand: raw: gpmi: fix clocks when CONFIG_PM=N 2025-10-19 16:37:31 +02:00
spi mtd: spinand: winbond: Fix oob_layout for W25N01JW 2025-09-05 17:03:44 +02:00
bbt.c mtd: nand: bbt: Use the bitmap API to allocate bitmaps 2022-09-20 10:06:58 +02:00
core.c mtd: nand: drop EXPORT_SYMBOL_GPL for nanddev_erase() 2022-11-07 17:17:20 +01:00
ecc-mtk.c mtd: nand: ecc-mtk: Add ECC support fot MT7986 IC 2023-02-03 19:09:44 +01:00
ecc-mxic.c mtd: nand: ecc-mxic: Fix use of uninitialized variable ret 2025-04-29 11:05:35 +02:00
ecc-sw-bch.c mtd: spinand: Constify struct nand_ecc_engine_ops 2024-10-21 11:55:50 +02:00
ecc-sw-hamming.c mtd: spinand: Constify struct nand_ecc_engine_ops 2024-10-21 11:55:50 +02:00
ecc.c mtd: Explicitly include correct DT includes 2023-07-27 17:03:41 +02:00
Kconfig mtd: nand: MTD_NAND_ECC_MEDIATEK should depend on ARCH_MEDIATEK 2022-05-12 16:43:04 +02:00
Makefile mtd: nand: Drop explicit test for built-in CONFIG_SPI_QPIC_SNAND 2025-04-07 09:01:58 +02:00
qpic_common.c mtd: nand: qpic_common: prevent out of bounds access of BAM arrays 2025-06-29 22:10:47 +01:00