Skip to content

Commit

Permalink
net: xilinx_emaclite: Fix problem with first incoming packet
Browse files Browse the repository at this point in the history
You can't ping the board or connect to it unless you send
any packet out from board.

Tested-by: John Williams <john.williams@petalogix.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
Acked-by: John Linn <john.linn@xilinx.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Michal Simek authored and David S. Miller committed Sep 22, 2009
1 parent 07653aa commit 95acf7d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/net/xilinx_emaclite.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,18 +134,15 @@ static void xemaclite_enable_interrupts(struct net_local *drvdata)
}

/* Enable the Rx interrupts for the first buffer */
reg_data = in_be32(drvdata->base_addr + XEL_RSR_OFFSET);
out_be32(drvdata->base_addr + XEL_RSR_OFFSET,
reg_data | XEL_RSR_RECV_IE_MASK);
XEL_RSR_RECV_IE_MASK);

/* Enable the Rx interrupts for the second Buffer if
* configured in HW */
if (drvdata->rx_ping_pong != 0) {
reg_data = in_be32(drvdata->base_addr + XEL_BUFFER_OFFSET +
XEL_RSR_OFFSET);
out_be32(drvdata->base_addr + XEL_BUFFER_OFFSET +
XEL_RSR_OFFSET,
reg_data | XEL_RSR_RECV_IE_MASK);
XEL_RSR_RECV_IE_MASK);
}

/* Enable the Global Interrupt Enable */
Expand Down

0 comments on commit 95acf7d

Please sign in to comment.