[zynq][gem] fix newly introduced bug setting up tx descriptors for the first time

Change-Id: I04b174fa9bde08b8a5a334bd33e049f8e445bb91
This commit is contained in:
Travis Geiselbrecht
2015-05-07 19:39:48 -07:00
parent 71313ca6e6
commit b49071770d

View File

@@ -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*/