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)
Sun, Mar 8, 3:32 AM
Unknown Object (File)
Feb 7 2026, 6:43 PM
Unknown Object (File)
Feb 6 2026, 3:27 PM
Unknown Object (File)
Jan 31 2026, 12:01 PM
Unknown Object (File)
Jan 31 2026, 12:14 AM
Unknown Object (File)
Jan 28 2026, 11:42 PM
Unknown Object (File)
Jan 26 2026, 1:40 AM
Unknown Object (File)
Jan 12 2026, 11:25 AM
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.