linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Devices don't get linked to their class.
@ 2004-09-03  5:02 Nigel Cunningham
  2004-09-04 12:41 ` Antonino A. Daplas
  0 siblings, 1 reply; 10+ messages in thread
From: Nigel Cunningham @ 2004-09-03  5:02 UTC (permalink / raw)
  To: linux-fbdev-devel

Hi all.

Some of my suspend2 users have reported that their displays go blank as
soon as suspend starts writing to disk. I understand why. I suspend
everything else except the storage device and it's parents at the start
of writing the image.

Interestingly, though, the issue doesn't occur with all display drivers,
perhaps (I guess) because they haven't had PM support written yet.
Having switched from the vesafb driver to the radeon one, I'm now able
to reproduce the behaviour described above.

This morning I began work on addressing the problem. I thought the best
approach would be to use device classes to find the struct dev for the
frame buffer driver, and then use the same code I use for storage
devices to avoid suspending the frame buffer until later. I successfully
wrote a helper to find the 'graphics' class that fbmem.c creates, but
now I've run into a more serious issue. register_framebuffer (in the
same time) calls class_simple_device_add with a NULL for the pointer to
the struct device. Is it possible for this issue to be addressed? I can
see that (at least in the Radeon case) one could simply call
register_framebuffer with an additional parameter, but thought I'd email
you and seek your wisdom.

By the way, am I missing something? It looks like framebuffer_alloc does
nothing with the dev parameter passed to it.

Regards,

Nigel

-- 
Nigel Cunningham
Pastoral Worker
Christian Reformed Church of Tuggeranong
PO Box 1004, Tuggeranong, ACT 2901

Many today claim to be tolerant. True tolerance, however, can cope with others
being intolerant.



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-09-08  3:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-03  5:02 Devices don't get linked to their class Nigel Cunningham
2004-09-04 12:41 ` Antonino A. Daplas
2004-09-05  6:21   ` Nigel Cunningham
2004-09-05 10:40     ` Antonino A. Daplas
2004-09-05 21:45       ` Nigel Cunningham
2004-09-06  3:38       ` [PATCH] " Nigel Cunningham
     [not found]         ` <32016.10.250.10.1.1094456212.squirrel@sq04.pol.net>
2004-09-06 21:56           ` Nigel Cunningham
2004-09-07 19:50         ` Kronos
2004-09-08  0:55           ` Antonino A. Daplas
2004-09-08  3:21             ` Nigel Cunningham

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).