phy: rockchip: naneng-combphy: Simplify init ops
authorJonas Karlman <jonas@kwiboo.se>
Mon, 21 Jul 2025 22:07:13 +0000 (22:07 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 30 Aug 2025 16:48:15 +0000 (00:48 +0800)
commit8a3d377d4ccd409b56b9a6eef20613472e4471fd
tree9cee2d366ef9cac3b3077c686e2931a3b4811ae9
parentdfd2774cfc4434ef35b48febcd1dc1860a3dc8f8
phy: rockchip: naneng-combphy: Simplify init ops

The init ops for Rockchip COMBPHY driver is more complex than it needs
to be, e.g. declaring multiple init functions that only differ in the
error message.

Simplify the init ops based on code from the Linux mainline driver.

This change also ensure that errors returned from combphy_cfg() and
reset_deassert_bulk() is propertly propagated to the caller. No other
runtime change is expected with this simplication.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/phy/rockchip/phy-rockchip-naneng-combphy.c