]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mt7530: rework mt753[01]_setup
authorFrank Wunderlich <frank-w@public-files.de>
Fri, 10 Jun 2022 17:05:38 +0000 (19:05 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 15 Jun 2022 05:35:16 +0000 (22:35 -0700)
commit6bcec78364e6fa77d4ea67c8e8c4d00525f51530
tree6db61a694a040edc6f2d1e1dcf3ad6150e775142
parent417cabd4aa9b875c617d81088a6541b9c8c70279
net: dsa: mt7530: rework mt753[01]_setup

Enumerate available cpu-ports instead of using hardcoded constant.

Suggested-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/mt7530.c