From 1bf8e555bb3466baf775113ab27aa8f05f0e6aa7 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 13 Apr 2015 17:32:33 +0000 Subject: kernel: sync bgmac changes with latest upstream submission Signed-off-by: Felix Fietkau SVN-Revision: 45420 --- .../generic/patches-3.18/077-11-bgmac-fix-DMA-rx-corruption.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'target/linux/generic/patches-3.18/077-11-bgmac-fix-DMA-rx-corruption.patch') diff --git a/target/linux/generic/patches-3.18/077-11-bgmac-fix-DMA-rx-corruption.patch b/target/linux/generic/patches-3.18/077-11-bgmac-fix-DMA-rx-corruption.patch index 5f5fe93703..846e2ee0e2 100644 --- a/target/linux/generic/patches-3.18/077-11-bgmac-fix-DMA-rx-corruption.patch +++ b/target/linux/generic/patches-3.18/077-11-bgmac-fix-DMA-rx-corruption.patch @@ -54,8 +54,8 @@ Signed-off-by: Felix Fietkau struct device *dma_dev = bgmac->core->dma_dev; struct bgmac_slot_info *slot = &ring->slots[ring->start]; struct bgmac_rx_header *rx = slot->buf + BGMAC_RX_BUF_OFFSET; -@@ -463,6 +473,8 @@ static int bgmac_dma_rx_read(struct bgma - break; +@@ -459,6 +469,8 @@ static int bgmac_dma_rx_read(struct bgma + ring->start = 0; } + bgmac_dma_rx_update_index(bgmac, ring); @@ -63,7 +63,7 @@ Signed-off-by: Felix Fietkau return handled; } -@@ -682,6 +694,8 @@ static int bgmac_dma_init(struct bgmac * +@@ -678,6 +690,8 @@ static int bgmac_dma_init(struct bgmac * if (ring->unaligned) bgmac_dma_rx_enable(bgmac, ring); @@ -72,7 +72,7 @@ Signed-off-by: Felix Fietkau for (j = 0; j < ring->num_slots; j++) { err = bgmac_dma_rx_skb_for_slot(bgmac, &ring->slots[j]); if (err) -@@ -690,12 +704,7 @@ static int bgmac_dma_init(struct bgmac * +@@ -686,12 +700,7 @@ static int bgmac_dma_init(struct bgmac * bgmac_dma_rx_setup_desc(bgmac, ring, j); } -- cgit v1.2.3