HomeFreeBSD

uart_dev_snps: Fix device probing

Description

uart_dev_snps: Fix device probing

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".
This fixes uart on clearfog pro with recent DT.

PR: 266657
Reviewed by: mw
Obtained from: Semihalf
Differential Revision: https://reviews.freebsd.org/D36880

Details

Provenance
kdAuthored on Oct 6 2022, 2:25 PM
Reviewer
mw
Differential Revision
D36880: uart_dev_snps: Fix device probing
Parents
rGfdbd0ba75d99: test/sys/opencrypto: Fix NIST KAT parser iterator
Branches
Unknown
Tags
Unknown