realtek: Allow PHY-IDs to differ from Port numbers
authorBirger Koblitz <git@birger-koblitz.de>
Sun, 16 Jan 2022 06:03:11 +0000 (07:03 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 17 Feb 2022 15:21:47 +0000 (15:21 +0000)
commit60df655d5b17fd225b7c742a5780a09e397ae935
tree3ec7d3022bb3890233e8dc239df2ec92b72b0643
parentbf0ffe3310a514bc6ab18ca1adc44f6391a7695f
realtek: Allow PHY-IDs to differ from Port numbers

We were using the PHY-ids (the reg entries in the PHY
sections of the .dts) as the port numbers. Now scan the
ports section in the .dts, and use the actual port numbers,
following the phy-handle to the PHY properties.

Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/common.c