This is a note to let you know that I've just added the patch titled spi: bcm63xx: use macro DEFINE_SIMPLE_DEV_PM_OPS to the 5.15-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: spi-bcm63xx-use-macro-define_simple_dev_pm_ops.patch and it can be found in the queue-5.15 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From cc5f6fa4f6590e3b9eb8d34302ea43af4a3cfed7 Mon Sep 17 00:00:00 2001 From: Dhruva Gole <d-gole@xxxxxx> Date: Mon, 24 Apr 2023 15:55:46 +0530 Subject: spi: bcm63xx: use macro DEFINE_SIMPLE_DEV_PM_OPS From: Dhruva Gole <d-gole@xxxxxx> commit cc5f6fa4f6590e3b9eb8d34302ea43af4a3cfed7 upstream. Using this macro makes the code more readable. It also inits the members of dev_pm_ops in the following manner without us explicitly needing to: .suspend = bcm63xx_spi_suspend, \ .resume = bcm63xx_spi_resume, \ .freeze = bcm63xx_spi_suspend, \ .thaw = bcm63xx_spi_resume, \ .poweroff = bcm63xx_spi_suspend, \ .restore = bcm63xx_spi_resume Signed-off-by: Dhruva Gole <d-gole@xxxxxx> Link: https://lore.kernel.org/r/20230424102546.1604484-1-d-gole@xxxxxx Signed-off-by: Mark Brown <broonie@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/spi/spi-bcm63xx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/drivers/spi/spi-bcm63xx.c +++ b/drivers/spi/spi-bcm63xx.c @@ -657,9 +657,7 @@ static int bcm63xx_spi_resume(struct dev return 0; } -static const struct dev_pm_ops bcm63xx_spi_pm_ops = { - SET_SYSTEM_SLEEP_PM_OPS(bcm63xx_spi_suspend, bcm63xx_spi_resume) -}; +static DEFINE_SIMPLE_DEV_PM_OPS(bcm63xx_spi_pm_ops, bcm63xx_spi_suspend, bcm63xx_spi_resume); static struct platform_driver bcm63xx_spi_driver = { .driver = { Patches currently in stable-queue which might be from d-gole@xxxxxx are queue-5.15/spi-bcm63xx-use-macro-define_simple_dev_pm_ops.patch queue-5.15/spi-cadence-quadspi-fix-suspend-resume-implementatio.patch queue-5.15/spi-bcm63xx-remove-pm_sleep-based-conditional-compil.patch