Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 29 Jul 2002 15:45:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 29 Jul 2002 15:45:11 -0400 Received: from agate.roonetworks.com ([12.44.168.40]:48546 "EHLO h216.ofc.roonetworks.com") by vger.kernel.org with ESMTP id ; Mon, 29 Jul 2002 15:45:11 -0400 From: Remco Treffkorn Reply-To: remco@rvt.com To: Dan Malek , Benjamin Herrenschmidt Subject: Re: 3 Serial issues up for discussion (was: Re: Serial core problems on embedded PPC) Date: Mon, 29 Jul 2002 12:46:42 -0700 User-Agent: KMail/1.4.5 Cc: Tom Rini , Russell King , linux-kernel@vger.kernel.org, linuxppc-dev@lists.linuxppc.org References: <20020729174341.GA12964@opus.bloom.county> <20020729181352.27999@192.168.4.1> <3D4592D3.50505@embeddededge.com> In-Reply-To: <3D4592D3.50505@embeddededge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Disposition: inline Message-Id: <200207291246.43134.remco@rvt.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 781 Lines: 28 On Monday 29 July 2002 12:09, Dan Malek wrote: ... > or a mix of both. The problems to solve are drivers fighting over minor > device numbers and assumptions about the system console. > Drivers need not fight about minor numbers. That can be simply handled: int get_new_serial_minor() { static int minor; return minor++; } Any serial driver can call this when it initializes a new uart. Hot pluggable drivers have to hang on to their minors, and re-use. -- Remco Treffkorn (RT445) HAM DC2XT remco@rvt.com (831) 685-1201 - 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/