Page MenuHomeFreeBSD

gpiobus: gpiobus_acquire_pin: panic on invalid pin
ClosedPublic

Authored by vexeduxr on Jun 19 2025, 2:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 29, 7:19 PM
Unknown Object (File)
Tue, Sep 29, 3:25 PM
Unknown Object (File)
Sun, Sep 20, 8:23 AM
Unknown Object (File)
Sun, Sep 20, 8:14 AM
Unknown Object (File)
Sep 7 2026, 9:28 PM
Unknown Object (File)
Sep 7 2026, 1:13 PM
Unknown Object (File)
Sep 7 2026, 11:57 AM
Unknown Object (File)
Sep 3 2026, 12:01 PM
Subscribers
None

Details

Summary

It is a programming error to call this function with an invalid pin.
Also return proper error value on failure.

Suggested by: mmel

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 64982
Build 61865: arc lint + arc unit

Event Timeline

vexeduxr created this revision.
This revision is now accepted and ready to land.Jun 19 2025, 2:38 PM

Go ahead and commit this. I saw the discussion, and this represents what was talked about elsewhere.