Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964837AbXBTMDd (ORCPT ); Tue, 20 Feb 2007 07:03:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964853AbXBTMDd (ORCPT ); Tue, 20 Feb 2007 07:03:33 -0500 Received: from outpipe-village-512-1.bc.nu ([81.2.110.250]:44442 "EHLO localhost.localdomain" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S964837AbXBTMDW (ORCPT ); Tue, 20 Feb 2007 07:03:22 -0500 Date: Tue, 20 Feb 2007 13:07:01 +0000 From: Alan To: David Gibson Cc: Andrew Morton , , , Subject: Re: [PATCH 1/2] Define FIXED_PORT flag for serial_core Message-ID: <20070220130701.00503673@localhost.localdomain> In-Reply-To: <20070220031951.56492DDD09@ozlabs.org> References: <20070220031717.GI17818@localhost.localdomain> <20070220031951.56492DDD09@ozlabs.org> X-Mailer: Claws Mail 2.7.2 (GTK+ 2.10.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1367 Lines: 29 On Tue, 20 Feb 2007 14:19:51 +1100 (EST) David Gibson wrote: > At present, the serial core always allows setserial in userspace to > change the port address, irq and base clock of any serial port. That > makes sense for legacy ISA ports, but not for (say) embedded ns16550 > compatible serial ports at peculiar addresses. In these cases, the > kernel code configuring the ports must know exactly where they are, > and their clocking arrangements (which can be unusual on embedded > boards). It doesn't make sense for userspace to change these > settings. > > Therefore, this patch defines a UPF_FIXED_PORT flag for the uart_port > structure. If this flag is set when the serial port is configured, > any attempts to alter the port's type, io address, irq or base clock > with setserial are ignored. > > In addition this patch uses the new flag for on-chip serial ports > probed in arch/powerpc/kernel/legacy_serial.c, and for other > hard-wired serial ports probed by drivers/serial/of_serial.c. > > Signed-off-by: David Gibson > Acked-by: Alan Cox - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/