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)
Thu, Oct 2, 3:48 PM
Unknown Object (File)
Mon, Sep 29, 11:22 PM
Unknown Object (File)
Tue, Sep 23, 4:03 PM
Unknown Object (File)
Sep 17 2025, 4:17 AM
Unknown Object (File)
Sep 14 2025, 1:15 PM
Unknown Object (File)
Sep 13 2025, 10:46 PM
Unknown Object (File)
Sep 9 2025, 2:19 AM
Unknown Object (File)
Sep 5 2025, 2:16 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.