mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-12-19 16:31:27 +01:00
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>
This commit is contained in:
parent
12dd645914
commit
c8e6a7131d
@ -573,7 +573,7 @@ U_BOOT_DRIVER(rockchip_usb2phy_clock) = {
|
|||||||
|
|
||||||
U_BOOT_DRIVER(rockchip_usb2phy) = {
|
U_BOOT_DRIVER(rockchip_usb2phy) = {
|
||||||
.name = "rockchip_usb2phy",
|
.name = "rockchip_usb2phy",
|
||||||
.id = UCLASS_PHY,
|
.id = UCLASS_NOP,
|
||||||
.of_match = rockchip_usb2phy_ids,
|
.of_match = rockchip_usb2phy_ids,
|
||||||
.probe = rockchip_usb2phy_probe,
|
.probe = rockchip_usb2phy_probe,
|
||||||
.bind = rockchip_usb2phy_bind,
|
.bind = rockchip_usb2phy_bind,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user