]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spidev_test: Warn when the mode is not the requested mode
authorDavid Fries <David@fries.net>
Mon, 13 Jun 2022 05:39:41 +0000 (00:39 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 13 Jun 2022 14:56:03 +0000 (15:56 +0100)
commit62b490fbaca066e2ea42f9f79e4a9bbba7b00217
treefa82ddef0e0a7ec9a6d88a98e310bdf988ac0fcb
parent7e928b90c6a344d7e4882d4589a8205e2f6f97c8
spi: spidev_test: Warn when the mode is not the requested mode

Print a warning if the device mode doesn't match the requested mode.
The user doesn't enter the mode in hex so it isn't obvious when
setting the mode succeeds that the mode isn't the requested mode.  The
kernel logs a message, it will be more visible if the test also prints
a warning.  I was testing --quad, which is unsupported, but doesn't
cause the mode request to fail.

Signed-off-by: David Fries <David@Fries.net>
Link: https://lore.kernel.org/r/YqbNnSGtWHe/GG7w@spacedout.fries.net
Signed-off-by: Mark Brown <broonie@kernel.org>
tools/spi/spidev_test.c