Only probe the UART type if sc_uarttype is set to COM_UART_UNKNOWN.
authorkettenis <kettenis@openbsd.org>
Tue, 16 Aug 2016 08:15:04 +0000 (08:15 +0000)
committerkettenis <kettenis@openbsd.org>
Tue, 16 Aug 2016 08:15:04 +0000 (08:15 +0000)
commitea94a4155bf0ce62b5a57d855217f951a5a8cf4f
tree9c7a5ee98c96ccab5cd4be7f264f367fcf6dfdbc
parentad5afad93659c9a6493265c14100e63a4aa2efdf
Only probe the UART type if sc_uarttype is set to COM_UART_UNKNOWN.
This allows glue drivers to set the type based on other information (such as
Oopen Firmware or device tree properties) without going through to risky
code paths.

ok deraadt@, visa@
sys/dev/ic/com.c