android_kernel_motorola_sm6375/drivers/usb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Xu Yang bc4fbf2dab usb: phy: mxs: fix getting wrong state with mxs_phy_is_otg_host()
[ Upstream commit 5eda42aebb7668b4dcff025cd3ccb0d3d7c53da6 ]

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: 7b09e67639 ("usb: phy: mxs: refine mxs_phy_disconnect_line")
Signed-off-by: Xu Yang <[email protected]>
Acked-by: Peter Chen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2023-09-23 10:59:49 +02:00
..
atm
c67x00
cdns3 usb: cdns3: Fix issue with using incorrect PCI device function 2023-04-05 11:16:40 +02:00
chipidea usb: chipidea: imx: don't request QoS for imx8ulp 2023-08-30 16:27:10 +02:00
class USB: usbtmc: Fix direction for 0-length ioctl control messages 2023-05-30 12:44:06 +01:00
common usb: common: usb-conn-gpio: Prevent bailing out if initial role is none 2023-08-16 18:19:23 +02:00
core USB: quirks: add quirk for Focusrite Scarlett 2023-08-11 11:53:51 +02:00
dwc2
dwc3 USB: dwc3: qcom: fix NULL-deref on suspend 2023-08-30 16:27:13 +02:00
early
gadget usb: gadget: udc: fix NULL dereference in remove() 2023-06-28 10:18:41 +02:00
host Revert "usb: xhci: tegra: Fix error check" 2023-08-11 11:53:51 +02:00
image
isp1760
misc USB: sisusbvga: Add endpoint checks 2023-05-30 12:44:10 +01:00
mon usb: mon: make mmapped memory read only 2022-10-15 07:54:38 +02:00
mtu3 usb: mtu3: fix kernel panic at qmu transfer done irq handler 2023-05-17 11:35:49 +02:00
musb treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
phy usb: phy: mxs: fix getting wrong state with mxs_phy_is_otg_host() 2023-09-23 10:59:49 +02:00
renesas_usbhs
roles usb: roles: fix of node refcount leak in usb_role_switch_is_parent() 2023-01-18 11:41:24 +01:00
serial USB: serial: option: add FOXCONN T99W368/T99W373 product 2023-09-23 10:59:37 +02:00
storage usb-storage: alauda: Fix uninit-value in alauda_check_media() 2023-08-16 18:19:23 +02:00
typec usb: typec: altmodes/displayport: fix pin_assignment_show 2023-05-30 12:44:06 +01:00
usbip
Kconfig
Makefile
usb-skeleton.c