summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorXu Yang <xu.yang_2@nxp.com>2023-06-27 19:03:52 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-07-25 18:24:17 +0200
commit5eda42aebb7668b4dcff025cd3ccb0d3d7c53da6 (patch)
treeea6b845fcdfe5927da5c0235c52a8cbd3c3d6f42 /tools/perf/scripts/python/stackcollapse.py
parentb7a62611fab72e585c729a7fcf666aa9c4144214 (diff)
usb: phy: mxs: fix getting wrong state with mxs_phy_is_otg_host()
The function mxs_phy_is_otg_host() will return true if OTG_ID_VALUE is 0 at USBPHY_CTRL register. However, OTG_ID_VALUE will not reflect the real state if the ID pin is float, such as Host-only or Type-C cases. The value of OTG_ID_VALUE is always 1 which means device mode. This patch will fix the issue by judging the current mode based on last_event. The controller will update last_event in time. Fixes: 7b09e67639d6 ("usb: phy: mxs: refine mxs_phy_disconnect_line") Signed-off-by: Xu Yang <xu.yang_2@nxp.com> Acked-by: Peter Chen <peter.chen@kernel.org> Link: https://lore.kernel.org/r/20230627110353.1879477-2-xu.yang_2@nxp.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions