From: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
To: Jan Blunck <jblunck@infradead.org>
Cc: "Aguirre Rodriguez, Sergio Alberto" <saaguirre@ti.com>,
Tony Lindgren <tony@atomide.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"linux-fbdev-devel@lists.sourceforge.net"
<linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: [Linux-fbdev-devel] [APPLIED] [PATCH] omapfb: Reorder Register_framebuffer call
Date: Fri, 25 Sep 2009 12:13:12 +0200 [thread overview]
Message-ID: <4ABC97B8.80206@gmx.de> (raw)
In-Reply-To: <4de7f8a60909231003w7bb9fdb9p7cf6fa0b2bc7e3c@mail.gmail.com>
Jan Blunck schrieb:
> On Tue, Sep 22, 2009 at 6:57 PM, Aguirre Rodriguez, Sergio Alberto
> <saaguirre@ti.com> wrote:
>> From: Tony Lindgren [tony@atomide.com]
>> Sent: Tuesday, September 22, 2009 11:28 AM
>>> * Jan Blunck <jblunck@infradead.org> [090922 07:59]:
>>>> On Tue, Sep 22, 2009 at 3:31 AM, Tony Lindgren <tony@atomide.com> 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.
This small discussion between Linus and Krzysztof might explain it:
http://marc.info/?l=linux-kernel&m=124703449332064&w=2
or to summarize:
It is done the way it is done to keep drivers working that use
statically declared fb_info.
Although I agree, that it would be cleaner the other way around.
Regards,
Florian Tobias Schandinat
prev parent reply other threads:[~2009-09-25 10:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-12 16:34 [PATCH] omapfb: Reorder Register_framebuffer call Sergio Aguirre
2009-09-14 14:43 ` Aguirre Rodriguez, Sergio Alberto
2009-09-14 15:22 ` Felipe Contreras
[not found] ` <notify-1253583118@atomide.com>
[not found] ` <4de7f8a60909220759g63b592eek85a2bca04b264d2e@mail.gmail.com>
2009-09-22 16:28 ` [APPLIED] " Tony Lindgren
2009-09-22 16:57 ` Aguirre Rodriguez, Sergio Alberto
2009-09-23 17:03 ` Jan Blunck
2009-09-25 10:13 ` Florian Tobias Schandinat [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ABC97B8.80206@gmx.de \
--to=florianschandinat@gmx.de \
--cc=jblunck@infradead.org \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=linux-omap@vger.kernel.org \
--cc=saaguirre@ti.com \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).