aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorMatthias Schiffer <[email protected]>2020-09-16 12:08:39 +0200
committerDavid S. Miller <[email protected]>2020-09-16 17:46:09 -0700
commitfd944dc24336922656a48f4608bfb41abdcdc4aa (patch)
treecb648b679e78bf161edc508ba43f62137bb4581b /lib/mpi/mpiutil.c
parent34beb21594519ce64a55a498c2fe7d567bc1ca20 (diff)
net: dsa: microchip: ksz8795: really set the correct number of ports
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: af199a1a9cb0 ("net: dsa: microchip: set the correct number of ports") Signed-off-by: Matthias Schiffer <[email protected]> Reviewed-by: Codrin Ciubotariu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions