ACPI serial port BASE_BAUD
RFC 1/1 ACPI serial port BASE_BAUD
It seems wrong that ACPI serial ports should depend on the architecture BASE_BAUD. Isn't ACPI supposed to give us a generic way to describe things like this?
I think there should either be some item in the UART's _CRS to tell us the clock rate, or a statement somewhere that "all PNP0501 devices must use a 115200 clock rate". I can't find either one (pointers welcome).
This patch against 2.6.4-rc2 just removes the dependency on the per-arch BASE_BAUD -- no functional change for i386, x86_64, or ia64.
===== drivers/serial/8250_acpi.c 1.7 vs edited =====
drivers/serial/8250_acpi.c +4 -1
@@ -22,6 +22,9 @@#include <asm/io.h> #include <asm/serial.h> +/* ACPI should expose this value via _CRS, or document it as fixed */ +#define ACPI_PNP0501_BASE_BAUD 115200 +struct serial_private {int line;void *iomem_base;
@@ -133,7 +136,7 @@ goto fail; } - serial_req.baud_base =BASE_BAUD ; + serial_req.baud_base =ACPI_PNP0501_BASE_BAUD ; serial_req.flags =UPF_SKIP_TEST |UPF_BOOT_AUTOCONF |UPF_AUTO_IRQ |UPF_RESOURCES ;
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click