1. 28 8月, 2019 2 次提交
  2. 19 8月, 2019 3 次提交
  3. 12 7月, 2019 1 次提交
  4. 05 7月, 2019 1 次提交
    • R
      net: ethernet: mediatek: Fix overlapping capability bits. · e2c74694
      René van Dorst 提交于
      Both MTK_TRGMII_MT7621_CLK and MTK_PATH_BIT are defined as bit 10.
      
      This can causes issues on non-MT7621 devices which has the
      MTK_PATH_BIT(MTK_ETH_PATH_GMAC1_RGMII) and MTK_TRGMII capability set.
      The wrong TRGMII setup code can be executed. The current wrongly executed
      code doesn’t do any harm on MT7623 and the TRGMII setup for the MT7623
      SOC side is done in MT7530 driver So it wasn’t noticed in the test.
      
      Move all capability bits in one enum so that they are all unique and easy
      to expand in the future.
      
      Because mtk_eth_path enum is merged in to mkt_eth_capabilities, the
      variable path value is no longer between 0 to number of paths,
      mtk_eth_path_name can’t be used anymore in this form. Convert the
      mtk_eth_path_name array to a function to lookup the pathname.
      
      The old code walked thru the mtk_eth_path enum, which is also merged
      with mkt_eth_capabilities. Expand array mtk_eth_muxc so it can store the
      name and capability bit of the mux. Convert the code so it can walk thru
      the mtk_eth_muxc array.
      
      Fixes: 8efaa653 ("net: ethernet: mediatek: Add MT7621 TRGMII mode support")
      Signed-off-by: NRené van Dorst <opensource@vdorst.com>
      
      v1->v2:
      - Move all capability bits in one enum, suggested by Willem de Bruijn
      - Convert the mtk_eth_path_name array to a function to lookup the pathname
      - Expand array mtk_eth_muxc so it can also store the name and capability
        bit of the mux
      - Updated commit message
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e2c74694
  5. 23 6月, 2019 1 次提交
  6. 05 6月, 2019 1 次提交
  7. 04 6月, 2019 3 次提交
  8. 31 1月, 2019 1 次提交
  9. 30 7月, 2018 1 次提交
    • S
      net-next: mediatek: cleanup unnecessary get chip id and its user · 2d14ba72
      Sean Wang 提交于
      Since driver is devicetree-based, all device type and charateristic can be
      determined by the compatible string and its data. It's unnecessary to
      create another dependent function to check chip ID and then decide whether
      the specific funciton is being supported on a certain device. It can be
      totally replaced by the existing flag, so a cleanup is made by removing
      the function and the only user, HWLRO.
      
      MT2701 also have a missing HWLRO support in old code, so add it the same
      patch.
      Signed-off-by: NSean Wang <sean.wang@mediatek.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2d14ba72
  10. 27 12月, 2017 1 次提交
  11. 22 10月, 2017 1 次提交
  12. 10 8月, 2017 2 次提交
  13. 02 8月, 2017 2 次提交
    • S
      net-next: mediatek: add support for MediaTek MT7622 SoC · 42c03844
      Sean Wang 提交于
      This patch adds the driver for ethernet controller on MT7622 SoC. It has
      the similar handling logic as the previously MT7623 does, but there are
      additions against with MT7623 SoC, the shared SGMII given for the dual
      GMACs and including 5-ports 10/100 embedded switch support (ESW) as the
      GMAC1 option, thus more clocks consumers for the extra feature are
      introduced here. So for ease portability and maintenance, those
      differences all are being kept inside the platform data as other drivers
      usually do. Currently testing successfully is done with those patches for
      the conditions such as GMAC2 with IP1001 PHY via RGMII and GMAC1/2 with
      RTL8211F PHY via SGMII.
      Signed-off-by: NSean Wang <sean.wang@mediatek.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      42c03844
    • S
      net-next: mediatek: add platform data to adapt into various hardware · 2ec50f57
      Sean Wang 提交于
      This patch is the preparation patch in order to adapt into various
      hardware through adding platform data which holds specific characteristics
      among MediaTek SoCs and introducing the unified clock handler for those
      distinct clock requirements depending on different features such as
      TRGMII and SGMII getting support on the target SoC. And finally, add
      enhancement with given the generic description for Kconfig and remove the
      unnecessary machine type dependency in Makefile.
      Signed-off-by: NSean Wang <sean.wang@mediatek.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2ec50f57
  14. 21 6月, 2017 2 次提交
  15. 18 4月, 2017 1 次提交
  16. 08 4月, 2017 1 次提交
  17. 07 10月, 2016 2 次提交
  18. 27 9月, 2016 1 次提交
  19. 22 9月, 2016 3 次提交
  20. 19 9月, 2016 1 次提交
    • N
      net: ethernet: mediatek: add HW LRO functions of PDMA RX rings · ee406810
      Nelson Chang 提交于
      The codes add the large receive offload (LRO) functions by hardware as below:
      1) PDMA has total four RX rings that one is the normal ring, and others can
         be configured as LRO rings.
      2) Only TCP/IP RX flows can be offloaded. The hardware can set four IP
         addresses at most, if the destination IP of the RX flow matches one of
         them, it has the chance to be offloaded.
      3) There three RX flows can be offloaded at most, and one flow is mapped to
         one RX ring.
      4) If there are more than three candidate RX flows, the hardware can
         choose three of them by throughput comparison results.
      Signed-off-by: NNelson Chang <nelson.chang@mediatek.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ee406810
  21. 16 9月, 2016 3 次提交
  22. 01 9月, 2016 1 次提交
  23. 27 8月, 2016 1 次提交
  24. 30 6月, 2016 2 次提交
  25. 11 6月, 2016 2 次提交