The KSZ9477 and KSZ8795 use the port_cnt field differently: For the
KSZ9477, it includes the CPU port(s), while for the KSZ8795, it doesn't.
It would be a good cleanup to make the handling of both drivers match,
but as a first step, fix the recently broken assignment of num_ports in
the KSZ8795 driver (which completely broke probing, as the CPU port
index was always failing the num_ports check).
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
ksz8795_reg.h | ||
ksz8795_spi.c | ||
ksz8795.c | ||
ksz9477_i2c.c | ||
ksz9477_reg.h | ||
ksz9477_spi.c | ||
ksz9477.c | ||
ksz_common.c | ||
ksz_common.h | ||
Makefile |