Skip to contentSkip to conversation

ast2400: use the 'aspeed' model for the ftgmac100 nic

PATCH In review Andrew Jeffery 1 participant 2 messages Jul 28, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ast2400: use the 'aspeed' model for the ftgmac100 nic

From: Cédric Le Goater <[email protected]>

---
 hw/arm/ast2400.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
hw/arm/ast2400.c +4 -1
index e8ca5a9e26e3..72dd6a29d4e6 100644
@@ -239,7 +239,10 @@ static void ast2400_realize(DeviceState *dev, Error **errp)
 
     /* Net */
     qdev_set_nic_properties(DEVICE(&s->ftgmac100), &nd_table[0]);
-    object_property_set_bool(OBJECT(&s->ftgmac100), true, "realized", &err);
+    object_property_set_bool(OBJECT(&s->ftgmac100), true, "aspeed", &err);
+    object_property_set_bool(OBJECT(&s->ftgmac100), true, "realized",
+                             &local_err);
+    error_propagate(&err, local_err);
     if (err) {
         error_propagate(errp, err);
         return;
Signature · 1 line
2.9.2.597.g66765a4
#1 lore raw

Disregard this, there was some fat-fingering. Sorry for the noise.

Andrew

Quoted 23 lines · Andrew Jeffery

From: Cédric Le Goater <[email protected]>

---
 hw/arm/ast2400.c | 5 ++++-

 1 file changed, 4 insertions(+), 1 deletion(-)
hw/arm/ast2400.c +0 -0
index e8ca5a9e26e3..72dd6a29d4e6 100644
@@ -239,7 +239,10 @@ static void ast2400_realize(DeviceState *dev, Error **errp)


     /* Net */
     qdev_set_nic_properties(DEVICE(&s->ftgmac100), &nd_table[0]); -    object_property_set_bool(OBJECT(&s->ftgmac100), true, "realized", &err); +    object_property_set_bool(OBJECT(&s->ftgmac100), true, "aspeed", &err); +    object_property_set_bool(OBJECT(&s->ftgmac100), true, "realized", +                             &local_err);
+    error_propagate(&err, local_err);
     if (err) {
         error_propagate(errp, err);
         return;