]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: don't announce extended register support on non Gbit chips
authorOleksij Rempel <o.rempel@pengutronix.de>
Fri, 26 Aug 2022 10:56:20 +0000 (12:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Aug 2022 08:41:17 +0000 (09:41 +0100)
commit2bb45aa99fc9cb20188790689fae5ca4904bca95
tree56cc349c43d1a392830c4fd6671c04b0ca1d990d
parent3f31d3d7f335994d26b6fd7e6ebd92ef7afb275a
net: dsa: microchip: don't announce extended register support on non Gbit chips

This issue was detected after adding support of regmap_ranges for KSZ8563R
chip. This chip is reporting extended registers support without having
actual extended registers. This made PHYlib request not existing
registers.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz9477.c