linux-stable/drivers/usb/typec/ucsi
Hans de Goede 02d210f434 usb: ucsi_acpi: Increase the command completion timeout
Commit 130a96d698 ("usb: typec: ucsi: acpi: Increase command
completion timeout value") increased the timeout from 5 seconds
to 60 seconds due to issues related to alternate mode discovery.

After the alternate mode discovery switch to polled mode
the timeout was reduced, but instead of being set back to
5 seconds it was reduced to 1 second.

This is causing problems when using a Lenovo ThinkPad X1 yoga gen7
connected over Type-C to a LG 27UL850-W (charging DP over Type-C).

When the monitor is already connected at boot the following error
is logged: "PPM init failed (-110)", /sys/class/typec is empty and
on unplugging the NULL pointer deref fixed earlier in this series
happens.

When the monitor is connected after boot the following error
is logged instead: "GET_CONNECTOR_STATUS failed (-110)".

Setting the timeout back to 5 seconds fixes both cases.

Fixes: e08065069f ("usb: typec: ucsi: acpi: Reduce the command completion timeout")
Cc: stable@vger.kernel.org
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230308154244.722337-4-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-09 14:39:20 +01:00
..
Kconfig usb: typec: ucsi: stm32g0: add support for stm32g0 controller 2022-07-27 14:39:11 +02:00
Makefile usb: typec: ucsi: stm32g0: add support for stm32g0 controller 2022-07-27 14:39:11 +02:00
displayport.c usb: typec: ucsi: Determine common SVDM Version 2021-02-09 11:48:55 +01:00
psy.c
trace.c
trace.h
ucsi.c usb: ucsi: Fix ucsi->connector race 2023-03-09 14:39:20 +01:00
ucsi.h Merge 6.2-rc5 into usb-next 2023-01-23 15:38:08 +01:00
ucsi_acpi.c usb: ucsi_acpi: Increase the command completion timeout 2023-03-09 14:39:20 +01:00
ucsi_ccg.c usb: typec: ucsi_ccg: Add OF support 2023-02-02 11:15:26 +01:00
ucsi_stm32g0.c usb: typec: ucsi: stm32g0: Convert to i2c's .probe_new() 2022-11-22 17:33:26 +01:00