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)
Mon, Nov 3, 9:56 AM
Unknown Object (File)
Sun, Nov 2, 7:40 PM
Unknown Object (File)
Sat, Nov 1, 3:16 AM
Unknown Object (File)
Fri, Oct 31, 11:21 AM
Unknown Object (File)
Wed, Oct 29, 8:09 AM
Unknown Object (File)
Sun, Oct 26, 10:30 AM
Unknown Object (File)
Oct 2 2025, 3:48 PM
Unknown Object (File)
Sep 29 2025, 11:22 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 Not Applicable
Unit
Tests Not Applicable

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.