]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: ksz8795: align port_cnt usage with other microchip drivers
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Tue, 1 Dec 2020 20:45:03 +0000 (21:45 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 3 Dec 2020 01:16:29 +0000 (17:16 -0800)
commitdc782e949bc18635e76657c2b93035201607df2e
tree9ee2f4d1772548aad1272f19ff46bddfda36166a
parent3f516824ab581b166473493bbf0737791d205874
net: dsa: microchip: ksz8795: align port_cnt usage with other microchip drivers

The ksz8795 driver is using port_cnt differently to the other microchip
DSA drivers. It sets it to the external physical port count, than the
whole port count (including the cpu port). This patch is aligning the
variables purpose with the other microchip drivers.

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/microchip/ksz8795.c