fix unusual sysfs behavior for pcmcia_socket
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
===== wait_for_sysfs.c 1.16 vs edited =====
wait_for_sysfs.c +1 -1
@@ -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 },
Greg KH
AppliedQuoted 6 lines · Kay Sievers
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.
Applied, thanks.
greg k-h
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel