]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
net: xilinx_emaclite: Fix problem with first incomming packet
authorMichal Simek <monstr@monstr.eu>
Mon, 7 Sep 2009 19:22:43 +0000 (21:22 +0200)
committerMichal Simek <monstr@monstr.eu>
Mon, 7 Sep 2009 19:22:43 +0000 (21:22 +0200)
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>
drivers/net/xilinx_emaclite.c

index 7e05b40ae36b50b6eb66d9512ae3a49ba2d36a47..ea33345cff78601f1e937168b81bc5b03c184d73 100755 (executable)
@@ -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 */