phy: rockchip: inno-usb2: Fix improper use of UCLASS_PHY
authorJonas Karlman <jonas@kwiboo.se>
Mon, 21 Jul 2025 22:07:15 +0000 (22:07 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 30 Aug 2025 16:48:15 +0000 (00:48 +0800)
commitc8e6a7131d58511129cdec16f269600b51f0a45a
treee9a6e12d579b94464f8449bfe415dd2efe92f130
parent12dd645914a4e5e65d92a4754d0dacbdbf1e4a55
phy: rockchip: inno-usb2: Fix improper use of UCLASS_PHY

The Rockchip USB2PHY glue driver improperly present itself as a
UCLASS_PHY driver, without ever implementing the required phy_ops.

This is something that in special circumstances can lead to a NULL
pointer dereference followed by a SError crash.

Change the glue driver to use UCLASS_NOP to fix this.

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