phy: rockchip: typec: Fix improper use of UCLASS_PHY

The Rockchip TypeC 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>
This commit is contained in:
Jonas Karlman 2025-07-21 22:07:16 +00:00 committed by Kever Yang
parent c8e6a7131d
commit fca01a8792

View File

@ -788,7 +788,7 @@ U_BOOT_DRIVER(rockchip_tcphy_usb3_port) = {
U_BOOT_DRIVER(rockchip_typec_phy) = { U_BOOT_DRIVER(rockchip_typec_phy) = {
.name = "rockchip_typec_phy", .name = "rockchip_typec_phy",
.id = UCLASS_PHY, .id = UCLASS_NOP,
.of_match = rockchip_typec_phy_ids, .of_match = rockchip_typec_phy_ids,
.probe = rockchip_tcphy_probe, .probe = rockchip_tcphy_probe,
.bind = rockchip_tcphy_bind, .bind = rockchip_tcphy_bind,