1. 31 1月, 2017 1 次提交
  2. 07 12月, 2016 1 次提交
  3. 01 12月, 2016 1 次提交
    • N
      net: fec: cache statistics while device is down · 80cca775
      Nikita Yushchenko 提交于
      Execution 'ethtool -S' on fec device that is down causes OOPS on Vybrid
      board:
      
      Unhandled fault: external abort on non-linefetch (0x1008) at 0xe0898200
      pgd = ddecc000
      [e0898200] *pgd=9e406811, *pte=400d1653, *ppte=400d1453
      Internal error: : 1008 [#1] SMP ARM
      ...
      
      Reason of OOPS is that fec_enet_get_ethtool_stats() accesses fec
      registers while IPG clock is stopped by PM.
      
      Fix that by caching statistics in fec_enet_private. Cache is initialized
      at device probe time, and updated at statistics request time if device
      is up, and also just before turning device off on down path.
      
      Additional locking is not needed, since cached statistics is accessed
      either before device is registered, or under rtnl_lock().
      Signed-off-by: NNikita Yushchenko <nikita.yoush@cogentembedded.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      80cca775
  4. 30 11月, 2016 1 次提交
  5. 16 11月, 2016 1 次提交
  6. 24 10月, 2016 1 次提交
  7. 21 10月, 2016 1 次提交
  8. 13 10月, 2016 1 次提交
    • J
      net: deprecate eth_change_mtu, remove usage · a52ad514
      Jarod Wilson 提交于
      With centralized MTU checking, there's nothing productive done by
      eth_change_mtu that isn't already done in dev_set_mtu, so mark it as
      deprecated and remove all usage of it in the kernel. All callers have been
      audited for calls to alloc_etherdev* or ether_setup directly, which means
      they all have a valid dev->min_mtu and dev->max_mtu. Now eth_change_mtu
      prints out a netdev_warn about being deprecated, for the benefit of
      out-of-tree drivers that might be utilizing it.
      
      Of note, dvb_net.c actually had dev->mtu = 4096, while using
      eth_change_mtu, meaning that if you ever tried changing it's mtu, you
      couldn't set it above 1500 anymore. It's now getting dev->max_mtu also set
      to 4096 to remedy that.
      
      v2: fix up lantiq_etop, missed breakage due to drive not compiling on x86
      
      CC: netdev@vger.kernel.org
      Signed-off-by: NJarod Wilson <jarod@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a52ad514
  9. 03 10月, 2016 1 次提交
  10. 27 9月, 2016 3 次提交
  11. 14 8月, 2016 1 次提交
  12. 27 6月, 2016 2 次提交
  13. 13 6月, 2016 1 次提交
  14. 12 6月, 2016 1 次提交
  15. 08 6月, 2016 1 次提交
  16. 01 6月, 2016 1 次提交
  17. 11 5月, 2016 2 次提交
  18. 05 5月, 2016 1 次提交
  19. 19 4月, 2016 1 次提交
  20. 01 4月, 2016 1 次提交
  21. 07 3月, 2016 1 次提交
  22. 17 2月, 2016 1 次提交
  23. 11 2月, 2016 8 次提交
  24. 26 1月, 2016 2 次提交
    • J
      net: fec: use CONFIG_ARM instead of CONFIG_ARCH_MXC/SOC_IMX28 · 05f3b50e
      Johannes Berg 提交于
      As Arnd Bergmann points out, using CONFIG_ARCH_MXC and/or SOC_IMX28
      is wrong if some other ARM platform uses this device - the operation
      of the driver would depend on an unrelated ARM platform that might
      or might not be set for multi-platform kernels.
      
      Prior to my previous patch, any other platforms using it would have
      been broken already due to having the cbd_datlen/cbd_sc fields in
      the wrong order, but byte ordering correctly, so no such platforms
      can exist and work today.
      
      In any case, it seems likely that only Freescale SoCs use this part,
      and those are little-endian on ARM, so CONFIG_ARM is safe for them.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Reviewed-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      05f3b50e
    • J
      net: fec: make driver endian-safe · 5cfa3039
      Johannes Berg 提交于
      The driver treats the device descriptors as CPU-endian, which appears
      to be correct with the default endianness on both ARM (typically LE)
      and PowerPC (typically BE) SoCs, indicating that the hardware block
      is generated differently. Add endianness annotations and byteswaps as
      necessary.
      
      It's not clear that the ifdef there really is correct and shouldn't
      just be #ifdef CONFIG_ARM, but I also can't test on anything but the
      i.MX6 HummingBoard where this gets it working with a BE kernel.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5cfa3039
  25. 08 1月, 2016 3 次提交
  26. 25 11月, 2015 1 次提交