summaryrefslogtreecommitdiff
path: root/drivers/usb/typec/tipd/Makefile
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2023-03-08 18:42:44 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-30 13:51:37 +0300
commit8346d21d1d8a63f46f60e6899f4f80b1306acf32 (patch)
tree3537e002be6599e0c4da7768c6df4cbb0c4c82fd /drivers/usb/typec/tipd/Makefile
parent7ef0423e43f877a328454059d46763043ce3da44 (diff)
downloadlinux-8346d21d1d8a63f46f60e6899f4f80b1306acf32.tar.xz
usb: ucsi_acpi: Increase the command completion timeout
commit 02d210f434249a7edbc160969b75df030dc6934d upstream. Commit 130a96d698d7 ("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: e08065069fc7 ("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>
Diffstat (limited to 'drivers/usb/typec/tipd/Makefile')
0 files changed, 0 insertions, 0 deletions