1. 10 1月, 2017 1 次提交
  2. 11 12月, 2016 1 次提交
    • L
      net: ethernet: stmmac: remove private tx queue lock · 739c8e14
      Lino Sanfilippo 提交于
      The driver uses a private lock for synchronization of the xmit function and
      the xmit completion handler, but since the NETIF_F_LLTX flag is not set,
      the xmit function is also called with the xmit_lock held.
      
      On the other hand the completion handler uses the reverse locking order by
      first taking the private lock and (in case that the tx queue had been
      stopped) then the xmit_lock.
      
      Improve the locking by removing the private lock and using only the
      xmit_lock for synchronization instead.
      Signed-off-by: NLino Sanfilippo <LinoSanfilippo@gmx.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      739c8e14
  3. 16 11月, 2016 1 次提交
  4. 20 10月, 2016 1 次提交
  5. 12 10月, 2016 1 次提交
  6. 28 6月, 2016 1 次提交
  7. 04 5月, 2016 1 次提交
  8. 03 4月, 2016 3 次提交
  9. 03 3月, 2016 7 次提交
  10. 26 5月, 2015 1 次提交
    • M
      net: stmmac: create one debugfs dir per net-device · 466c5ac8
      Mathieu Olivari 提交于
      stmmac DebugFS entries are currently global to the driver. As a result,
      having more than one stmmac device in the system creates the following
      error:
      * ERROR stmmaceth, debugfs create directory failed
      * stmmac_hw_setup: failed debugFS registration
      
      This also results in being able to access the debugfs information for
      the first registered device only.
      
      This patch changes the debugfs structure to have one sub-directory per
      net-device. Files under "/sys/kernel/debug/stmmaceth" will now show-up
      under /sys/kernel/debug/stmmaceth/ethN/.
      Signed-off-by: NMathieu Olivari <mathieu@codeaurora.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      466c5ac8
  11. 22 5月, 2015 2 次提交
  12. 09 4月, 2015 1 次提交
  13. 12 11月, 2014 1 次提交
  14. 08 11月, 2014 1 次提交
    • A
      stmmac: platform: fix sparse warnings · f10f9fb2
      Andy Shevchenko 提交于
      This patch fixes the following sparse warnings. One is fixed by casting return
      value to a return type of the function. The others by creating a specific
      stmmac_platform.h which provides the bits related to the platform driver.
      
      drivers/net/ethernet/stmicro/stmmac/dwmac-meson.c:59:29: warning: incorrect type in return expression (different address spaces)
      drivers/net/ethernet/stmicro/stmmac/dwmac-meson.c:59:29:    expected void *
      drivers/net/ethernet/stmicro/stmmac/dwmac-meson.c:59:29:    got void [noderef] <asn:2>*reg
      
      drivers/net/ethernet/stmicro/stmmac/dwmac-meson.c:64:29: warning: symbol 'meson6_dwmac_data' was not declared. Should it be static?
      drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c:354:29: warning: symbol 'stih4xx_dwmac_data' was not declared. Should it be static?
      drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c:361:29: warning: symbol 'stid127_dwmac_data' was not declared. Should it be static?
      drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c:133:29: warning: symbol 'sun7i_gmac_data' was not declared. Should it be static?
      Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f10f9fb2
  15. 07 11月, 2014 1 次提交
  16. 06 11月, 2014 1 次提交
  17. 15 10月, 2014 1 次提交
  18. 26 9月, 2014 1 次提交
  19. 30 8月, 2014 2 次提交
  20. 29 3月, 2014 1 次提交
  21. 14 2月, 2014 1 次提交
  22. 20 1月, 2014 2 次提交
  23. 17 1月, 2014 3 次提交
  24. 02 1月, 2014 1 次提交
  25. 25 9月, 2013 1 次提交
    • J
      stmicro: Remove extern from function prototypes · d6cc64ef
      Joe Perches 提交于
      There are a mix of function prototypes with and without extern
      in the kernel sources.  Standardize on not using extern for
      function prototypes.
      
      Function prototypes don't need to be written with extern.
      extern is assumed by the compiler.  Its use is as unnecessary as
      using auto to declare automatic/local variables in a block.
      Signed-off-by: NJoe Perches <joe@perches.com>
      d6cc64ef
  26. 22 8月, 2013 1 次提交
  27. 09 4月, 2013 1 次提交
    • G
      stmmac: review private structure fields · 1bb6dea8
      Giuseppe CAVALLARO 提交于
      recently many new supports have been added in the stmmac driver w/o taking care
      about where each new field had to be placed inside the private structure for
      guaranteeing the best cache usage.
      This is what I wanted in the beginning, so this patch reorganizes all the fields
      in order to keep adjacent fields for cache effect.
      I have also tried to optimize them by using pahole.
      
      V2: do not abuse with ____cacheline_aligned_in_smp and keep fields that
      potentially could stay in the same cache-line for better usage in SMP systems.
      Signed-off-by: NGiuseppe Cavallaro <peppe.cavallaro@st.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1bb6dea8