1. 18 12月, 2018 11 次提交
  2. 13 12月, 2018 2 次提交
  3. 10 12月, 2018 4 次提交
  4. 28 11月, 2018 2 次提交
  5. 24 11月, 2018 1 次提交
  6. 21 11月, 2018 1 次提交
  7. 19 11月, 2018 1 次提交
    • T
      tg3: optionally use eth_platform_get_mac_address() to get mac address · cddaf02b
      thesven73@gmail.com 提交于
      This function will try to determine the mac address via the devicetree,
      or via an architecture-specific method (e.g. a PROM on SPARC).
      
      The SPARC-specific code in this driver (#ifdef SPARC) did exactly this,
      and is therefore removed.
      
      Note that you can now specify the tg3 mac address via the devicetree,
      on any platform, not just SPARC:
      
      Devicetree example:
      (see Documentation/devicetree/bindings/pci/pci.txt)
      
      &pcie {
      	host@0 {
      		#address-cells = <3>;
      		#size-cells = <2>;
      		reg = <0 0 0 0 0>;
      		bcm5778: bcm5778@0 {
      			reg = <0 0 0 0 0>;
      			mac-address = [CA 11 AB 1E 10 01];
      		};
      	};
      };
      Signed-off-by: NSven Van Asbroeck <svendev@arcx.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cddaf02b
  8. 18 11月, 2018 2 次提交
  9. 16 11月, 2018 6 次提交
  10. 13 11月, 2018 1 次提交
  11. 12 11月, 2018 1 次提交
  12. 10 11月, 2018 1 次提交
  13. 09 11月, 2018 2 次提交
  14. 07 11月, 2018 3 次提交
  15. 03 11月, 2018 2 次提交
    • F
      net: systemport: Protect stop from timeout · 7cb6a2a2
      Florian Fainelli 提交于
      A timing hazard exists when the network interface is stopped that
      allows a watchdog timeout to be processed by a separate core in
      parallel. This creates the potential for the timeout handler to
      wake the queues while the driver is shutting down, or access
      registers after their clocks have been removed.
      
      The more common case is that the watchdog timeout will produce a
      warning message which doesn't lead to a crash. The chances of this
      are greatly increased by the fact that bcm_sysport_netif_stop stops
      the transmit queues which can easily precipitate a watchdog time-
      out because of stale trans_start data in the queues.
      
      This commit corrects the behavior by ensuring that the watchdog
      timeout is disabled before enterring bcm_sysport_netif_stop. There
      are currently only two users of the bcm_sysport_netif_stop function:
      close and suspend.
      
      The close case already handles the issue by exiting the RUNNING
      state before invoking the driver close service.
      
      The suspend case now performs the netif_device_detach to exit the
      PRESENT state before the call to bcm_sysport_netif_stop rather than
      after it.
      
      These behaviors prevent any future scheduling of the driver timeout
      service during the window. The netif_tx_stop_all_queues function
      in bcm_sysport_netif_stop is replaced with netif_tx_disable to ensure
      synchronization with any transmit or timeout threads that may
      already be executing on other cores.
      
      For symmetry, the netif_device_attach call upon resume is moved to
      after the call to bcm_sysport_netif_start. Since it wakes the transmit
      queues it is not necessary to invoke netif_tx_start_all_queues from
      bcm_sysport_netif_start so it is moved into the driver open service.
      
      Fixes: 40755a0f ("net: systemport: add suspend and resume support")
      Fixes: 80105bef ("net: systemport: add Broadcom SYSTEMPORT Ethernet MAC driver")
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7cb6a2a2
    • D
      net: bcmgenet: protect stop from timeout · 09e805d2
      Doug Berger 提交于
      A timing hazard exists when the network interface is stopped that
      allows a watchdog timeout to be processed by a separate core in
      parallel. This creates the potential for the timeout handler to
      wake the queues while the driver is shutting down, or access
      registers after their clocks have been removed.
      
      The more common case is that the watchdog timeout will produce a
      warning message which doesn't lead to a crash. The chances of this
      are greatly increased by the fact that bcmgenet_netif_stop stops
      the transmit queues which can easily precipitate a watchdog time-
      out because of stale trans_start data in the queues.
      
      This commit corrects the behavior by ensuring that the watchdog
      timeout is disabled before enterring bcmgenet_netif_stop. There
      are currently only two users of the bcmgenet_netif_stop function:
      close and suspend.
      
      The close case already handles the issue by exiting the RUNNING
      state before invoking the driver close service.
      
      The suspend case now performs the netif_device_detach to exit the
      PRESENT state before the call to bcmgenet_netif_stop rather than
      after it.
      
      These behaviors prevent any future scheduling of the driver timeout
      service during the window. The netif_tx_stop_all_queues function
      in bcmgenet_netif_stop is replaced with netif_tx_disable to ensure
      synchronization with any transmit or timeout threads that may
      already be executing on other cores.
      
      For symmetry, the netif_device_attach call upon resume is moved to
      after the call to bcmgenet_netif_start. Since it wakes the transmit
      queues it is not necessary to invoke netif_tx_start_all_queues from
      bcmgenet_netif_start so it is moved into the driver open service.
      
      Fixes: 1c1008c7 ("net: bcmgenet: add main driver file")
      Signed-off-by: NDoug Berger <opendmb@gmail.com>
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      09e805d2