From: Jan Blunck Subject: Re: [APPLIED] [PATCH] omapfb: Reorder Register_framebuffer call Date: Wed, 23 Sep 2009 19:03:37 +0200 Message-ID: <4de7f8a60909231003w7bb9fdb9p7cf6fa0b2bc7e3c@mail.gmail.com> References: <1252773249-24444-1-git-send-email-saaguirre@ti.com> <4de7f8a60909220759g63b592eek85a2bca04b264d2e@mail.gmail.com> <20090922162853.GC14890@atomide.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mail-ew0-f211.google.com ([209.85.219.211]:33544 "EHLO mail-ew0-f211.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753231AbZIWRDe (ORCPT ); Wed, 23 Sep 2009 13:03:34 -0400 Received: by ewy7 with SMTP id 7so896808ewy.17 for ; Wed, 23 Sep 2009 10:03:37 -0700 (PDT) In-Reply-To: Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: "Aguirre Rodriguez, Sergio Alberto" Cc: Tony Lindgren , "linux-omap@vger.kernel.org" , Imre Deak , "linux-fbdev-devel@lists.sourceforge.net" On Tue, Sep 22, 2009 at 6:57 PM, Aguirre Rodriguez, Sergio Alberto wrote: > From: Tony Lindgren [tony@atomide.com] > Sent: Tuesday, September 22, 2009 11:28 AM >> * Jan Blunck [090922 07:59]: >> > On Tue, Sep 22, 2009 at 3:31 AM, Tony Lindgren wrote: >> > > This patch has been applied to the linux-omap >> > > by youw fwiendly patch wobot. >> > > >> > > Branch in linux-omap: omap-fixes >> > > >> > > Initial commit ID (Likely to change): 9aef1066fb5ca8506068eaab1c552ecca4c85475 >> > > >> > > PatchWorks >> > > http://patchwork.kernel.org/patch/47089/ >> > > >> > >> >> Added back the original Cc's that were dropped from the linux-omap >> commit message. >> >> > Is it actually safe to do this? The framebuffer can be used directly >> > after it is registered. In this case it would mean it is used before >> > it is even fully initialized (set_fb_var(), set_fb_fix(), ... are >> > being called). >> >> Good point, dropping the patch. > > Hmm, ok. I guess i'll rework this patch considering that.. > > I ran some framebuffer tests with this patch applied, and they worked fine for me. > > The only thing is that i didn't saw Tux on bootup... > > Actually, nobody ever gave this kind of feedback, which was the initial idea. > Sorry, I didn't look into it earlier. BTW, I actually wonder if it's really necessary to initialize the mutex in register_framebuffer() or why it couldn't be done during allocation. Cheers, Jan