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

Mark Brown broonie at kernel.org
Wed Aug 10 06:06:46 PDT 2022


On Wed, Aug 10, 2022 at 11:32:14AM +0200, patrice.chotard at foss.st.com wrote:

> Signed-off-by: Patrice Chotard <patrice.chotard at foss.st.com>
> 
> v2: _ use parallel-memories property
>     _ set auto_runtime_pm to true
>     _ remove pm_runtime_*() usage in transfer_one_message() callback
> ---

The changelog should come after the --- so that it gets automatically
stripped out by tooling.  No need to resend just for this.

> +	/*
> +	 * Dual flash mode is only enable in case "parallel-memories" and
> +	 * "cs-gpios" properties are found in DT
> +	 */
> +	if (of_property_read_bool(dev->of_node, "parallel-memories") &&
> +	    of_gpio_named_count(dev->of_node, "cs-gpios")) {
> +		qspi->cr_reg = CR_DFM;
> +		dev_dbg(dev, "Dual flash mode enable");
> +	}

Do we need to add something to the DT bindings to indicate that
parallel-memories is valid?
-------------- 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/20220810/b2136bf3/attachment.sig>


More information about the linux-arm-kernel mailing list