Re: 2.6.3-rc3 radeonfb: Problems with new (and old) driver

From: Linus Torvalds
Date: Mon Feb 16 2004 - 12:57:47 EST




On Mon, 16 Feb 2004, Benjamin Herrenschmidt wrote:
>
> No, it's not. I posted a patch fixing that. Enclosed again below.

I don't think this is right.

It gets the same-tty case wrong, and the reason it gets it wrong is that
it does its thing in entirely the wrong place.

The console layer already always calls "unblank_screen()" on any switch to
text mode, _regardless_ of whether it was switching from another console
or not. That should be the place where this is done, and perhaps by
changing the console layer to be a bit more helpful about things (mainly
re-name the damn thing, since it has nothing to do with "unblank" any
more).

"unblank_screen()" is really the same as "reset_screen" - it's also called
on resume. While "do_blank_screen()" is basically "go away".

So why don't you just reset the thing in "con_blank()" that gets called in
all the right cases?

Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/