Re: [PATCH] spi: loongson: pm: add .freeze .poweroff .thaw .restore

Mark Brown <[email protected]>
Newsgroups org.kernel.vger.linux-spi
Message-ID <[email protected]>
On Tue, Aug 18, 2026 at 06:42:41PM +0800, Li Jun wrote:

>  const struct dev_pm_ops loongson_spi_dev_pm_ops = {
>  	.suspend = loongson_spi_suspend,
> +	.freeze = loongson_spi_suspend,
> +	.poweroff = loongson_spi_suspend,
>  	.resume = loongson_spi_resume,
> +	.thaw = loongson_spi_resume,
> +	.restore = loongson_spi_resume,
>  };
>  EXPORT_SYMBOL_NS_GPL(loongson_spi_dev_pm_ops, "SPI_LOONGSON_CORE");

This could be done using SIMPLE_DEV_PM_OPS().
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmqEsB0ACgkQJNaLcl1U
h9B1Ygf+J9HoM+bijPSjx2essCAGbeff+qtkbUbjK7+4CMRpIYl7hpO2/leLNzTC
CxvN5TshSlsGwZnl1qG7YM2cZZmkTr/TTdUDt2Rupav7I2/DxWJ7DqWrofIw5glI
Qu1c53E+vOCMi5NIX67BjYh8yhC2GehpeHfM/mO3hoFCNhy//svspWiA/uZcMs2T
AFhxR+wR0q1DtQxxiROoIo1vCucCZ1HqWlQLDTYgUpRYqhJITuKP2EuQPxzOp2Sb
vmhPu5ZxTzZVV84OAA1IK6UQCtrI9lKS2jj5OcQ3Njw4bDAvqrWPrpQWUuiixrg8
m4FBgyynIUIuZ7VlnxEoojQKbgailg==
=3s5P
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.