realtek: skip SFP ports in PoE setup
authorPaul Spooren <mail@aparcar.org>
Sat, 30 Jul 2022 18:25:32 +0000 (20:25 +0200)
committerSander Vanheule <sander@svanheule.net>
Sat, 13 Aug 2022 17:15:46 +0000 (19:15 +0200)
commitead7e5b4c3a4043aa97cec6b08ae2f70f54834d3
treeaec4e235e9bbb7cb0cd6a8863551ed8f53b1208a
parent67efb6a66146ac80986de928197b8116b2421779
realtek: skip SFP ports in PoE setup

The function `ucidef_set_poe` receives a list of ports to add to the PoE array.
Since switches have many ports the varibale `lan_list` is passed instead of
writing every single lan port. However, this list includes partly SFP ports
which are unrelated to PoE.

This commits adds the option to add a third parameter to manually exclide
interfaces, usually the last two.

Signed-off-by: Paul Spooren <mail@aparcar.org>
[Replace glob by regex to be more specific about matching characters]
Signed-off-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/base-files/etc/board.d/02_network