mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
[PATCH] 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.
This commit is contained in:
parent
707680b1cf
commit
a75910b4c0
@ -60,7 +60,7 @@ static int wait_for_class_device_attributes(struct sysfs_class_device *class_dev
|
||||
{ .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 },
|
||||
|
Loading…
x
Reference in New Issue
Block a user