Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266289AbUIEKkA (ORCPT ); Sun, 5 Sep 2004 06:40:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266319AbUIEKkA (ORCPT ); Sun, 5 Sep 2004 06:40:00 -0400 Received: from smtp-out.hotpop.com ([38.113.3.71]:57241 "EHLO smtp-out.hotpop.com") by vger.kernel.org with ESMTP id S266289AbUIEKj5 (ORCPT ); Sun, 5 Sep 2004 06:39:57 -0400 From: "Antonino A. Daplas" Reply-To: adaplas@pol.net To: Geert Uytterhoeven Subject: Re: [Linux-fbdev-devel] [PATCH 4/5][RFC] fbdev: Clean up framebuffer initialization Date: Sun, 5 Sep 2004 18:40:10 +0800 User-Agent: KMail/1.5.4 Cc: Linux Frame Buffer Device Development , Andrew Morton , Linux Kernel Development , Thomas Winischhofer References: <200409041108.40276.adaplas@hotpop.com> <200409051750.47987.adaplas@hotpop.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409051840.10202.adaplas@hotpop.com> X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2442 Lines: 50 On Sunday 05 September 2004 18:13, Geert Uytterhoeven wrote: > On Sun, 5 Sep 2004, Antonino A. Daplas wrote: > > On Sunday 05 September 2004 17:16, Geert Uytterhoeven wrote: > > > On Sat, 4 Sep 2004, Antonino A. Daplas wrote: > > > > Currently, the framebuffer system is initialized in a roundabout > > > > manner. First, drivers/char/mem.c calls fbmem_init(). fbmem_init() > > > > will then iterate over an array of individual drivers' xxxfb_init(), > > > > then each driver registers its presence back to fbmem. During > > > > console_init(), drivers/char/vt.c will call fb_console_init(). fbcon > > > > will check for registered drivers, and if any are present, will call > > > > take_over_console() in drivers/char/vt.c. > > > > > > > > This patch changes the initialization sequence so it proceeds in this > > > > manner: Each driver has its own module_init(). Each driver calls > > > > register_framebuffer() in fbmem.c. fbmem.c will then notify fbcon of > > > > the driver registration. Upon notification, fbcon calls > > > > take_over_console() in vt.c. > > > > > > My main concern with this change is that it will be no longer possible > > > to change initialization order (and hence choose the primary display > > > for systems with multiple graphics adapters) by specifying > > > `video=xxxfb' on the kernel command line. > > > > I see your point. But, can we use "fbcon=" setup options to choose which > > fb gets mapped to what console? We already have fbcon=map: