]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: rtl93xx: rename media to attachment
authorJonas Jelonek <jelonek.jonas@gmail.com>
Fri, 10 Jul 2026 13:53:01 +0000 (13:53 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Wed, 15 Jul 2026 17:37:00 +0000 (19:37 +0200)
commit8d2bd202c4899c6dfbf8037b8ae2c80dabe49cb3
tree5a96648ec3055e21b8f78c00fe720f3d869cfd66
parent5f6896209dc506d38fc98d6b5b3eebc57bdbec7d
realtek: pcs: rtl93xx: rename media to attachment

"media" doesn't fit well once PHY sits alongside FIBER/DAC_SHORT/
DAC_LONG as a value: a PHY isn't a transmission medium, whereas what
actually matters here is what electrically terminates the SerDes lane
on the other end. Rename the enum, struct field, ops vtable member,
and both variants' config functions accordingly. Calling it 'attachment'
better fits what it actually is, doesn't confuse with the variants and
also fits to the PMA (Physical Medium Attachment) sublayer that lives
below PCS.

Link: https://github.com/openwrt/openwrt/pull/24232
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c