linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* vesafb probe question
@ 2005-01-07 21:03 Stuart_Hayes
  2005-01-09 21:16 ` Antonino A. Daplas
  0 siblings, 1 reply; 2+ messages in thread
From: Stuart_Hayes @ 2005-01-07 21:03 UTC (permalink / raw)
  To: linux-fbdev-devel; +Cc: Stuart_Hayes

[-- Attachment #1: Type: text/plain, Size: 1503 bytes --]


I'm getting a message in dmesg:  "localhost kernel: vesafb: probe of
vesafb0 failed with error -6"

I searched the web, and found that a lot of people are getting this, but
I couldn't find an answer, so I looked into it.

This appears to be because "vesafb" returns -ENXIO ("No such device or
address") when its probe function fails.  However, driverse/base/bus.c
spews an error message during device_attach() if a matching driver's
probe function returns anything but -ENODEV ("No such device").

Would a patch (like the one below) to change vesafb to return ENODEV
instead of ENXIO be appropriate, or am I missing something?

Thanks!
Stuart
stuart_hayes@dell.com



diff -purN linux-2.6.9-1.906_ELorig/drivers/video/vesafb.c
linux-2.6.9-1.906_EL/drivers/video/vesafb.c
--- linux-2.6.9-1.906_ELorig/drivers/video/vesafb.c	2004-10-18
17:53:11.000000000 -0400
+++ linux-2.6.9-1.906_EL/drivers/video/vesafb.c	2005-01-06
14:45:18.000000000 -0500
@@ -222,7 +222,7 @@ static int __init vesafb_probe(struct de
 	int i, err;
 
 	if (screen_info.orig_video_isVGA != VIDEO_TYPE_VLFB)
-		return -ENXIO;
+		return -ENODEV;
 
 	vesafb_fix.smem_start = screen_info.lfb_base;
 	vesafb_defined.bits_per_pixel = screen_info.lfb_depth;
@@ -380,7 +380,7 @@ static int __init vesafb_probe(struct de
 		(ypan) ? FBINFO_HWACCEL_YPAN : 0;
 
 	if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) {
-		err = -ENXIO;
+		err = -ENODEV;
 		goto err;
 	}
 	if (register_framebuffer(info)<0) {

[-- Attachment #2: Type: text/html, Size: 3770 bytes --]

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

* Re: vesafb probe question
  2005-01-07 21:03 vesafb probe question Stuart_Hayes
@ 2005-01-09 21:16 ` Antonino A. Daplas
  0 siblings, 0 replies; 2+ messages in thread
From: Antonino A. Daplas @ 2005-01-09 21:16 UTC (permalink / raw)
  To: linux-fbdev-devel; +Cc: Stuart_Hayes

On Saturday 08 January 2005 05:03, Stuart_Hayes@Dell.com wrote:
> I'm getting a message in dmesg:  "localhost kernel: vesafb: probe of
> vesafb0 failed with error -6"
>
> I searched the web, and found that a lot of people are getting this, but
> I couldn't find an answer, so I looked into it.
>
> This appears to be because "vesafb" returns -ENXIO ("No such device or
> address") when its probe function fails.  However, driverse/base/bus.c
> spews an error message during device_attach() if a matching driver's
> probe function returns anything but -ENODEV ("No such device").
>
> Would a patch (like the one below) to change vesafb to return ENODEV
> instead of ENXIO be appropriate, or am I missing something?

-ENODEV is fine.

Tony




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

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

end of thread, other threads:[~2005-01-09 21:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-07 21:03 vesafb probe question Stuart_Hayes
2005-01-09 21:16 ` Antonino A. Daplas

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