26 Jan, 2019

11 commits


25 Jan, 2019

20 commits

  • Tom Rini
     
  • Tom Rini
     
  • mpc85xx config.mk: Add support for -msingle-pic-base

    Tom Rini
     
  • Print information about Aquantia system interface and firmware loaded
    on the phy.

    Signed-off-by: Valentin Catalin Neacsu
    Acked-by: Joe Hershberger

    Valentin-catalin Neacsu
     
  • If System Interface protocol is USXGMII then enable USXGMII autoneg

    Signed-off-by: Valentin Catalin Neacsu
    Acked-by: Joe Hershberger

    Valentin-catalin Neacsu
     
  • No mainline board enables CONFIG_MCAST_TFTP and there have been
    compilation issues with the code for some time. Additionally, it has a
    potential buffer underrun issue (reported as a side note in
    CVE-2018-18439).

    Remove the multicast TFTP code but keep the driver API for the future
    addition of IPv6.

    Cc: Simon Goldschmidt
    Signed-off-by: Chris Packham
    Acked-by: Joe Hershberger

    Chris Packham
     
  • ether_crc was added to the core net code in commit 53a5c424bf86
    ("multicast tftp: RFC2090") so that other drivers could use it. However
    the only current user of it is tsec.c so move it there.

    Signed-off-by: Chris Packham
    Acked-by: Joe Hershberger

    Chris Packham
     
  • According to the datasheet to access the extended registers we have to:

    1. Write Register 31 Data = 0x0XYZ (Page 0xXYZ)
    2. Read/Write the target Register Data
    3. Write Register 31 Data = 0x0000 or 0xa42 (switch back to IEEE
    Standard Registers)

    Hook the missing functions so that we can use the `mdio rx/wx` command to
    easily access the extended registers.

    Signed-off-by: Carlo Caione
    Acked-by: Joe Hershberger

    Carlo Caione
     
  • Some architectures (MIPS) needs mapping to access IOMEM.
    Fix that.

    Fixes: f1dcc19b213d ("net: macb: Convert to driver model")

    Signed-off-by: Ramon Fried
    Acked-by: Joe Hershberger

    Ramon Fried
     
  • This patch add GPIO configuration support in mvneta driver.
    Driver will handle PHY reset. GPIO pins should be set in device tree.

    Ported from mvpp2x
    [https://patchwork.ozlabs.org/patch/799654/]

    Initial discussion to port the changes into mvneta
    [https://patchwork.ozlabs.org/patch/1005765/]

    Signed-off-by: Aditya Prayoga
    Tested-by: Dennis Gilmore
    Reviewed-by: Stefan Roese
    Acked-by: Joe Hershberger

    Aditya Prayoga
     
  • Some existing device trees don't specify a phy-mode so fallback to GMII
    when a phy-mode is not provided.

    Signed-off-by: Chris Packham
    Reviewed-by: Stefan Roese
    Acked-by: Joe Hershberger

    Chris Packham
     
  • For KSZ9021, all skew register fields are 4-bit wide.
    For KSZ9031, the clock skew register fields are 5-bit wide.

    The common code in ksz90x1_of_config_group calculating the combined
    register value checks if the requested value is above the maximum
    and uses this maximum if so. The calculation of this maximum uses
    the register width, but the check itself does not. It uses a hardcoded
    value of 0xf, which is too low in case of the 5-bit clock (0x1f).
    This detail was probably lost during driver unification.

    Effect (only for KSZ9031 clock skews): For values greater 900 (== 0ps),
    this silently results in 1860 (== +960ps) instead of the requested one.

    Fix the check by using the bit width instead of hardcoded value(s).

    Signed-off-by: Andreas Pretzsch
    Acked-by: Joe Hershberger

    Andreas Pretzsch
     
  • With CONFIG_REGEX enabled, ETHADDR_WILDCARD is set up for up to 10
    interfaces (0..9) as the number can only have one digit.

    On boards with more than 10 interfaces, this leads to the protection
    and format checks being absent for eth10addr and above.

    Fix this by changing ETHADDR_WILDCARD from "\\d?" to "\\d*" to allow
    more than one digit.

    Signed-off-by: Simon Goldschmidt
    Acked-by: Joe Hershberger

    Simon Goldschmidt
     
  • ETHADDR_WILDCARD is defined as the same value in both env_flags.h
    and env_callback.h

    As env_callback.h includes env_flags.h, remove the duplicate definition
    from env_callback.h

    Signed-off-by: Simon Goldschmidt
    Acked-by: Joe Hershberger

    Simon Goldschmidt
     
  • When dealing with two ethernet ports and having "netretry" set
    to "once", it could occur that the connection (e.g. an ARP
    request) failed, hence the status of the netloop was
    "NETLOOP_FAIL". Due to the setting of "netretry", the network
    logic would then switch to the other network interface,
    assigning "ret" with the return value of "net_start_again()".
    If this call succeeded we would return 0 (i.e. success) to
    the caller when in reality the network action failed.

    Signed-off-by: Thomas RIENOESSL
    Reviewed-by: Christian Gmeiner
    Acked-by: Joe Hershberger

    Thomas RIENOESSL
     
  • Current code forces all ports on a given Ethernet device to use the same
    mdio device. In practice different ports might be wired to separate mdio
    devices. Move the mdio device from the container struct mvpp2 to the per
    port struct mvpp2_port.

    Cc: Ken Ma
    Cc: Stefan Chulski
    Signed-off-by: Baruch Siach
    Reviewed-by: Stefan Roese
    Acked-by: Joe Hershberger

    Baruch Siach
     
  • Current mdio base lookup code relies on a 'reg' property at the upper CP
    node. There is no 'reg' property there in current DT files of Armada
    CP110. Use ofnode_get_addr() instead since it provides proper DT address
    translation.

    Cc: Ken Ma
    Cc: Stefan Chulski
    Signed-off-by: Baruch Siach
    Reviewed-by: Stefan Roese
    Acked-by: Joe Hershberger

    Baruch Siach
     
  • Short frames are padded to the minimum allowed size of 60 bytes.
    However, the designware driver sends old data in these padding bytes.
    It is common practice to zero out these padding bytes ro prevent
    leaking memory contents to other hosts.

    Fix the padding code to zero out the padded bytes at the end.

    Tested on socfpga gen5.

    Signed-off-by: Simon Goldschmidt
    Acked-by: Joe Hershberger

    Simon Goldschmidt
     
  • The designware driver has a bug in setting the tx length into the dma
    descriptor: it always or's the length into the descriptor without
    zeroing out the length mask before.

    This results in occasional packets being transmitted with a length
    greater than they should be (trailer). Due to the nature of Ethernet
    allowing such a trailer, most packets seem to be parsed fine by remote
    hosts, which is probably why this hasn't been noticed.

    Fix this by correctly clearing the size mask before setting the new
    length.

    Tested on socfpga gen5.

    Signed-off-by: Simon Goldschmidt
    Acked-by: Joe Hershberger
    Reviewed-by: Philipp Tomsich

    Simon Goldschmidt
     
  • The phy devices can be accessed via clause 22 or via clause 45.
    This information can be deduced when we read phy id. if the phy id
    is read without giving any MDIO Manageable Device Address (MMD), then
    it conforms to clause 22. otherwise it conforms to clause 45.

    Signed-off-by: Pankaj Bansal
    Acked-by: Joe Hershberger

    Pankaj Bansal
     

24 Jan, 2019

9 commits