linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* wait_for_sysfs_update
@ 2004-10-13 18:16 Kay Sievers
  2004-10-13 19:57 ` wait_for_sysfs_update Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Kay Sievers @ 2004-10-13 18:16 UTC (permalink / raw)
  To: linux-hotplug

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

Here is an update to wait_for_sysfs to print the udev version to syslog,
let hardware net interfaces wait again for the device link and
revert the video4linux to wait for the device. The error here was caused
by a out-of-tree media-driver, that needs the fix, not the our program.

I've added a small comment for that to the log as I expect more of this
to show up and the recent desktop integration work depends heavily on proper
sysfs support, so the drivers should be fixed.

Thanks,
Kay

[-- Attachment #2: udev-wait-net-01.patch --]
[-- Type: text/plain, Size: 1692 bytes --]

===== wait_for_sysfs.c 1.11 vs edited =====
--- 1.11/wait_for_sysfs.c	2004-10-12 22:48:49 +02:00
+++ edited/wait_for_sysfs.c	2004-10-13 19:58:52 +02:00
@@ -32,6 +32,7 @@
 #include <sys/stat.h>
 
 #include "logging.h"
+#include "udev_version.h"
 #include "libsysfs/sysfs/libsysfs.h"
 
 #ifdef LOG
@@ -138,11 +139,14 @@ static int class_device_expect_no_device
 		{ .subsystem = "misc",		.device = NULL },
 		{ .subsystem = "msr",		.device = NULL },
 		{ .subsystem = "netlink",	.device = NULL },
-		{ .subsystem = "net",		.device = NULL },
+		{ .subsystem = "net",		.device = "sit" },
+		{ .subsystem = "net",		.device = "ppp" },
+		{ .subsystem = "net",		.device = "lo" },
+		{ .subsystem = "net",		.device = "tap" },
 		{ .subsystem = "sound",		.device = NULL },
 		{ .subsystem = "printer",	.device = "lp" },
 		{ .subsystem = "nvidia",	.device = NULL },
-		{ .subsystem = "video4linux",	.device = NULL },
+		{ .subsystem = "video4linux",	.device = "vbi" },
 		{ .subsystem = "lirc",		.device = NULL },
 		{ .subsystem = "firmware",	.device = NULL },
 		{ .subsystem = "drm",		.device = NULL },
@@ -407,9 +411,10 @@ exit:
 	if (rc == 0)
 		dbg("result: waiting for sysfs successful '%s'", devpath);
 	else
-		info("error: wait_for_sysfs needs an update to handle the device '%s' "
-		     "properly (%d), please report to <linux-hotplug-devel@lists.sourceforge.net>",
-		     devpath, rc);
+		info("either wait_for_sysfs (udev %s) needs an update to handle the device '%s' "
+		     "properly (%d) or the sysfs-support of your device's driver needs to be fixed, "
+		     "please report to <linux-hotplug-devel@lists.sourceforge.net>",
+		     UDEV_VERSION, devpath, rc);
 
 	return rc;
 }

^ permalink raw reply	[flat|nested] 4+ messages in thread
* wait_for_sysfs update
@ 2004-10-20 11:40 Simone Crippa
  2004-10-21 13:01 ` Kay Sievers
  0 siblings, 1 reply; 4+ messages in thread
From: Simone Crippa @ 2004-10-20 11:40 UTC (permalink / raw)
  To: linux-hotplug

Hello,

I plugged in into my PC a USB stick:

Vendor: Kingston  Model: DataTraveler2.0   Rev: 4.70
Type:   Direct-Access                      ANSI SCSI revision: 02

Which gets recognized by the scsi hotplug agent, but then this message shows 
up in the syslog:

Oct 20 12:51:43 <hostname> wait_for_sysfs[7166]: error: wait_for_sysfs needs 
an update to handle the device '/devices/pci0000:00/0000:00:1d.7/usb4/4-2' 
properly, please report to <linux-hotplug-devel@lists.sourceforge.net>
Oct 20 12:51:43 <hostname> wait_for_sysfs[7168]: error: wait_for_sysfs needs 
an update to handle the device 
'/devices/pci0000:00/0000:00:1d.7/usb4/4-2/4-2:1.0' properly, please report 
to <linux-hotplug-devel@lists.sourceforge.net>

I googled around a bit, without finding anything relevant, so I followed the 
recommendation!


btw, I have a Debian system (testing) with udev 0.034-1, hotplug 
0.0.20040329-1 and libsysfs1 1.1.0-1 . Don't know what is relevant, if you 
need more info, mail me back.


Greatings, Simone


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

end of thread, other threads:[~2004-10-21 13:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-13 18:16 wait_for_sysfs_update Kay Sievers
2004-10-13 19:57 ` wait_for_sysfs_update Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2004-10-20 11:40 wait_for_sysfs update Simone Crippa
2004-10-21 13:01 ` Kay Sievers

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