1. 08 8月, 2017 1 次提交
  2. 25 7月, 2017 1 次提交
  3. 21 7月, 2017 1 次提交
  4. 30 6月, 2017 3 次提交
  5. 22 6月, 2017 1 次提交
  6. 14 6月, 2017 1 次提交
  7. 11 6月, 2017 2 次提交
  8. 08 6月, 2017 1 次提交
  9. 22 5月, 2017 1 次提交
  10. 16 5月, 2017 1 次提交
  11. 12 5月, 2017 1 次提交
  12. 09 5月, 2017 1 次提交
    • G
      net: ethernet: ti: cpsw: adjust cpsw fifos depth for fullduplex flow control · 48f5bccc
      Grygorii Strashko 提交于
      When users set flow control using ethtool the bits are set properly in the
      CPGMAC_SL MACCONTROL register, but the FIFO depth in the respective Port n
      Maximum FIFO Blocks (Pn_MAX_BLKS) registers remains set to the minimum size
      reset value. When receive flow control is enabled on a port, the port's
      associated FIFO block allocation must be adjusted. The port RX allocation
      must increase to accommodate the flow control runout. The TRM recommends
      numbers of 5 or 6.
      
      Hence, apply required Port FIFO configuration to
      Pn_MAX_BLKS.Pn_TX_MAX_BLKS=0xF and Pn_MAX_BLKS.Pn_RX_MAX_BLKS=0x5 during
      interface initialization.
      
      Cc: Schuyler Patton <spatton@ti.com>
      Signed-off-by: NGrygorii Strashko <grygorii.strashko@ti.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      48f5bccc
  13. 29 4月, 2017 1 次提交
    • A
      cpsw/netcp: refine cpts dependency · 504926df
      Arnd Bergmann 提交于
      Tony Lindgren reports a kernel oops that resulted from my compile-time
      fix on the default config. This shows two problems:
      
      a) configurations that did not already enable PTP_1588_CLOCK will
         now miss the cpts driver
      
      b) when cpts support is disabled, the driver crashes. This is a
         preexisting problem that we did not notice before my patch.
      
      While the second problem is still being investigated, this modifies
      the dependencies again, getting us back to the original state, with
      another 'select NET_PTP_CLASSIFY' added in to avoid the original
      link error we got, and the 'depends on POSIX_TIMERS' to hide
      the CPTS support when turning it on would be useless.
      
      Cc: stable@vger.kernel.org # 4.11 needs this
      Fixes: 07fef362 ("cpsw/netcp: cpts depends on posix_timers")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Tested-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      504926df
  14. 25 4月, 2017 2 次提交
  15. 05 4月, 2017 1 次提交
    • S
      net: ethernet: ti: cpsw: fix race condition during open() · 30c57f07
      Sekhar Nori 提交于
      TI's cpsw driver handles both OF and non-OF case for phy
      connect. Unfortunately of_phy_connect() returns NULL on
      error while phy_connect() returns ERR_PTR().
      
      To handle this, cpsw_slave_open() overrides the return value
      from phy_connect() to make it NULL or error.
      
      This leaves a small window, where cpsw_adjust_link() may be
      invoked for a slave while slave->phy pointer is temporarily
      set to -ENODEV (or some other error) before it is finally set
      to NULL.
      
      _cpsw_adjust_link() only handles the NULL case, and an oops
      results when ERR_PTR() is seen by it.
      
      Note that cpsw_adjust_link() checks PHY status for each
      slave whenever it is invoked. It can so happen that even
      though phy_connect() for a given slave returns error,
      _cpsw_adjust_link() is still called for that slave because
      the link status of another slave changed.
      
      Fix this by using a temporary pointer to store return value
      of {of_}phy_connect() and do a one-time write to slave->phy.
      Reviewed-by: NGrygorii Strashko <grygorii.strashko@ti.com>
      Reported-by: NYan Liu <yan-liu@ti.com>
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      30c57f07
  16. 03 4月, 2017 1 次提交
  17. 23 3月, 2017 2 次提交
    • A
      cpsw/netcp: cpts depends on posix_timers · 07fef362
      Arnd Bergmann 提交于
      With posix timers having become optional, we get a build error with
      the cpts time sync option of the CPSW driver:
      
      drivers/net/ethernet/ti/cpts.c: In function 'cpts_find_ts':
      drivers/net/ethernet/ti/cpts.c:291:23: error: implicit declaration of function 'ptp_classify_raw';did you mean 'ptp_classifier_init'? [-Werror=implicit-function-declaration]
      
      This adds a hard dependency on PTP_CLOCK to avoid the problem, as
      building it without PTP support makes no sense anyway.
      
      Fixes: baa73d9e ("posix-timers: Make them configurable")
      Cc: Nicolas Pitre <nicolas.pitre@linaro.org>
      Cc: stable@vger.kernel.org
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NNicolas Pitre <nico@linaro.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      07fef362
    • A
      cpsw/netcp: work around reverse cpts dependency · be9ca0d3
      Arnd Bergmann 提交于
      The dependency is reversed: cpsw and netcp call into cpts,
      but cpts depends on the other two in Kconfig. This can lead
      to cpts being a loadable module and its callers built-in:
      
      drivers/net/ethernet/ti/cpsw.o: In function `cpsw_remove':
      cpsw.c:(.text.cpsw_remove+0xd0): undefined reference to `cpts_release'
      drivers/net/ethernet/ti/cpsw.o: In function `cpsw_rx_handler':
      cpsw.c:(.text.cpsw_rx_handler+0x2dc): undefined reference to `cpts_rx_timestamp'
      drivers/net/ethernet/ti/cpsw.o: In function `cpsw_tx_handler':
      cpsw.c:(.text.cpsw_tx_handler+0x7c): undefined reference to `cpts_tx_timestamp'
      drivers/net/ethernet/ti/cpsw.o: In function `cpsw_ndo_stop':
      
      As a workaround, I'm introducing another Kconfig symbol to
      control the compilation of cpts, while making the actual
      module controlled by a silent symbol that is =y when necessary.
      
      Fixes: 6246168b ("net: ethernet: ti: netcp: add support of cpts")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Reviewed-by: NGrygorii Strashko <grygorii.strashko@ti.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      be9ca0d3
  18. 16 3月, 2017 1 次提交
    • A
      mqprio: Modify mqprio to pass user parameters via ndo_setup_tc. · 56f36acd
      Amritha Nambiar 提交于
      The configurable priority to traffic class mapping and the user specified
      queue ranges are used to configure the traffic class, overriding the
      hardware defaults when the 'hw' option is set to 0. However, when the 'hw'
      option is non-zero, the hardware QOS defaults are used.
      
      This patch makes it so that we can pass the data the user provided to
      ndo_setup_tc. This allows us to pull in the queue configuration if the
      user requested it as well as any additional hardware offload type
      requested by using a value other than 1 for the hw value.
      
      Finally it also provides a means for the device driver to return the level
      supported for the offload type via the qopt->hw value. Previously we were
      just always assuming the value to be 1, in the future values beyond just 1
      may be supported.
      Signed-off-by: NAmritha Nambiar <amritha.nambiar@intel.com>
      Signed-off-by: NAlexander Duyck <alexander.h.duyck@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      56f36acd
  19. 18 2月, 2017 1 次提交
  20. 15 2月, 2017 2 次提交
  21. 12 2月, 2017 1 次提交
  22. 11 2月, 2017 1 次提交
  23. 08 2月, 2017 2 次提交
  24. 02 2月, 2017 1 次提交
  25. 31 1月, 2017 1 次提交
  26. 21 1月, 2017 5 次提交
  27. 19 1月, 2017 1 次提交
  28. 17 1月, 2017 1 次提交
    • A
      cpmac: remove hopeless #warning · d43e6fb4
      Arnd Bergmann 提交于
      The #warning was present 10 years ago when the driver first got merged.
      As the platform is rather obsolete by now, it seems very unlikely that
      the warning will cause anyone to fix the code properly.
      
      kernelci.org reports the warning for every build in the meantime, so
      I think it's better to just turn it into a code comment to reduce
      noise.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d43e6fb4
  29. 11 1月, 2017 1 次提交