1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/usb/typec
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
..
altmodes Merge 6.2-rc8 into usb-next 2023-02-14 13:44:08 +01:00
mux usb: typec: mux: Introduce GPIO-based SBU mux 2023-01-24 18:15:28 +01:00
tcpm usb: typec: tcpm: Remove altmode active state updates 2023-01-24 18:15:43 +01:00
tipd usb: typec: tipd: Support wakeup 2023-01-17 17:23:47 +01:00
ucsi usb: ucsi_acpi: Increase the command completion timeout 2023-03-09 14:39:20 +01:00
anx7411.c usb: typec: anx7411: Convert to i2c's .probe_new() 2022-11-22 17:33:27 +01:00
bus.c Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
bus.h usb: typec: Add retimer handle to port altmode 2023-01-17 17:29:00 +01:00
class.c Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
class.h usb: typec: Add retimer handle to port 2022-07-14 16:24:05 +02:00
hd3ss3220.c usb: typec: hd3ss3220: Add polling support 2023-01-17 17:18:51 +01:00
Kconfig usb: typec: anx7411: Fix build error without CONFIG_POWER_SUPPLY 2022-09-22 15:21:03 +02:00
Makefile usb: typec: Add support for retimers 2022-07-14 16:24:05 +02:00
mux.c device property: Constify fwnode connection match APIs 2022-10-22 13:49:55 +02:00
mux.h usb: typec: mux: Introduce indirection 2022-04-26 13:47:13 +02:00
pd.c usb: typec: pd: Add higher capability sysfs for sink PDO 2023-02-15 19:03:47 +01:00
pd.h usb: typec: Separate USB Power Delivery from USB Type-C 2022-06-12 06:49:47 +02:00
port-mapper.c ACPI: bus: Introduce acpi_bus_for_each_dev() 2022-03-02 20:55:47 +01:00
qcom-pmic-typec.c usb: typec: qcom-pmic-typec: Switch to use dev_err_probe() helper 2022-09-27 10:35:46 +02:00
retimer.c Driver Core changes for 6.2-rc1 2022-12-16 03:54:54 -08:00
retimer.h usb: typec: Make bus switch code retimer-aware 2023-01-17 17:29:00 +01:00
rt1719.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
stusb160x.c USB/Thunderbolt changes for 6.1-rc1 2022-10-07 16:48:26 -07:00
wusb3801.c usb: typec: wusb3801: fix fwnode refcount leak in wusb3801_probe() 2022-12-08 16:43:22 +01:00