From b49071770da25fc48b9976129e7468a253f7d5b4 Mon Sep 17 00:00:00 2001 From: Travis Geiselbrecht Date: Thu, 7 May 2015 19:39:48 -0700 Subject: [PATCH] [zynq][gem] fix newly introduced bug setting up tx descriptors for the first time Change-Id: I04b174fa9bde08b8a5a334bd33e049f8e445bb91 --- platform/zynq/gem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/zynq/gem.c b/platform/zynq/gem.c index 522084ee..0351535f 100644 --- a/platform/zynq/gem.c +++ b/platform/zynq/gem.c @@ -289,7 +289,8 @@ static status_t gem_cfg_buffer_descs(void) /* Claim ownership of TX descriptors for the driver */ for (unsigned i = 0; i < GEM_TX_BUF_CNT; i++) { - gem.descs->tx_tbl[i].ctrl |= TX_DESC_USED; + gem.descs->tx_tbl[i].addr = 0; + gem.descs->tx_tbl[i].ctrl = TX_DESC_USED; } /* Both set of descriptors need wrap bits set at the end of their tables*/