Page MenuHomeFreeBSD

uart_dev_snps: Fix device probing
ClosedPublic

Authored by kd on Oct 5 2022, 6:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 14, 4:35 PM
Unknown Object (File)
Sep 27 2024, 12:22 AM
Unknown Object (File)
Sep 24 2024, 4:33 AM
Unknown Object (File)
Sep 9 2024, 1:38 AM
Unknown Object (File)
Sep 7 2024, 5:35 PM
Unknown Object (File)
Aug 25 2024, 1:57 AM
Unknown Object (File)
Jul 7 2024, 3:44 AM
Unknown Object (File)
May 12 2024, 9:58 PM
Subscribers

Details

Summary

The "uart_bus_probe" function is used as a generic part of uart probe logic.
It returns a driver priority(negative number) if successful and an error code otherwise.
Fix the error checking condition to account for that.
Also, while here return "BUS_PROBE_VENDOR", instead of "0".

PR: 266657

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kd requested review of this revision.Oct 5 2022, 6:57 AM
kd updated this revision to Diff 111447.
kd created this revision.

Fix patch context (-U9999)

This revision is now accepted and ready to land.Oct 5 2022, 12:26 PM
This revision was automatically updated to reflect the committed changes.