Some device trees put "fsl,ns16650" first in the compatible list. This causes
the probe code to choke, even though the device is compatible with ns16650, and
has it listed later in the tree.
Details
Boot the kernel
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 4960 Build 5025: arc lint + arc unit
Event Timeline
You might want to also look at how we find the correct uart in uart_bus_fdt.c. We have a linker set to enumerate all drivers we support. They then provide a struct ofw_compat_data with the compat string and uart class.
Add a new ofw_bus_ function. This reuses the existing name of an
internal(static) function, and renames the static function to _int (couldn't
think of a better name).
Right, uart_cpu_powerpc.c's getdev() should be getting called by way of uart_bus_fdt.c.
style(9) was recently changed to permit the braces that were here. I personally prefer the braces, especially in cases like this, where the else has braces.