Skip to content

spi: spidev_test: Added functionalities

Adrian Remonda linux-spi lkml 2 versions – Applied

Status from this message: Applied, thanks, but please follow the process in SubmittingPatches:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 4 repliesApplied
  2. v14 patches 6 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4Cleaned hexadecimal dumpDocumentation/spi/spidev_test.c+29 -61 reply
2/4Added verbose outputDocumentation/spi/spidev_test.c+9 -11 reply
3/4Added input buffer from the terminalDocumentation/spi/spidev_test.c+60 -161 reply
4/4Moved spidev_tool.c to tools/spiDocumentation/spi/spidev_test.c tools/spi/spidev_test.c+318 -3181 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/4] spi: spidev_test: Added functionalities

This is the corrected version of a patch series that adds functionalities to the spidev_test tool found in Documentation/spi/spidev_test.c.

- Cleaned hexadecimal dump
- Added verbose mode to see the transmitting sequence
- Added input buffer from the terminal. Now it is possible to send string and hexadecimal data as an input parameter:

Example that shows verbose mode and a sending sequence:

  root@microZed:~# ./a.out -D /dev/spidev32766.1 -p "\x23ab1" -v
  spi mode: 0x0
  bits per word: 8
  max speed: 500000 Hz (500 KHz)
  TX | 23 61 62 31 __ __ __ __  | #ab1
  RX | FF FF FF FF __ __ __ __  | ....

Adrian Remonda (4):
Cleaned hexadecimal dump
Added verbose output
Added input buffer from the terminal
Moved spidev_tool.c to tools/spi

 Documentation/spi/spidev_test.c |  243 ------------------------------
 tools/spi/spidev_test.c         |  318 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 318 insertions(+), 243 deletions(-)
 delete mode 100644 Documentation/spi/spidev_test.c
 create mode 100644 tools/spi/spidev_test.c
Signature · 1 line
1.7.10.4