qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-arm] [PATCH] ftgmac100: do not link to netdev


From: Jason Wang
Subject: Re: [Qemu-arm] [PATCH] ftgmac100: do not link to netdev
Date: Tue, 21 May 2019 11:22:17 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1


On 2019/5/21 上午2:11, Cédric Le Goater wrote:
qdev_set_nic_properties() is already used in the Aspeed SoC level to
bind the ftgmac100 device to the netdev.

This is fixing support for multiple net devices.

Signed-off-by: Cédric Le Goater <address@hidden>
---
  hw/net/ftgmac100.c | 2 --
  1 file changed, 2 deletions(-)

diff --git a/hw/net/ftgmac100.c b/hw/net/ftgmac100.c
index 790430346b51..d9986c6baa92 100644
--- a/hw/net/ftgmac100.c
+++ b/hw/net/ftgmac100.c
@@ -1016,8 +1016,6 @@ static void ftgmac100_realize(DeviceState *dev, Error 
**errp)
      sysbus_init_irq(sbd, &s->irq);
      qemu_macaddr_default_if_unset(&s->conf.macaddr);
- s->conf.peers.ncs[0] = nd_table[0].netdev;
-
      s->nic = qemu_new_nic(&net_ftgmac100_info, &s->conf,
                            object_get_typename(OBJECT(dev)), DEVICE(dev)->id,
                            s);


Applied.

Thanks




reply via email to

[Prev in Thread] Current Thread [Next in Thread]