realtek: phy: reorganize package handling
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Wed, 17 Dec 2025 19:07:36 +0000 (20:07 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 23 Dec 2025 16:49:11 +0000 (17:49 +0100)
commit53dfb3e2e8e9726a6c2540932a7b5ebe3c36fd84
treec7e1eb9d907e2fd96f4aea82b32e1e60654e55e1
parentf79a2a57f518fbf644903016f617ee40108ac0e9
realtek: phy: reorganize package handling

With kernel 6.18 the package shared structure will be hidden from
the phy drivers. Workaround that in advance by providing a shared
private structure that covers all information that is needed for
normal operation.

For further simplification provide a new join() function that takes
care of a consistent initialization.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21204
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/phy/rtl83xx-phy.c