]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: dsa: microchip: fix the missing ksz8_r_mib_cnt
authorArun Ramadoss <arun.ramadoss@microchip.com>
Mon, 18 Jul 2022 06:18:03 +0000 (11:48 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 19 Jul 2022 13:33:51 +0000 (15:33 +0200)
During the refactoring for the ksz8_dev_ops from ksz8795.c to
ksz_common.c, the ksz8_r_mib_cnt has been missed. So this patch adds the
missing one.

Fixes: 6ec23aaaac43 ("net: dsa: microchip: move ksz_dev_ops to ksz_common.c")
Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20220718061803.4939-1-arun.ramadoss@microchip.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/dsa/microchip/ksz_common.c

index 28d7cb2ce98f570016cc0acc0719a27c38d75558..26bd239f4f07344619523fefe0acb407e67ef790 100644 (file)
@@ -150,6 +150,7 @@ static const struct ksz_dev_ops ksz8_dev_ops = {
        .port_setup = ksz8_port_setup,
        .r_phy = ksz8_r_phy,
        .w_phy = ksz8_w_phy,
+       .r_mib_cnt = ksz8_r_mib_cnt,
        .r_mib_pkt = ksz8_r_mib_pkt,
        .freeze_mib = ksz8_freeze_mib,
        .port_init_cnt = ksz8_port_init_cnt,