[PATCH 2/3] spi: stm32_qspi: Add transfer_one_message() spi callback

Mark Brown broonie at kernel.org
Mon Aug 8 06:29:59 PDT 2022


On Mon, Aug 08, 2022 at 09:40:50AM +0200, patrice.chotard at foss.st.com wrote:

> +	ret = pm_runtime_get_sync(qspi->dev);
> +	if (ret < 0) {
> +		pm_runtime_put_noidle(qspi->dev);
> +		return ret;
> +	}

Use the core runtime PM, there should be no need to open code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20220808/1c4c8d22/attachment.sig>


More information about the linux-arm-kernel mailing list