diff --git a/patch/kernel/archive/rockchip64-5.19/general-fix-inno-usb2-phy-init.patch b/patch/kernel/archive/rockchip64-5.19/general-fix-inno-usb2-phy-init.patch new file mode 100644 index 0000000000..39f35eda24 --- /dev/null +++ b/patch/kernel/archive/rockchip64-5.19/general-fix-inno-usb2-phy-init.patch @@ -0,0 +1,28 @@ +From e4cd72bcf2b4581122d065c2854fdb6be4b19bc3 Mon Sep 17 00:00:00 2001 +From: Paolo Sabatino +Date: Mon, 22 Aug 2022 20:51:22 +0000 +Subject: [PATCH] remove usb2phy extcon initialization causing kernel oops + +--- + drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 5 ----- + 1 file changed, 5 deletions(-) + +diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c +index 5223d4c9afdf..0341f8208989 100644 +--- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c ++++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c +@@ -1165,11 +1165,6 @@ static int rockchip_usb2phy_otg_port_init(struct rockchip_usb2phy *rphy, + if (ret) + dev_err(rphy->dev, "register USB HOST notifier failed\n"); + +- if (!of_property_read_bool(rphy->dev->of_node, "extcon")) { +- /* do initial sync of usb state */ +- ret = property_enabled(rphy->grf, &rport->port_cfg->utmi_id); +- extcon_set_state_sync(rphy->edev, EXTCON_USB_HOST, !ret); +- } + } + + out: +-- +2.34.1 +