From 3a2b21001c3c93dbe8502a8df465e415f18a84b1 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 5 Nov 2020 11:58:40 +0100 Subject: system-dummy: set present state only for simple devices Fixes an issue with bringing up VLANs/bridges too early Signed-off-by: Felix Fietkau --- system-dummy.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'system-dummy.c') diff --git a/system-dummy.c b/system-dummy.c index aeba9db..7a5c839 100644 --- a/system-dummy.c +++ b/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; -- cgit v1.2.1