Re: [PATCH v2 2/8] spi: spidev_test: add compare mode

From: Jonas Rebmann

Date: Wed Sep 16 2026 - 15:31:14 EST


Hi,

On 2026-09-16 19:41, Jonas Rebmann wrote:
[...]
@@ -451,6 +458,9 @@ int main(int argc, char *argv[])
if (input_tx && input_file)
pabort("only one of -p and --input may be selected");
+ if (compare & (SPI_TX_OCTAL | SPI_TX_QUAD | SPI_TX_DUAL))

This is supposed to say
+ if (compare && mode & (SPI_TX_OCTAL | SPI_TX_QUAD | SPI_TX_DUAL))

+ pabort("-c (--compare) conflicts with -2 (--dual), -4 (--quad) or -8 (--octal)");
+
Will fix in v3

--
Pengutronix e.K. | Jonas Rebmann |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |