From patchwork Tue Apr 16 00:24:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Crosthwaite X-Patchwork-Id: 236785 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D297F2C00C4 for ; Tue, 16 Apr 2013 10:29:28 +1000 (EST) Received: from localhost ([::1]:36081 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URtm3-0001Or-0U for incoming@patchwork.ozlabs.org; Mon, 15 Apr 2013 20:29:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URtjc-0006m8-9O for qemu-devel@nongnu.org; Mon, 15 Apr 2013 20:26:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URtjb-0000CL-CJ for qemu-devel@nongnu.org; Mon, 15 Apr 2013 20:26:56 -0400 Received: from mail-pb0-f43.google.com ([209.85.160.43]:64209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URtjb-0000CC-6r for qemu-devel@nongnu.org; Mon, 15 Apr 2013 20:26:55 -0400 Received: by mail-pb0-f43.google.com with SMTP id md4so2787889pbc.2 for ; Mon, 15 Apr 2013 17:26:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=fQr20u9at2okpwh5Ca4oDYwxgeq6CTUi/hfUZr7tYz4=; b=MFRTHHi4dvMV7ZWx0aqIeSPsLiXuMyQEmc5AU9XPgFej0G3YVMQss03q73uWYcCqv+ Vtq8SvDztS+3VwHvtz7PelkmurKXrvoXS5l2bQkTZ7VosFLSZUDh80VrSiD6mNRq2sGN j6NGXr1PjiWq+QOhPQ0EfFVDFNq76u1f/wDhVcefOpRZqF47nyHMBhm5niAb5Nc8kdn7 tQZa3AOnshfL6CQL81Z1k/60V1CkO+kPF1jWD2r5SJtl5eatjX6jl/ALq8YNd4p2KGXc C854xxu3XY1mSqeoEe23UgK21lzHunxyZt8QQN0/dK10O7Xxp3NiDXzkw2H6955QgN8r 33jg== X-Received: by 10.68.254.225 with SMTP id al1mr81097pbd.69.1366072014451; Mon, 15 Apr 2013 17:26:54 -0700 (PDT) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPS id vk7sm22119015pbc.41.2013.04.15.17.26.52 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Mon, 15 Apr 2013 17:26:53 -0700 (PDT) From: peter.crosthwaite@xilinx.com To: qemu-devel@nongnu.org Date: Tue, 16 Apr 2013 10:24:39 +1000 Message-Id: <0273b4520d944559c91dca6c4ef0e2034efb444a.1366069170.git.peter.crosthwaite@xilinx.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: MIME-Version: 1.0 X-Gm-Message-State: ALoCoQkEk68t+fc0btEzQ98QiMPWapjUkX5MnQp4VrcrVbnU2bancqrj0aXYcKcmyR/amQN/yoXO X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.160.43 Cc: edgar.iglesias@gmail.com Subject: [Qemu-devel] [PATCH v6 10/16] petalogix_ml605_mmu: Attach ethernet to machine X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Peter Crosthwaite Explicitly make the ethernet a child of the machine. This is needed to set and use links pre-realize. Also makes the ethernet initialization consistent with its peer DMA. Signed-off-by: Peter Crosthwaite Reviewed-by: Andreas Färber Acked-by: Edgar E. Iglesias --- hw/microblaze/petalogix_ml605_mmu.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/microblaze/petalogix_ml605_mmu.c b/hw/microblaze/petalogix_ml605_mmu.c index d7391e7..ea1e772 100644 --- a/hw/microblaze/petalogix_ml605_mmu.c +++ b/hw/microblaze/petalogix_ml605_mmu.c @@ -134,6 +134,8 @@ petalogix_ml605_init(QEMUMachineInitArgs *args) dma = qdev_create(NULL, "xlnx.axi-dma"); /* FIXME: attach to the sysbus instead */ + object_property_add_child(qdev_get_machine(), "xilinx-eth", OBJECT(eth0), + NULL); object_property_add_child(qdev_get_machine(), "xilinx-dma", OBJECT(dma), NULL);