qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Wim Vervoorn <wvervoorn@eltan.com>
To: "Cédric Le Goater" <clg@kaod.org>, "Jason Wang" <jasowang@redhat.com>
Cc: Andrew Jeffery <andrew@aj.id.au>,
	Peter Maydell <peter.maydell@linaro.org>,
	"qemu-arm@nongnu.org" <qemu-arm@nongnu.org>,
	Joel Stanley <joel@jms.id.au>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] ftgmac100: do not link to netdev
Date: Tue, 21 May 2019 07:26:53 +0000	[thread overview]
Message-ID: <ce3a871593c44d248a30320febd649fd@Eltsrv03.Eltan.local> (raw)
In-Reply-To: <20190520181111.20407-1-clg@kaod.org>

Hello Cédric,

Thanks a lot for your help. It is working now!

Best Regards,
Wim Vervoorn



"THIS MESSAGE CONTAINS CONFIDENTIAL INFORMATION. UNLESS YOU ARE THE INTENDED RECIPIENT OF THIS MESSAGE, ANY USE OF THIS MESSAGE IS STRICTLY PROHIBITED. IF YOU HAVE RECEIVED THIS MESSAGE IN ERROR, PLEASE IMMEDIATELY NOTIFY THE SENDER BY TELEPHONE +31-(0)73-5944664 OR REPLY EMAIL, AND IMMEDIATELY DELETE THIS MESSAGE AND ALL COPIES." 

-----Original Message-----
From: Cédric Le Goater [mailto:clg@kaod.org] 
Sent: Monday, May 20, 2019 8:11 PM
To: Jason Wang <jasowang@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>; Wim Vervoorn <wvervoorn@eltan.com>; Andrew Jeffery <andrew@aj.id.au>; Joel Stanley <joel@jms.id.au>; qemu-arm@nongnu.org; qemu-devel@nongnu.org; Cédric Le Goater <clg@kaod.org>
Subject: [PATCH] ftgmac100: do not link to netdev

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 <clg@kaod.org>
---
 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);
--
2.20.1




      parent reply	other threads:[~2019-05-21 12:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-20 18:11 [Qemu-devel] [PATCH] ftgmac100: do not link to netdev Cédric Le Goater
2019-05-21  3:22 ` Jason Wang
2019-05-21  7:26 ` Wim Vervoorn [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ce3a871593c44d248a30320febd649fd@Eltsrv03.Eltan.local \
    --to=wvervoorn@eltan.com \
    --cc=andrew@aj.id.au \
    --cc=clg@kaod.org \
    --cc=jasowang@redhat.com \
    --cc=joel@jms.id.au \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).