Page MenuHomeFreeBSD

uart_dev_snps: Fix device probing
ClosedPublic

Authored by kd on Oct 5 2022, 6:57 AM.
Tags
None
Referenced Files
F134513309: D36880.diff
Sun, Nov 2, 7:13 PM
Unknown Object (File)
Fri, Oct 31, 6:16 AM
Unknown Object (File)
Wed, Oct 29, 7:40 AM
Unknown Object (File)
Mon, Oct 27, 8:59 PM
Unknown Object (File)
Tue, Oct 21, 11:42 PM
Unknown Object (File)
Sat, Oct 18, 4:55 AM
Unknown Object (File)
Tue, Oct 14, 6:31 AM
Unknown Object (File)
Tue, Oct 14, 6:31 AM
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

Lint
Lint Skipped
Unit
Tests Skipped

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.