]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: rtl931x: Fix printing of port matrix 19572/head
authorHarshal Gohel <hg@simonwunderlich.de>
Tue, 15 Jul 2025 17:05:12 +0000 (19:05 +0200)
committerRobert Marko <robimarko@gmail.com>
Thu, 31 Jul 2025 19:59:24 +0000 (21:59 +0200)
commit960ad676c14a726871b0b94ab20ba5ede156f6ca
tree6217359a83beac11f9fbf301ccece2b7a37cbd23
parentb61fda10358ff79be707ccc0eb2e6f0e2d2b7e9d
realtek: rtl931x: Fix printing of port matrix

The function rtl93xx_setup() is called by both RTL930x and RTL931x. But
only the RTL930x specific function to print port matrix was called.
Unfortuntaly, RTL931x needs a different function to access the correct
registers to retrieve the port matrix information.

It is therefore necessary differentiate in rtl93xx_setup between the
SoC families before calling the appropriate function.

Signed-off-by: Harshal Gohel <hg@simonwunderlich.de>
Signed-off-by: Sharadanand Karanjkar <sk@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/19572
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl83xx.h
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c