From: Russell King <rmk@arm.linux.org.uk>
To: James Simmons <jsimmons@transvirtual.com>
Cc: Linux Fbdev development list <linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: [PATCH] fbdev updates.
Date: Fri, 5 Jul 2002 09:44:35 +0100 [thread overview]
Message-ID: <20020705094435.A23355@flint.arm.linux.org.uk> (raw)
In-Reply-To: <Pine.LNX.4.44.0207042051150.4852-100000@www.transvirtual.com>; from jsimmons@transvirtual.com on Thu, Jul 04, 2002 at 09:05:40PM -0700
On Thu, Jul 04, 2002 at 09:05:40PM -0700, James Simmons wrote:
> > 2. I've no idea why you moved "lccr0" and "lccr3" in sa1100fb.h - this
> > looks like noise to me.
>
> Ah the idea of a par and using generic struct fb_info. A few reasons. One
> I noticed people having fields inside their struct xxxfb_info that was
> already there in the generic struct fb_info. By making a strick rule I
> hope to avoid that ugly mess. The second reason is eventually I like to
> combine DRI and the fbdev layer. This was both interfaces could use the
> same struct xxx_par. That is a 2.7 thing but I like to prepare now for
> this. For the SA1100 this is not really needed but I still like to enforce
> this rule and we still can take advantage of the nice generic functions in
> fbgen.c.
First, I detest the idea of "fix", "var", "par" and "info". Specifically
the "par" crap. Intensely. "par" and "info" should be combined IMO,
which my framebuffer drivers do.
Secondly, I think you're completely confused above. lccr0 and lccr3 have
nothing to do with some "generic struct fb_info". They hold the base
register values for two of the SA1100 control registers.
Thirdly, you didn't delete them. You _moved_ them within the structure.
They therefore served zero functional purpose.
Fourthly, nothing but the sa1100fb driver has any business accessing the
elements around these two both before and after the move.
In total, the change serves ZERO purpose and is therefore noise.
> > 5. I strongly disagree with your apparant decision to make the cpufreq
> > part of the generic framebuffer core (by apparantly adding the notifier
> > block to the core fb_info structure). Firstly, you've broken sa1100fb.c
> > by not including the relevant definition in fb_info (ok, so cpufreq
> > stuff isn't in Linus' tree yet). Secondly, it isn't something that all
> > framebuffers require; its only required on SoC devices where the hardware
> > designers have been stingy. As such, we should NOT penalise the x86
> > people by adding random useless garbage to structures that they're never
> > going to use.
>
> I completely agree. I'm going to remove that. Originally I thought about
> making it generic for everyone because I have seen other platforms
> (Mips Au1000 with Epson 1385 framebuffers) do something similar. Then I
> realized not everyone needs it and also it is possible that devices with
> more than one framebuffer might use the same pixclock frequency.
Ehh? That's got nothing to do with cpufreq. The reason we have the
cpufreq interface in sa1100fb is that the base clock rate for the LCD
controller on this chip is derived from the CPU core clock. You change
the core clock, you have to reprogram the pixel clock divisor.
> Dumb but
> I have seen alot of cards share the accel engine and/or CRTC registers
> between two different framebuffers on the same piece of hardware. So it
> belongs in par.
Again, I think this is another misplaced reason; that's irrelevant to
cpufreq.
--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Bringing you mounds of caffeinated joy.
http://thinkgeek.com/sf
next prev parent reply other threads:[~2002-07-05 8:44 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-01 17:48 [PATCH] fbdev updates James Simmons
2002-07-02 13:33 ` Jani Monoses
2002-07-05 2:41 ` James Simmons
2002-07-03 23:03 ` Russell King
2002-07-05 4:05 ` James Simmons
2002-07-05 8:44 ` Russell King [this message]
2002-07-05 8:53 ` Geert Uytterhoeven
2002-07-05 9:09 ` Russell King
2002-07-05 9:39 ` Geert Uytterhoeven
2002-07-05 10:20 ` Russell King
2002-07-05 17:20 ` James Simmons
2002-07-05 17:16 ` James Simmons
2002-07-05 17:58 ` Russell King
2002-07-05 18:21 ` James Simmons
2002-07-05 18:27 ` Russell King
2002-07-05 17:14 ` James Simmons
2002-07-05 17:57 ` Russell King
2002-07-05 18:32 ` James Simmons
2002-07-05 18:39 ` Russell King
2002-07-05 19:00 ` James Simmons
2002-07-05 19:29 ` Ani Joshi
2002-07-05 19:32 ` James Simmons
2002-07-05 19:41 ` Russell King
2002-07-05 19:57 ` James Simmons
2002-07-05 19:53 ` Ani Joshi
2002-07-05 19:55 ` Ani Joshi
2002-07-05 19:58 ` James Simmons
2002-07-05 20:21 ` Ani Joshi
2002-07-05 20:09 ` James Simmons
2002-07-05 20:34 ` James Simmons
-- strict thread matches above, loose matches on Subject: below --
2002-07-24 5:22 James Simmons
2002-07-08 21:23 James Simmons
2002-06-04 20:05 James Simmons
2002-05-28 18:09 James Simmons
2002-05-22 16:54 James Simmons
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=20020705094435.A23355@flint.arm.linux.org.uk \
--to=rmk@arm.linux.org.uk \
--cc=jsimmons@transvirtual.com \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/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).