- Sep 25, 2020
-
-
Bartosz Golaszewski authored
Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
Bartosz Golaszewski authored
Add release notes for libgpiod v1.5.3. Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- Sep 14, 2020
-
-
Kent Gibson authored
Only read the requested number of events from the kernel rather than reading up to 16 and quietly discarding any surplus. The previous behavour is particularly bad for reading single events as userspace must read the events as quickly as they arrive, effectively negating the presence of the kernel event kfifo. Fixes: 44921ecc ("core: provide functions for reading multiple line events at once") Signed-off-by:
Kent Gibson <warthog618@gmail.com> Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
Kent Gibson authored
Use appropriate C++ chrono library functions to convert the event timestamp from a struct timespec to ::std::chrono::nanoseconds to ensure correct conversion independent of platform. Fixes: 8078a4a2 ("bindings: implement C++ bindings") Reported-by:
Florian Evers <florian-evers@gmx.de> Signed-off-by:
Kent Gibson <warthog618@gmail.com> Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- Aug 25, 2020
-
-
Bartosz Golaszewski authored
Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
Bartosz Golaszewski authored
Add release notes for libgpiod v1.5.2. Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- Jun 17, 2020
-
-
Kent Gibson authored
Extend gpiod_line_get_value_bulk so that it works for bulks of lineevents, not only linehandles. Reported-by:
Gerrit Wyen <ml@ionscale.com> Signed-off-by:
Kent Gibson <warthog618@gmail.com> Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- May 27, 2020
-
-
Kent Gibson authored
Remove asserts that are a hangover from debugging test cases. Signed-off-by:
Kent Gibson <warthog618@gmail.com> Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- Apr 14, 2020
-
-
Bartosz Golaszewski authored
Commit f8850206e160 ("gpio: Switch timestamps to ktime_get_ns()") in the linux kernel (released in v5.7-rc1) changed the clock used to generate line events from real-time to monotonic. This has the effect of making the timestamp values much smaller and it uncovered a bug in regex patterns used to verify gpiomon output: they don't expect there to be any whitespace characters in the timestamp part of the line. Fix it by accepting any number of whitespace chars between the opening '[' and the first digit of the timestamp. Fixes: 9c5a6f31 ("tests: use GLib for library test cases and bats for gpio-tools") Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- Mar 31, 2020
-
-
Bartosz Golaszewski authored
Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
Bartosz Golaszewski authored
Add release notes for libgpiod v1.5.1. Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- Feb 07, 2020
-
-
Andy Shevchenko authored
User may ask device helper tool, for example, udev, to create a specific symbolic link to a device node. GPIO chip character device node is not exceptional. However, libgpiod in the commit d9b1c1f1 ("core: harden gpiod_chip_open()") went way too far in the hardening device node check. Relax that hardening for symbolic link to fix the regression. Reproducer: % gpioinfo /dev/gpiochip5 gpiochip5 - 16 lines: line 0: "MUX33_DIR" "uart1-rx-oe" output active-high [used] ... % ln -sf /dev/gpiochip5 /dev/MyGPIO_5 % gpioinfo /dev/MyGPIO_5 gpioinfo: looking up chip /dev/MyGPIO_5: Inappropriate ioctl for device Link: https://stackoverflow.com/questions/60057494/gpio-issue-with-sym-link Fixes: d9b1c1f1 ("core: harden gpiod_chip_open()") Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- Jan 27, 2020
-
-
Bartosz Golaszewski authored
Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- Jan 25, 2020
-
-
Bartosz Golaszewski authored
The project now depends on v5.5 kernel headers to build. Drop the reference to v4.8 headers and instead refer readers to the contents of configure.ac for the exact required version. Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- Jan 15, 2020
-
-
Bartosz Golaszewski authored
This helper library too has a separate ABI version, but we missed it when incrementing other ABI numbers for v1.5-rc1. Increment the revision only as no new interfaces were added or old ones removed. Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- Jan 14, 2020
-
-
Bartosz Golaszewski authored
Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- Jan 06, 2020
-
-
Bartosz Golaszewski authored
The test-suite python scripts is added to bin_SCRIPTS in Makefile.am. This means it's not distributed by default. Add it to dist_bin_SCRIPTS and make it part of the distribution tarball. Fixes: 45269660 ("bindings: python: use unittest to implement a proper test-suite") Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
Bartosz Golaszewski authored
Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
Bartosz Golaszewski authored
Add release notes for libgpiod v1.5. Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
Bartosz Golaszewski authored
Improve the readability of help messages in all tools by adding a newline between the usage and summary sections. Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- Jan 03, 2020
-
-
Bartosz Golaszewski authored
Cleanup the main .gitignore: remove explicit filenames which are already implicitly ignored with pattern entries and move all the specific entries into appropriate sub-directories. Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- Jan 02, 2020
-
-
Bartosz Golaszewski authored
Extend the test coverage of Python bindings with tests of reading of multiple line events at once. Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
Bartosz Golaszewski authored
Add a new method to the Line class allowing to read up to 16 line events at once. Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
Bartosz Golaszewski authored
Extend the test coverage of C++ bindings with tests of reading of multiple line events at once. Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
Bartosz Golaszewski authored
Add a new method to gpiod::line class allowing to read up to 16 line events at once. Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- Dec 30, 2019
-
-
Bartosz Golaszewski authored
Add test cases for new helpers allowing users to read multiple events at once. Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- Dec 18, 2019
-
-
Bartosz Golaszewski authored
The kernel allows us to read multiple (up to 16) line events with a single read() call, but up to this point libgpiod only supported reading one event at a time. Add two new functions that allow users to read more events at the same time. Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- Dec 17, 2019
-
-
Bartosz Golaszewski authored
We can drop the redundant line state check if we directly call gpiod_line_event_get_fd() from gpiod_line_event_read(). As opposed to line_get_fd() it checks if the line was requested for events. Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- Dec 16, 2019
-
-
Bartosz Golaszewski authored
When '--host' option is passed to configure, the name of the generated libtool script will be prefixed with the value used as argument for '--host'. Add a pattern for prefixed 'libtool' scripts to .gitignore. Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- Dec 14, 2019
-
-
Bartosz Golaszewski authored
We're now checking for linux/version.h on every build - not only when building tests. Drop the redundant check. Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- Dec 12, 2019
-
-
Bartosz Golaszewski authored
Original libgpiod relied on linux headers v4.8 to build but it was only documented in README and not enforced at build-time. We now support features first available in linux v5.5. Add a check to configure.ac that verifies if recent enough kernel headers are available - otherwise we'd fail only when trying to build the library. Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- Dec 11, 2019
-
-
Joel Savitz authored
When Line.request() is called without the required 'consumer=value' argument, the module attempts access an empty dictionary object resulting in a segfault. This patch avoids such access when the dictionary is empty and maintains the current design where the LineBulk object is responsible for validation of arguments. Signed-off-by:
Joel Savitz <jsavitz@redhat.com> Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
- Dec 10, 2019
-
-
Kent Gibson authored
Change the vals in gpiod_Line_set_value from a tuple of tuples to just a tuple. This brings it into line with other vals in the module such as gpiod_Line_set_config and gpiod_Line_set_direction_output. The previous usage made the vals equivalent to an args (a tuple of arguments equivalent to argc,argv in C), as per gpiod_Line_set_flags. Renaming vals to args in gpiod_Line_set_value was not an option as there is already an args parameter. Signed-off-by:
Kent Gibson <warthog618@gmail.com> Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
Kent Gibson authored
Minor formatting fix to make long text descriptions of params wrap under the text, not under the param name. Signed-off-by:
Kent Gibson <warthog618@gmail.com> Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
Kent Gibson authored
The handling of NULL values by gpiod_line_set_value_bulk has been changed to interpret NULL as low values for all lines. This patch updates the documentation of the function to describe that. Signed-off-by:
Kent Gibson <warthog618@gmail.com> Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
Kent Gibson authored
Add tests for drive flags in gpioset. Signed-off-by:
Kent Gibson <warthog618@gmail.com> Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
Kent Gibson authored
Add support for drive flags to gpioset so that line drive flags (open-drain,open-source) can be set from the command line. Signed-off-by:
Kent Gibson <warthog618@gmail.com> Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
Kent Gibson authored
Add tests for bias flags to applicable tools - gpioget, gpioset, and gpiomon. Signed-off-by:
Kent Gibson <warthog618@gmail.com> Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
Kent Gibson authored
Add support for bias flags to applicable tools - gpioget, gpioset, and gpiomon. Signed-off-by:
Kent Gibson <warthog618@gmail.com> Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-
Kent Gibson authored
Extend test coverage over set_config, set_flags, set_direction_input, and set_direction_output methods. Signed-off-by:
Kent Gibson <warthog618@gmail.com> Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com>
-