From: "eric miao" Subject: Re: [RFC 2.6.26-rc9 1/5] pxafb: add shared framebuffer interface Date: Mon, 21 Jul 2008 10:10:56 +0800 Message-ID: References: <1215955587-20367-1-git-send-email-jayakumar.lkml@gmail.com> <1215955587-20367-2-git-send-email-jayakumar.lkml@gmail.com> <45a44e480807160159j62b9f989l2ae99bd94d24a95f@mail.gmail.com> <20080716093855.GC23468@flint.arm.linux.org.uk> <45a44e480807160418g10090321uc57c338987d74b30@mail.gmail.com> <45a44e480807191941pb05934ay33c519c586572861@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1KKkrZ-0006n7-Nj for linux-fbdev-devel@lists.sourceforge.net; Sun, 20 Jul 2008 19:10:57 -0700 Received: from yw-out-1718.google.com ([74.125.46.157]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1KKkrZ-0008RO-BC for linux-fbdev-devel@lists.sourceforge.net; Sun, 20 Jul 2008 19:10:57 -0700 Received: by yw-out-1718.google.com with SMTP id 6so513262ywa.82 for ; Sun, 20 Jul 2008 19:10:56 -0700 (PDT) In-Reply-To: <45a44e480807191941pb05934ay33c519c586572861@mail.gmail.com> Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-fbdev-devel-bounces@lists.sourceforge.net Errors-To: linux-fbdev-devel-bounces@lists.sourceforge.net To: Jaya Kumar Cc: linux-fbdev-devel@lists.sourceforge.net, ymiao3@marvell.com, Russell King - ARM Linux , linux-arm-kernel@lists.arm.linux.org.uk > Hi Eric, > > I've run into some difficulties. set_pxa_fb_info is: > > void __init set_pxa_fb_info(struct pxafb_mach_info *info) > > and not exported. Therefore am200epd can't be built as a module now > that it depends on set_pxa_fb_info. That is fine, I switched am200epd > to a built-in. But then because set_pxa_fb_info is __init, it > disappears before am200epd is ready to call it. This is because > am200epd needs metronomefb's framebuffer size and info which it only > finds out after full boot into userspace when it gets its firmware > from a udev script. I think this means that I would also need to make > metronomefb a built-in and figure out how to compile in metronome's > firmware. I haven't figured out how to do the latter yet. > I see no reason why set_pxa_fb_info() cannot be exported, though its primary use is in the board setup code. > I started thinking about maybe creating something different, like > maybe set_mod_pxa_fb_info that would work more dynamically (ie: alloc > a platform_device dynamically, thus making it possible for > device_release to work, rather than using a static struct > pxa_device_fb) and allow for module support without requiring any > exports other than itself. Is this something that's of interest or > should I focus on the former? That sounds a bit trickier maybe we should avoid. > > Thanks, > jaya > -- Cheers - eric ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/