1. 20 Apr, 2021 31 commits
  2. 19 Apr, 2021 9 commits
    • Jakub Kicinski's avatar
      ethtool: add missing EEPROM to list of messages · e9377a91
      Jakub Kicinski authored
      ETHTOOL_MSG_MODULE_EEPROM_GET is missing from the list of messages.
      ETHTOOL_MSG_MODULE_EEPROM_GET_REPLY is sadly a rather long name
      so we need to adjust column length.
      
      v2: use spaces (Andrew)
      
      Fixes: c781ff12 ("ethtool: Allow network drivers to dump arbitrary EEPROM data")
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e9377a91
    • Jakub Kicinski's avatar
      ethtool: stats: clarify the initialization to ETHTOOL_STAT_NOT_SET · d1f0a5e1
      Jakub Kicinski authored
      Ido suggests we add a comment about the init of stats to -1.
      This is unlikely to be clear to first time readers.
      Suggested-by: default avatarIdo Schimmel <idosch@nvidia.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d1f0a5e1
    • Jakub Kicinski's avatar
      bnxt: add more ethtool standard stats · 37434782
      Jakub Kicinski authored
      Michael suggest a few more stats we can expose.
      
      $ ethtool -S eth0 --groups eth-mac
      Standard stats for eth0:
      eth-mac-FramesTransmittedOK: 902623288966
      eth-mac-FramesReceivedOK: 28727667047
      eth-mac-FrameCheckSequenceErrors: 1
      eth-mac-AlignmentErrors: 0
      eth-mac-OutOfRangeLengthField: 0
      $ ethtool -S eth0 | grep '\(fcs\|align\|oor\)'
           rx_fcs_err_frames: 1
           rx_align_err_frames: 0
           tx_fcs_err_frames: 0
      Suggested-by: default avatarMichael Chan <michael.chan@broadcom.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      37434782
    • David S. Miller's avatar
      Merge branch 'tja1103-driver' · 9b8fd2c9
      David S. Miller authored
      Radu Pirea says:
      
      ====================
      TJA1103 driver
      
      This small series adds the TJA1103 PHY driver.
      
      Changes in v3:
       - use phy_read_mmd_poll_timeout instead of spin_until_cond
       - changed the phy name from a generic one to something specific
       - minor indentation change
      
      Changes in v2:
       - implemented genphy_c45_pma_suspend/genphy_c45_pma_suspend
       - set default internal delays set to 2ns(90 degrees)
       - added "VEND1_" prefix to the register definitions
       - disable rxid in case of txid
       - disable txid in case of rxid
       - disable internal delays in rgmii mode
       - reduced max line length to 80 characters
       - rebased on top of net-next/master
       - use genphy_c45_loopback as .set_loopback callback
       - renamed the driver from nxp-c45 to nxp-c45-tja11xx
       - used phy phy_set_bits_mmd/phy_clear_bits_mmd instead on phy_write_mmd where
       I had to set/clear one bit.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9b8fd2c9
    • Radu Pirea (NXP OSS)'s avatar
      phy: nxp-c45: add driver for tja1103 · b050f2f1
      Radu Pirea (NXP OSS) authored
      Add driver for tja1103 driver and for future NXP C45 PHYs.
      Signed-off-by: default avatarRadu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b050f2f1
    • Radu Pirea (NXP OSS)'s avatar
      net: phy: add genphy_c45_pma_suspend/resume · da702f34
      Radu Pirea (NXP OSS) authored
      Add generic PMA suspend and resume callback functions for C45 PHYs.
      Signed-off-by: default avatarRadu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      da702f34
    • Vadym Kochan's avatar
      net: marvell: prestera: add support for AC3X 98DX3265 device · ced97eea
      Vadym Kochan authored
      Add PCI match for AC3X 98DX3265 device which is supported by the current
      driver and firmware.
      Signed-off-by: default avatarVadym Kochan <vkochan@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ced97eea
    • Wong Vee Khee's avatar
      net: stmmac: fix memory leak during driver probe · d7f576dc
      Wong Vee Khee authored
      On driver probe, kmemleak reported the following memory leak which was
      due to allocated bitmap that was not being freed in stmmac_dvr_probe().
      
      unreferenced object 0xffff9276014b13c0 (size 8):
        comm "systemd-udevd", pid 2143, jiffies 4294681112 (age 116.720s)
        hex dump (first 8 bytes):
          00 00 00 00 00 00 00 00                          ........
        backtrace:
          [<00000000c51e34b2>] stmmac_dvr_probe+0x1c0/0x440 [stmmac]
          [<00000000b530eb41>] intel_eth_pci_probe.cold+0x2b/0x14e [dwmac_intel]
          [<00000000b10f8929>] pci_device_probe+0xd2/0x150
          [<00000000fb254c74>] really_probe+0xf8/0x410
          [<0000000034128a59>] driver_probe_device+0x5d/0x150
          [<00000000016104d5>] device_driver_attach+0x53/0x60
          [<00000000cb18cd07>] __driver_attach+0x96/0x140
          [<00000000da9ffd5c>] bus_for_each_dev+0x7a/0xc0
          [<00000000af061a88>] bus_add_driver+0x184/0x1f0
          [<000000008be5c1c5>] driver_register+0x6c/0xc0
          [<0000000052b18a9e>] do_one_initcall+0x4d/0x210
          [<00000000154d4f07>] do_init_module+0x5c/0x230
          [<000000009b648d09>] load_module+0x2a5a/0x2d40
          [<000000000d86b76d>] __do_sys_finit_module+0xb5/0x120
          [<000000002b0cef95>] do_syscall_64+0x33/0x40
          [<0000000067b45bbb>] entry_SYSCALL_64_after_hwframe+0x44/0xa9
      
      Fixes: bba2556e ("net: stmmac: Enable RX via AF_XDP zero-copy")
      Cc: Ong Boon Leong <boon.leong.ong@intel.com>
      Signed-off-by: default avatarWong Vee Khee <vee.khee.wong@linux.intel.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d7f576dc
    • David S. Miller's avatar
      Merge branch 'korina-next' · a2a12d3a
      David S. Miller authored
      Thomas Bogendoerfer says:
      
      ====================
      net: Korina improvements
      
      While converting Mikrotik RB532 support to use device tree I stumbled
      over the korina ethernet driver, which used way too many MIPS specific
      hacks. This series cleans this all up and adds support for device tree.
      
      Changes in v6:
       - remove korina from resource names and adapt DT binding to it
       - removed superfluous braces around of_get_mac_address
      
      Changes in v5:
        - fixed email address in binding document, which prevented sending it
      
      Changes in v4:
        - improve error returns in mdio_read further
        - added clock name and improved clk handling
        - fixed binding errors
      
      Changes in v3:
        - use readl_poll_timeout_atomic in mdio_wait
        - return -ETIMEDOUT, if mdio_wait failed
        - added DT binding and changed name to idt,3243x-emac
        - fixed usage of of_get_mac_address for net-next
      
      Changes in v2:
        - added device tree support to get rid of idt_cpu_freq
        - fixed compile test on 64bit archs
        - fixed descriptor current address handling by storing/using mapped
          dma addresses (dma controller modifies current address)
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a2a12d3a