summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2024-09-03 13:13:47 +0000
committerFelix Fietkau2024-09-03 13:13:49 +0000
commitcd2a7964f2c09994c09388a76e1a9c6aef4297a2 (patch)
tree342ad66cfaef52dfbf5069f93cd99cfa219b9db0
parentcdb41673ceea4d2c1cd748580748a8c77dcc5100 (diff)
device: revert to explicit device_set_present calls
Works around unknown hangs exposed by the recent changes Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--device.c2
-rw-r--r--interface.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/device.c b/device.c
index 405f4d2..9cfb565 100644
--- a/device.c
+++ b/device.c
@@ -1472,5 +1472,5 @@ void device_hotplug_event(const char *name, bool add)
if (!dev || dev->type != &simple_device_type)
return;
- system_if_check(dev);
+ device_set_present(dev, add);
}
diff --git a/interface.c b/interface.c
index c274959..69897dc 100644
--- a/interface.c
+++ b/interface.c
@@ -1119,7 +1119,7 @@ interface_handle_link(struct interface *iface, const char *name,
interface_set_device_config(iface, dev);
if (!link_ext)
- system_if_check(dev);
+ device_set_present(dev, true);
return interface_add_link(iface, dev, vlan, link_ext);
}