Menu

#306 libgpiod API changes since 1.6.3

0.10.0
new
libgpiod (1)
linuxgpiod
2024-03-24
2021-05-28
No

New API changes to libgpiod are breaking calls to gpiod_chip_close gpiod_chip_open_by_number. Assigning to Antonio as it looks like they've done the most work on the linuxgpiod driver.

upstream commits:
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/commit/?id=eb690e46efd09cd9a758ed1b19f99601f7b5de8a
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/commit/?id=56cf1ad3ec0797be63e3c1fdc2933a237ba138c1

Discussion

  • Antonio Borneo

    Antonio Borneo - 2021-11-23

    Michael, thanks for pointing it.
    It is part of the API change for future libgpiod v2 but, after check the email exchange at the link below, I'm not going to spend time on it right now
    https://lore.kernel.org/linux-gpio/CAMRc=McOuJkAFg02+HWDtTxOYm+5io994G8AafnxY32eJJi4+g@mail.gmail.com/
    The new API is not fixed yet and "It's not yet stable and is about to change again soon."
    "libgpiod v2 is under development and will probably still be so for a while" !
    Let's wait at least for a release candidate.

     
  • Peter Robinson

    Peter Robinson - 2023-02-28

    So libgpiod 2.0 is due soon and is currently at 2.0 rc3.

     
  • Vincent Chatelain

    It seems libgpiod v2 has been released early march, and is now at version v2.0.2. Do you think someone will be able to look into this issue now their API is stable ?

     
  • Antonio Borneo

    Antonio Borneo - 2023-11-05

    libgpiod v2.1 is also out.
    Strange that Arch Linux still have not updated, sticking to v1.6.4

    Anyway, big change in the API, I will try to have a look.
    If someone else wants to provide a patch, welcome. Just please keep backward compatibility to old libgpiod

     
  • Arti Zirk

    Arti Zirk - 2024-01-08

    Arch Linux now has libgpiod 2.0 in the repos.

     

    Last edit: Arti Zirk 2024-01-08
  • Antonio Borneo

    Antonio Borneo - 2024-03-24

    Thanks to Michael Heimpold, a first patch series for libgpiod 2.0 is under review in
    https://review.openocd.org/c/openocd/+/8184
    You are invited to test and review it too

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.