projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e2f32b
)
hw/net: Have eTSEC device inherit from DYNAMIC_SYS_BUS_DEVICE
author
Philippe Mathieu-Daudé
<philmd@linaro.org>
Sat, 25 Jan 2025 17:36:57 +0000
(18:36 +0100)
committer
Philippe Mathieu-Daudé
<philmd@linaro.org>
Sun, 16 Feb 2025 13:25:07 +0000
(14:25 +0100)
Because the network eTSEC device can be optionally plugged on the
TYPE_PLATFORM_BUS_DEVICE, have it inherit TYPE_DYNAMIC_SYS_BUS_DEVICE.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alexander Graf <graf@amazon.com>
Reviewed-by: Clément Mathieu--Drif <clement.mathieu--drif@eviden.com>
Tested-by: Bernhard Beschow <shentey@gmail.com>
Acked-by: Bernhard Beschow <shentey@gmail.com>
Message-Id: <
20250125181343
.59151-8-philmd@linaro.org>
hw/net/fsl_etsec/etsec.c
patch
|
blob
|
history
diff --git
a/hw/net/fsl_etsec/etsec.c
b/hw/net/fsl_etsec/etsec.c
index 781b9003954bb105985f8b16321048602f47c911..3ce4fa2662d6ce13e90d163a8a0016301960f2d4 100644
(file)
--- a/
hw/net/fsl_etsec/etsec.c
+++ b/
hw/net/fsl_etsec/etsec.c
@@
-425,14
+425,12
@@
static void etsec_class_init(ObjectClass *klass, void *data)
dc->realize = etsec_realize;
device_class_set_legacy_reset(dc, etsec_reset);
device_class_set_props(dc, etsec_properties);
- /* Supported by ppce500 machine */
- dc->user_creatable = true;
}
static const TypeInfo etsec_types[] = {
{
.name = TYPE_ETSEC_COMMON,
- .parent = TYPE_SYS_BUS_DEVICE,
+ .parent = TYPE_
DYNAMIC_
SYS_BUS_DEVICE,
.instance_size = sizeof(eTSEC),
.class_init = etsec_class_init,
.instance_init = etsec_instance_init,