Re: sio => uart: one port is gone

From: Andriy Gapon <avg_at_icyb.net.ua>
Date: Mon, 15 Sep 2008 23:02:10 +0300
on 15/09/2008 22:22 John Baldwin said the following:
> The problem is that right now we ship with acpi.ko as a module by default and 
> have the loader auto-load acpi.ko IFF the machine supports ACPI.  Considering 
> how cheap a bus attachment is, I find this argument rather rediculous.  If 
> you are building uart into the kernel on i386, just always include the acpi 
> attachment.  Other drivers give a more sane user experience.  GENERIC should 
> DTRT out-of-the-box, for example.

John,

thank you for the idea, the following trivial patch did it for me.

--- a/sys/conf/files
+++ b/sys/conf/files
_at__at_ -1080,7 +1080,7 _at__at_ dev/twe/twe.c			optional twe
  dev/twe/twe_freebsd.c		optional twe
  dev/tx/if_tx.c			optional tx
  dev/txp/if_txp.c		optional txp
-dev/uart/uart_bus_acpi.c	optional	uart acpi
+dev/uart/uart_bus_acpi.c	optional	uart
  #dev/uart/uart_bus_cbus.c	optional	uart cbus
  dev/uart/uart_bus_ebus.c	optional	uart ebus
  dev/uart/uart_bus_isa.c		optional	uart isa

dmesg:
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart0: [FILTER]
uart1: <16550 or compatible> port 0x2e8-0x2ef irq 3 on acpi0
uart1: [FILTER]

-- 
Andriy Gapon
Received on Mon Sep 15 2008 - 19:10:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:35 UTC