Re: [PATCH v1 02/11] spi: dw: update NDF while using enhanced spi mode

Mark Brown <[email protected]>
Newsgroups org.kernel.vger.linux-spi,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Wed, Jul 08, 2026 at 10:51:55PM -0700, Changhuang Liang wrote:

> +	else if (cfg->tmode == DW_SPI_CTRLR0_TMOD_TO &&
> +		 dws->caps & DW_SPI_CAP_EMODE)
> +		dw_writel(dws, DW_SPI_CTRLR1, cfg->ndf);

This breaks the build:

/build/stage/linux/drivers/spi/spi-dw-core.c: In function ‘dw_spi_update_config’:
/build/stage/linux/drivers/spi/spi-dw-core.c:352:30: error: ‘DW_SPI_CAP_EMODE’ undeclared (first use in this function); did you mean ‘DW_SPI_CAP_DFS32’?
  352 |                  dws->caps & DW_SPI_CAP_EMODE)
      |                              ^~~~~~~~~~~~~~~~
      |                              DW_SPI_CAP_DFS32
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmpdVQQACgkQJNaLcl1U
h9CnZAgAgxKBK5kYrbDDIM7pVd32wlfYK91V9B2zkN790Nxrf2vFf1QBnrGJFNhK
zIkAW/mJyLh4RxhTxVyhKv1u42BDsWXp89igGLyS2WMEt0GFmLiyspXfgHf+8ioo
182SbQdlgUveATfikH9eIAurUWs0u0QJaNia9M/w0x+28ja9n97sh+EcygaBFEWX
JQ3EPlq8I5lvKwKlgF3ByGi/DB5Nc7edevk2pzKzV4lVzNO5Of/Qk/RXWoL//30V
Q5pwcWlvilfPbHtz+PFcMsqo2CzCt/0UjSIihXIDnJQlsvVIdWo4HLbBdSv78SAI
ebjuhlwrxPguOeFRlknAWPKhrYp+CQ==
=hDEh
-----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.