1. 14 8月, 2016 2 次提交
  2. 13 7月, 2016 1 次提交
  3. 07 7月, 2016 1 次提交
  4. 05 7月, 2016 1 次提交
  5. 03 7月, 2016 1 次提交
  6. 30 6月, 2016 4 次提交
  7. 11 6月, 2016 11 次提交
  8. 04 6月, 2016 4 次提交
  9. 13 4月, 2016 8 次提交
  10. 24 3月, 2016 1 次提交
  11. 19 3月, 2016 2 次提交
  12. 15 3月, 2016 3 次提交
    • A
      net: mediatek: check device_reset return code · 916848ca
      Arnd Bergmann 提交于
      The device_reset() function may fail, so we have to check
      its return value, e.g. to make deferred probing work correctly.
      gcc warns about it because of the warn_unused_result attribute:
      
      drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_probe':
      drivers/net/ethernet/mediatek/mtk_eth_soc.c:1679:2: error: ignoring return value of 'device_reset', declared with attribute warn_unused_result [-Werror=unused-result]
      
      This adds the trivial error check to propagate the return value
      to the generic platform device probe code.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      916848ca
    • A
      net: mediatek: remove incorrect dma_mask assignment · a25cdc0d
      Arnd Bergmann 提交于
      Device drivers should not mess with the DMA mask directly,
      but instead call dma_set_mask() etc if needed.
      
      In case of the mtk_eth_soc driver, the mask already gets set
      correctly when the device is created, and setting it again
      is against the documented API.
      
      This removes the incorrect setting.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a25cdc0d
    • A
      net: mediatek: use dma_addr_t correctly · 6aab1a62
      Arnd Bergmann 提交于
      dma_alloc_coherent() expects a dma_addr_t pointer as its argument,
      not an 'unsigned int', and gcc correctly warns about broken
      code in the mtk_init_fq_dma function:
      
      drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_init_fq_dma':
      drivers/net/ethernet/mediatek/mtk_eth_soc.c:463:13: error: passing argument 3 of 'dma_alloc_coherent' from incompatible pointer type [-Werror=incompatible-pointer-types]
      
      This changes the type of the local variable to dma_addr_t.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6aab1a62
  13. 11 3月, 2016 1 次提交
    • J
      net-next: mediatek: add support for MT7623 ethernet · 656e7052
      John Crispin 提交于
      Add ethernet support for MediaTek SoCs from the MT7623 family. These have
      dual GMAC. Depending on the exact version, there might be a built-in
      Gigabit switch (MT7530). The core does not have the typical DMA ring setup.
      Instead there is a linked list that we add descriptors to. There is only
      one linked list that both MACs use together. There is a special field
      inside the TX descriptors called the VQID. This allows us to assign packets
      to different internal queues. By using a separate id for each MAC we are
      able to get deterministic results for BQL. Additionally we need to
      provide the core with a block of scratch memory that is the same size as
      the RX ring and data buffer. This is really needed to make the HW datapath
      work. Although the driver does not support this yet, we still need to
      assign the memory and tell the core about it for RX to work.
      Signed-off-by: NFelix Fietkau <nbd@openwrt.org>
      Signed-off-by: NMichael Lee <igvtee@gmail.com>
      Signed-off-by: NJohn Crispin <blogic@openwrt.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      656e7052