Hello community, here is the log from the commit of package spi-tools for openSUSE:Leap:15.2 checked in at 2020-04-18 18:41:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/spi-tools (Old) and /work/SRC/openSUSE:Leap:15.2/.spi-tools.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "spi-tools" Sat Apr 18 18:41:30 2020 rev:3 rq:795343 version:0.8.4 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/spi-tools/spi-tools.changes 2020-01-15 16:03:42.579934659 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.spi-tools.new.2738/spi-tools.changes 2020-04-18 18:41:31.414016086 +0200 @@ -1,0 +2,7 @@ +Fri Apr 17 08:15:47 UTC 2020 - Martin Pluskal <[email protected]> + +- Update to versions 0.8.4: + * Add -S and -w options description in spi-config + * Various small improvements + +------------------------------------------------------------------- Old: ---- spi-tools-0.8.3.tar.gz New: ---- spi-tools-0.8.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ spi-tools.spec ++++++ --- /var/tmp/diff_new_pack.YGq1oi/_old 2020-04-18 18:41:31.938017192 +0200 +++ /var/tmp/diff_new_pack.YGq1oi/_new 2020-04-18 18:41:31.942017201 +0200 @@ -1,7 +1,7 @@ # # spec file for package spi-tools # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: spi-tools -Version: 0.8.3 +Version: 0.8.4 Release: 0 Summary: A set of SPI tools for Linux License: GPL-2.0-or-later ++++++ spi-tools-0.8.3.tar.gz -> spi-tools-0.8.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spi-tools-0.8.3/README.md new/spi-tools-0.8.4/README.md --- old/spi-tools-0.8.3/README.md 2018-08-10 10:48:04.000000000 +0200 +++ new/spi-tools-0.8.4/README.md 2019-12-09 07:13:24.000000000 +0100 @@ -41,8 +41,8 @@ * `-m --mode=[0-3]` use the selected spi mode. * `-l --lsb={0,1}` LSB first (1) or MSB first (0). * `-b --bits=[7...]` bits per word. -* `-r --spirdy={0,1}` set the SPI_READY spi mode flag. * `-s --speed=<int>` set the speed in Hz. +* `-r --spirdy={0,1}` set the SPI_READY spi mode flag. * `-w --wait` block, keeping the file descriptor open. * `-h --help` help screen. * `-v --version` display the version number. @@ -81,6 +81,7 @@ ### spi-pipe usage #### Options * `-d --device=<dev>` use the given spi-dev character device. +* `-s --speed=<speed>` Maximum SPI clock rate (in Hz). * `-b --blocksize=<int>` transfer block size in byte. * `-n --number=<int>` number of blocks to transfer. * `-h --help` help screen. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spi-tools-0.8.3/configure.ac new/spi-tools-0.8.4/configure.ac --- old/spi-tools-0.8.3/configure.ac 2018-08-10 10:48:04.000000000 +0200 +++ new/spi-tools-0.8.4/configure.ac 2019-12-09 07:13:24.000000000 +0100 @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.60]) -AC_INIT(spi-tools, 0.8.1, Christophe Blaess) +AC_INIT(spi-tools, 0.8.4, Christophe Blaess) AM_INIT_AUTOMAKE([foreign]) AM_MAINTAINER_MODE([disable]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spi-tools-0.8.3/man/spi-config.1 new/spi-tools-0.8.4/man/spi-config.1 --- old/spi-tools-0.8.3/man/spi-config.1 2018-08-10 10:48:04.000000000 +0200 +++ new/spi-tools-0.8.4/man/spi-config.1 2019-12-09 07:13:24.000000000 +0100 @@ -26,6 +26,12 @@ \fB\-s\fR, \fB\-\-speed\fR=\fIFREQUENCY\fR set clock frequency (in Hz). .TP +\fB\-r\fR, \fB\-\-spirdy\fR=\fI{0,1}\fR +set the SPI READY mode flag. +.TP +\fB\-s\fR, \fB\-\-wait +block, keeping the file descriptor open. See \fBWAIT OPTION\fR below. +.TP \fB\-h\fR, \fB\-\-help\fR display the help screen and exit. .TP @@ -45,6 +51,11 @@ .TP mode 3 high iddle level, sample on trailing edge. + +.SS "WAIT OPTION" +On some platforms, the speed is reset to a default value when the file descriptor is closed. +To avoid this, one can use the \fB\-w\fR option that keeps the file descriptor open. See also +last example below. .SH EXAMPLES .TP Get help: @@ -55,6 +66,12 @@ .TP Change clock frequency to 1 MHz: $ \fBspi\-config \-\-device=/dev/spidev0.0 \-\-speed=1000000\fR +.TP +Set a configuration and keep the device open: +$ \fBspi\-config \-\-wait \-\-speed=1000000\fR & PID=$! +.TP +Close device previously open: +$ \fBkill\fP $PID .SH AUTHOR Written by Christophe BLAESS <http://www.blaess.fr/christophe>. .SH "REPORTING BUGS"
