kernel: bump to 4.4.35
[openwrt/staging/yousong.git] / target / linux / generic / patches-4.4 / 075-0002-net-ethernet-bgmac-add-dma_dev-pointer.patch
index eeef86af9a69f56424752edbfd30b151704ed9fa..dd5b8772e3a2ad4f5bb9fd8ec59eb77c8cc92aa3 100644 (file)
@@ -38,7 +38,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
        int empty_slot;
        bool freed = false;
        unsigned bytes_compl = 0, pkts_compl = 0;
-@@ -352,7 +352,7 @@ static void bgmac_dma_rx_enable(struct b
+@@ -355,7 +355,7 @@ static void bgmac_dma_rx_enable(struct b
  static int bgmac_dma_rx_skb_for_slot(struct bgmac *bgmac,
                                     struct bgmac_slot_info *slot)
  {
@@ -47,7 +47,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
        dma_addr_t dma_addr;
        struct bgmac_rx_header *rx;
        void *buf;
-@@ -441,7 +441,7 @@ static int bgmac_dma_rx_read(struct bgma
+@@ -444,7 +444,7 @@ static int bgmac_dma_rx_read(struct bgma
        end_slot /= sizeof(struct bgmac_dma_desc);
  
        while (ring->start != end_slot) {
@@ -56,7 +56,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
                struct bgmac_slot_info *slot = &ring->slots[ring->start];
                struct bgmac_rx_header *rx = slot->buf + BGMAC_RX_BUF_OFFSET;
                struct sk_buff *skb;
-@@ -544,7 +544,7 @@ static bool bgmac_dma_unaligned(struct b
+@@ -547,7 +547,7 @@ static bool bgmac_dma_unaligned(struct b
  static void bgmac_dma_tx_ring_free(struct bgmac *bgmac,
                                   struct bgmac_dma_ring *ring)
  {
@@ -65,7 +65,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
        struct bgmac_dma_desc *dma_desc = ring->cpu_base;
        struct bgmac_slot_info *slot;
        int i;
-@@ -570,7 +570,7 @@ static void bgmac_dma_tx_ring_free(struc
+@@ -573,7 +573,7 @@ static void bgmac_dma_tx_ring_free(struc
  static void bgmac_dma_rx_ring_free(struct bgmac *bgmac,
                                   struct bgmac_dma_ring *ring)
  {
@@ -74,7 +74,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
        struct bgmac_slot_info *slot;
        int i;
  
-@@ -591,7 +591,7 @@ static void bgmac_dma_ring_desc_free(str
+@@ -594,7 +594,7 @@ static void bgmac_dma_ring_desc_free(str
                                     struct bgmac_dma_ring *ring,
                                     int num_slots)
  {
@@ -83,7 +83,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
        int size;
  
        if (!ring->cpu_base)
-@@ -629,7 +629,7 @@ static void bgmac_dma_free(struct bgmac
+@@ -632,7 +632,7 @@ static void bgmac_dma_free(struct bgmac
  
  static int bgmac_dma_alloc(struct bgmac *bgmac)
  {
@@ -92,7 +92,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
        struct bgmac_dma_ring *ring;
        static const u16 ring_base[] = { BGMAC_DMA_BASE0, BGMAC_DMA_BASE1,
                                         BGMAC_DMA_BASE2, BGMAC_DMA_BASE3, };
-@@ -1730,6 +1730,7 @@ static int bgmac_probe(struct bcma_devic
+@@ -1733,6 +1733,7 @@ static int bgmac_probe(struct bcma_devic
        net_dev->ethtool_ops = &bgmac_ethtool_ops;
        bgmac = netdev_priv(net_dev);
        bgmac->dev = &core->dev;