linux-stable/drivers/usb/typec/ucsi
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
..
Kconfig usb: typec: ucsi: Add conditional dependency on USB role switch 2021-01-19 13:30:19 +01:00
Makefile usb: typec: ucsi: register with power_supply class 2020-04-23 15:33:34 +02:00
displayport.c usb: typec: ucsi: Determine common SVDM Version 2021-02-09 11:48:55 +01:00
psy.c usb: ucsi: convert comma to semicolon 2020-12-11 16:19:54 +01:00
trace.c usb: typec: ucsi: replace magic numbers 2020-04-23 15:33:33 +02:00
trace.h usb: typec: ucsi: Remove all bit-fields 2019-11-04 21:53:14 +01:00
ucsi.c Merge 5.16-rc8 into usb-next 2022-01-03 13:02:29 +01:00
ucsi.h usb: typec: ucsi: Better fix for missing unplug events issue 2021-10-05 12:42:38 +02:00
ucsi_acpi.c usb: typec: ucsi: acpi: Reduce the command completion timeout 2021-10-05 12:42:38 +02:00
ucsi_ccg.c ucsi_ccg: Check DEV_INT bit only when starting CCG4 2022-01-26 13:41:19 +01:00