linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fix unusual sysfs behavior for pcmcia_socket
@ 2004-10-14  4:55 Kay Sievers
  2004-10-14 20:42 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Kay Sievers @ 2004-10-14  4:55 UTC (permalink / raw)
  To: linux-hotplug

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

All files in /sys/class/pcmcia_socket/pcmcia_socket0/* are unreadable
without a card inserted:

  read(3, 0x9167858, 4096) = -1 ENODEV (No such device)

So we need to skip that step for now.

Thanks,
Kay

[-- Attachment #2: udev-pcmcia.patch --]
[-- Type: text/plain, Size: 665 bytes --]

===== wait_for_sysfs.c 1.16 vs edited =====
--- 1.16/wait_for_sysfs.c	2004-10-14 00:15:21 +02:00
+++ edited/wait_for_sysfs.c	2004-10-14 06:42:43 +02:00
@@ -60,7 +60,7 @@ static int wait_for_class_device_attribu
 		{ .subsystem = "net",		.file = "ifindex" },
 		{ .subsystem = "scsi_host",	.file = "unique_id" },
 		{ .subsystem = "scsi_device",	.file = NULL },
-		{ .subsystem = "pcmcia_socket",	.file = "card_type" },
+		{ .subsystem = "pcmcia_socket",	.file = NULL }, /* all files are unreadable in empty slot :( */
 		{ .subsystem = "usb_host",	.file = NULL },
 		{ .subsystem = "bluetooth",	.file = "address" },
 		{ .subsystem = "i2c-adapter",	.file = NULL },

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

end of thread, other threads:[~2004-10-14 20:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-14  4:55 fix unusual sysfs behavior for pcmcia_socket Kay Sievers
2004-10-14 20:42 ` Greg KH

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