Skip to content

Commit

Permalink
general-fix-inno-usb2-phy-init(:1)
Browse files Browse the repository at this point in the history
Original-Subject: remove usb2phy extcon initialization causing kernel oops
None
X-Armbian: Patch-File: general-fix-inno-usb2-phy-init
X-Armbian: Patch-File-Counter: 1
X-Armbian: Patch-Rel-Directory: patch/kernel/archive/rockchip64-6.1
X-Armbian: Patch-Type: kernel
X-Armbian: Patch-Root-Type: core
X-Armbian: Patch-Sub-Type: common
X-Armbian: Original-Subject: remove usb2phy extcon initialization causing kernel oops
  • Loading branch information
paolosabatino authored and Armbian AutoPatcher committed Aug 22, 2022
1 parent 6f42d33 commit abb0c49
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/phy/rockchip/phy-rockchip-inno-usb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1167,11 +1167,6 @@ static int rockchip_usb2phy_otg_port_init(struct rockchip_usb2phy *rphy,
goto out;
}

if (!of_property_read_bool(rphy->dev->of_node, "extcon")) {
/* do initial sync of usb state */
id = property_enabled(rphy->grf, &rport->port_cfg->utmi_id);
extcon_set_state_sync(rphy->edev, EXTCON_USB_HOST, !id);
}
}

out:
Expand Down

0 comments on commit abb0c49

Please sign in to comment.