[PATCH] spi/fsl-espi: Add Power Management support for eSPI controller

Mark Brown broonie at kernel.org
Thu Dec 12 00:39:48 EST 2013


On Wed, Dec 11, 2013 at 04:11:51PM +0800, Hou Zhiqiang wrote:

> +#ifdef CONFIG_PM
> +static int of_fsl_espi_suspend(struct device *dev, pm_message_t state)

This should be CONFIG_PM_SLEEP.  I'd also expect to see a call to
spi_master_suspend() here (and similarly for resume) - it won't do
anything yet but it'd better for completeness in case we add extra
behaviour and looking at the driver it ought to be converted to
transfer_one_message anyway.

> +#ifdef CONFIG_PM
> +		.suspend	= of_fsl_espi_suspend,
> +		.resume		= of_fsl_espi_resume,
> +#endif

SET_SYSTEM_SLEEP_PM_OPS().
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20131211/b5eab07e/attachment.sig>


More information about the Linuxppc-dev mailing list