From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Thu, 14 Oct 2004 04:55:02 +0000 Subject: fix unusual sysfs behavior for pcmcia_socket Message-Id: <20041014045502.GA14286@vrfy.org> MIME-Version: 1 Content-Type: multipart/mixed; boundary="FCuugMFkClbJLl1L" List-Id: To: linux-hotplug@vger.kernel.org --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="udev-pcmcia.patch" ===== 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 }, --FCuugMFkClbJLl1L-- ------------------------------------------------------- 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