Browse Source

system-dummy: set present state only for simple devices

Fixes an issue with bringing up VLANs/bridges too early

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Felix Fietkau 3 years ago
parent
commit
3a2b21001c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      system-dummy.c

+ 3 - 1
system-dummy.c

@@ -124,7 +124,9 @@ void system_if_clear_state(struct device *dev)
 
 int system_if_check(struct device *dev)
 {
-	device_set_present(dev, true);
+	if (dev->type == &simple_device_type)
+		device_set_present(dev, true);
+
 	device_set_link(dev, true);
 
 	return 0;