linux-xiaomi-chiron/drivers/usb/typec
Sing-Han Chen 825911492e ucsi_ccg: Check DEV_INT bit only when starting CCG4
CCGx clears Bit 0:Device Interrupt in the INTR_REG
if CCGx is reset successfully. However, there might
be a chance that other bits in INTR_REG are not
cleared due to internal data queued in PPM. This case
misleads the driver that CCGx reset failed.

The commit checks bit 0 in INTR_REG and ignores other
bits. The ucsi driver would reset PPM later.

Fixes: 247c554a14 ("usb: typec: ucsi: add support for Cypress CCGx")
Cc: stable@vger.kernel.org
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Sing-Han Chen <singhanc@nvidia.com>
Signed-off-by: Wayne Chang <waynec@nvidia.com>
Link: https://lore.kernel.org/r/20220112094143.628610-1-waynec@nvidia.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-26 13:41:19 +01:00
..
altmodes
mux
tcpm usb: typec: tcpm: Do not disconnect when receiving VSAFE0V 2022-01-25 18:41:18 +01:00
tipd
ucsi ucsi_ccg: Check DEV_INT bit only when starting CCG4 2022-01-26 13:41:19 +01:00
bus.c
bus.h
class.c usb: typec: port-mapper: Convert to the component framework 2021-12-30 12:13:04 +01:00
class.h usb: typec: port-mapper: Convert to the component framework 2021-12-30 12:13:04 +01:00
hd3ss3220.c
Kconfig
Makefile usb: typec: port-mapper: Convert to the component framework 2021-12-30 12:13:04 +01:00
mux.c
mux.h
port-mapper.c usb: typec: Don't try to register component master without components 2022-01-25 18:37:35 +01:00
qcom-pmic-typec.c
stusb160x.c