1. 31 3月, 2018 1 次提交
    • J
      net: stmmac: Add support for DWMAC5 and implement Safety Features · 8bf993a5
      Jose Abreu 提交于
      This adds initial suport for DWMAC5 and implements the Automotive Safety
      Package which is available from core version 5.10.
      
      The Automotive Safety Pacakge (also called Safety Features) offers us
      with error protection in the core by implementing ECC Protection in
      memories, on-chip data path parity protection, FSM parity and timeout
      protection and Application/CSR interface timeout protection.
      
      In case of an uncorrectable error we call stmmac_global_err() and
      reconfigure the whole core.
      Signed-off-by: NJose Abreu <joabreu@synopsys.com>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Joao Pinto <jpinto@synopsys.com>
      Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
      Cc: Alexandre Torgue <alexandre.torgue@st.com>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8bf993a5
  2. 23 1月, 2018 1 次提交
    • F
      net: stmmac: Fix reception of Broadcom switches tags · 8cad443e
      Florian Fainelli 提交于
      Broadcom tags inserted by Broadcom switches put a 4 byte header after
      the MAC SA and before the EtherType, which may look like some sort of 0
      length LLC/SNAP packet (tcpdump and wireshark do think that way). With
      ACS enabled in stmmac the packets were truncated to 8 bytes on
      reception, whereas clearing this bit allowed normal reception to occur.
      
      In order to make that possible, we need to pass a net_device argument to
      the different core_init() functions and we are dependent on the Broadcom
      tagger padding packets correctly (which it now does). To be as little
      invasive as possible, this is only done for gmac1000 when the network
      device is DSA-enabled (netdev_uses_dsa() returns true).
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Acked-by: NGiuseppe Cavallaro <peppe.cavallaro@st.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8cad443e
  3. 20 12月, 2017 1 次提交
  4. 15 10月, 2017 2 次提交
  5. 26 5月, 2017 1 次提交
    • L
      net-next: stmmac: rework the speed selection · ca84dfb9
      LABBE Corentin 提交于
      The current stmmac_adjust_link() part which handle speed have
      some if (has_platform) code and my dwmac-sun8i will add more of them.
      
      So we need to handle better speed selection.
      Moreover the struct link member speed and port are hard to guess their
      purpose. And their unique usage are to be combined for writing speed.
      
      So this patch replace speed/port by simpler
      speed10/speed100/speed1000/speed_mask variables.
      
      In dwmac4_core_init and dwmac1000_core_init, port/speed value was used
      directly without using the struct link. This patch convert also their
      usage to speedxxx.
      Signed-off-by: NCorentin Labbe <clabbe.montjoie@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ca84dfb9
  6. 14 4月, 2017 1 次提交
    • N
      net: stmmac: set total length of the packet to be transmitted in TDES3 · fe6af0e1
      Niklas Cassel 提交于
      Field FL/TPL in register TDES3 is not correctly set on GMAC4.
      TX appears to be functional on GMAC 4.10a even if this field is not set,
      however, to avoid relying on undefined behavior, set the length in TDES3.
      
      The field has a different meaning depending on if the TSE bit in TDES3
      is set or not (TSO). However, regardless of the TSE bit, the field is
      not optional. The field is already set correctly when the TSE bit is set.
      
      Since there is no limit for the number of descriptors that can be
      used for a single packet, the field should be set to the sum of
      the buffers contained in:
      [<desc with First Descriptor bit set> ... <desc n> ...
      <desc with Last Descriptor bit set>], which should be equal to skb->len.
      Signed-off-by: NNiklas Cassel <niklas.cassel@axis.com>
      Acked-by: NGiuseppe Cavallaro <peppe.cavallaro@st.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fe6af0e1
  7. 25 3月, 2017 1 次提交
  8. 22 3月, 2017 2 次提交
  9. 16 3月, 2017 7 次提交
  10. 13 3月, 2017 9 次提交
  11. 25 2月, 2017 1 次提交
  12. 09 2月, 2017 3 次提交
  13. 10 1月, 2017 1 次提交
  14. 30 12月, 2016 1 次提交
  15. 09 12月, 2016 1 次提交
  16. 04 12月, 2016 1 次提交
  17. 30 11月, 2016 1 次提交
  18. 16 11月, 2016 2 次提交
  19. 13 9月, 2016 1 次提交
  20. 28 6月, 2016 2 次提交