From: Bjorn Helgaas Subject: [RFC] ACPI serial port BASE_BAUD Date: Thu, 4 Mar 2004 16:44:46 -0700 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <200403041644.46250.bjorn.helgaas@hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Russell King , acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Matthew Wilcox List-Id: linux-acpi@vger.kernel.org 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 ===== --- 1.7/drivers/serial/8250_acpi.c Fri Jan 16 15:01:45 2004 +++ edited/drivers/serial/8250_acpi.c Thu Mar 4 14:06:51 2004 @@ -22,6 +22,9 @@ #include #include +/* 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