From: Fam Zheng <famz@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
qemu-arm@nongnu.org, "Philippe Mathieu-Daudé" <f4bug@amsat.org>
Subject: [Qemu-devel] [PATCH v6 6/6] xilinx_axidma: Convert to DEFINE_PROP_LINK
Date: Tue, 5 Sep 2017 21:11:49 +0800 [thread overview]
Message-ID: <20170905131149.10669-7-famz@redhat.com> (raw)
In-Reply-To: <20170905131149.10669-1-famz@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
hw/dma/xilinx_axidma.c | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/hw/dma/xilinx_axidma.c b/hw/dma/xilinx_axidma.c
index 3987b5ff96..9b48103574 100644
--- a/hw/dma/xilinx_axidma.c
+++ b/hw/dma/xilinx_axidma.c
@@ -562,18 +562,6 @@ static void xilinx_axidma_init(Object *obj)
XilinxAXIDMA *s = XILINX_AXI_DMA(obj);
SysBusDevice *sbd = SYS_BUS_DEVICE(obj);
- object_property_add_link(obj, "axistream-connected", TYPE_STREAM_SLAVE,
- (Object **)&s->tx_data_dev,
- qdev_prop_allow_set_link_before_realize,
- OBJ_PROP_LINK_UNREF_ON_RELEASE,
- &error_abort);
- object_property_add_link(obj, "axistream-control-connected",
- TYPE_STREAM_SLAVE,
- (Object **)&s->tx_control_dev,
- qdev_prop_allow_set_link_before_realize,
- OBJ_PROP_LINK_UNREF_ON_RELEASE,
- &error_abort);
-
object_initialize(&s->rx_data_dev, sizeof(s->rx_data_dev),
TYPE_XILINX_AXI_DMA_DATA_STREAM);
object_initialize(&s->rx_control_dev, sizeof(s->rx_control_dev),
@@ -593,6 +581,10 @@ static void xilinx_axidma_init(Object *obj)
static Property axidma_properties[] = {
DEFINE_PROP_UINT32("freqhz", XilinxAXIDMA, freqhz, 50000000),
+ DEFINE_PROP_LINK("axistream-connected", XilinxAXIDMA,
+ tx_data_dev, TYPE_STREAM_SLAVE, StreamSlave *),
+ DEFINE_PROP_LINK("axistream-control-connected", XilinxAXIDMA,
+ tx_control_dev, TYPE_STREAM_SLAVE, StreamSlave *),
DEFINE_PROP_END_OF_LIST(),
};
--
2.13.5
next prev parent reply other threads:[~2017-09-05 13:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-05 13:11 [Qemu-devel] [PATCH v6 0/6] arm: Make use of DEFINE_PROP_LINK Fam Zheng
2017-09-05 13:11 ` [Qemu-devel] [PATCH v6 1/6] armv7m: Convert bitband.source-memory to DEFINE_PROP_LINK Fam Zheng
2017-09-05 13:11 ` [Qemu-devel] [PATCH v6 2/6] armv7m: Convert armv7m.memory " Fam Zheng
2017-09-05 13:11 ` [Qemu-devel] [PATCH v6 3/6] gicv3: Convert " Fam Zheng
2017-09-05 13:44 ` Philippe Mathieu-Daudé
2017-09-05 15:35 ` Fam Zheng
2017-09-05 16:20 ` Philippe Mathieu-Daudé
2017-09-05 13:11 ` [Qemu-devel] [PATCH v6 4/6] xlnx_zynqmp: " Fam Zheng
2017-09-05 13:11 ` [Qemu-devel] [PATCH v6 5/6] xilinx_axienet: " Fam Zheng
2017-09-05 13:11 ` Fam Zheng [this message]
2017-09-05 15:47 ` [Qemu-devel] [PATCH v6 0/6] arm: Make use of DEFINE_PROP_LINK Peter Maydell
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=20170905131149.10669-7-famz@redhat.com \
--to=famz@redhat.com \
--cc=f4bug@amsat.org \
--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).