ksz8873_valid_regs[] was added for register access for KSZ8863/KSZ8873
switches, but the reset register is not in the list so
ksz8_reset_switch() does not take any effect.
Replace regmap_update_bits() using ksz_regmap_8 with ksz_rmw8() so that
an error message will be given if the register is not defined.
A side effect of not resetting the switch is the static MAC table is not
cleared. Further additions to the table will show write error as there
are only 8 entries in the table.
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| ksz8.c | ||
| ksz8.h | ||
| ksz8_reg.h | ||
| ksz8863_smi.c | ||
| ksz9477.c | ||
| ksz9477.h | ||
| ksz9477_acl.c | ||
| ksz9477_i2c.c | ||
| ksz9477_reg.h | ||
| ksz9477_tc_flower.c | ||
| ksz_common.c | ||
| ksz_common.h | ||
| ksz_dcb.c | ||
| ksz_dcb.h | ||
| ksz_ptp.c | ||
| ksz_ptp.h | ||
| ksz_ptp_reg.h | ||
| ksz_spi.c | ||
| lan937x.h | ||
| lan937x_main.c | ||
| lan937x_reg.h | ||