]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: rtl931x: config CMU before media
authorJonas Jelonek <jelonek.jonas@gmail.com>
Mon, 2 Feb 2026 22:48:04 +0000 (22:48 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 7 Feb 2026 23:35:19 +0000 (00:35 +0100)
commitb87db98aff62ca8bc9726f6b78d6bc3d864abe4b
tree66a8b7dc2c000e8279d0a326ea1f33e22343c92c
parent459b456185210f1311b98a9daed4af3cd291ef6d
realtek: pcs: rtl931x: config CMU before media

Currently, the CMU is configured after media specific settings have been
set. This seems to work however does not make that much sense. The
proper clock should be configured before the TX/RX channels are
configured. Thus, move the call to the CMU configuration above the media
handling.

While at it, handle the return code of the CMU config properly.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21858
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c