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, Jul 5, 8:10 AM
Unknown Object (File)
Wed, Jul 1, 11:26 PM
Unknown Object (File)
Sat, Jun 27, 4:23 PM
Unknown Object (File)
Jun 5 2026, 9:33 PM
Unknown Object (File)
Jun 5 2026, 8:35 PM
Unknown Object (File)
May 28 2026, 12:02 AM
Unknown Object (File)
May 14 2026, 2:56 PM
Unknown Object (File)
May 14 2026, 6:43 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.