lkml.org 
[lkml]   [2023]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH net-next v4 02/11] net: phy: nxp-c45-tja11xx: remove RX BIST frame counters
    Date
    Remove RX BIST frame counters from the PHY statistics.
    In production mode, these counters are always read as 0.

    Signed-off-by: Radu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
    ---
    drivers/net/phy/nxp-c45-tja11xx.c | 9 ---------
    1 file changed, 9 deletions(-)

    diff --git a/drivers/net/phy/nxp-c45-tja11xx.c b/drivers/net/phy/nxp-c45-tja11xx.c
    index 41b8af0547e4..f1f15a1b6cfc 100644
    --- a/drivers/net/phy/nxp-c45-tja11xx.c
    +++ b/drivers/net/phy/nxp-c45-tja11xx.c
    @@ -81,9 +81,6 @@
    #define VEND1_SYMBOL_ERROR_COUNTER 0x8350
    #define VEND1_LINK_DROP_COUNTER 0x8352
    #define VEND1_LINK_LOSSES_AND_FAILURES 0x8353
    -#define VEND1_R_GOOD_FRAME_CNT 0xA950
    -#define VEND1_R_BAD_FRAME_CNT 0xA952
    -#define VEND1_R_RXER_FRAME_CNT 0xA954
    #define VEND1_RX_PREAMBLE_COUNT 0xAFCE
    #define VEND1_TX_PREAMBLE_COUNT 0xAFCF
    #define VEND1_RX_IPG_LENGTH 0xAFD0
    @@ -809,12 +806,6 @@ static const struct nxp_c45_phy_stats nxp_c45_hw_stats[] = {
    VEND1_LINK_LOSSES_AND_FAILURES, 10, GENMASK(15, 10) },
    { "phy_link_failure_cnt", MDIO_MMD_VEND1,
    VEND1_LINK_LOSSES_AND_FAILURES, 0, GENMASK(9, 0) },
    - { "r_good_frame_cnt", MDIO_MMD_VEND1,
    - VEND1_R_GOOD_FRAME_CNT, 0, GENMASK(15, 0) },
    - { "r_bad_frame_cnt", MDIO_MMD_VEND1,
    - VEND1_R_BAD_FRAME_CNT, 0, GENMASK(15, 0) },
    - { "r_rxer_frame_cnt", MDIO_MMD_VEND1,
    - VEND1_R_RXER_FRAME_CNT, 0, GENMASK(15, 0) },
    { "rx_preamble_count", MDIO_MMD_VEND1,
    VEND1_RX_PREAMBLE_COUNT, 0, GENMASK(5, 0) },
    { "tx_preamble_count", MDIO_MMD_VEND1,
    --
    2.34.1
    \
     
     \ /
      Last update: 2023-07-24 16:14    [W:4.165 / U:0.064 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site