net: dsa: mv88e6xxx: remove ATU age out violation print
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 9 Dec 2022 17:28:14 +0000 (19:28 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 12 Dec 2022 23:01:18 +0000 (15:01 -0800)
Currently, the MV88E6XXX_PORT_ASSOC_VECTOR_INT_AGE_OUT bit (interrupt on
age out) is not enabled by the driver, and as a result, the print for
age out violations is dead code.

Remove it until there is some way for this to be triggered.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/mv88e6xxx/global1_atu.c

index 40bd67a..7a1c4b9 100644 (file)
@@ -378,12 +378,6 @@ static irqreturn_t mv88e6xxx_g1_atu_prob_irq_thread_fn(int irq, void *dev_id)
 
        spid = entry.state;
 
-       if (val & MV88E6XXX_G1_ATU_OP_AGE_OUT_VIOLATION) {
-               dev_err_ratelimited(chip->dev,
-                                   "ATU age out violation for %pM\n",
-                                   entry.mac);
-       }
-
        if (val & MV88E6XXX_G1_ATU_OP_MEMBER_VIOLATION) {
                dev_err_ratelimited(chip->dev,
                                    "ATU member violation for %pM portvec %x spid %d\n",