From: Heikki Krogerus Date: Mon, 20 Sep 2021 14:24:16 +0000 (+0300) Subject: usb: typec: ucsi: acpi: Reduce the command completion timeout X-Git-Tag: v6.6.17~8915^2~84 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e08065069fc7b074712378a95a3522d557e9bbe1;p=platform%2Fkernel%2Flinux-rpi.git usb: typec: ucsi: acpi: Reduce the command completion timeout The huge delay was there to workaround a problem where the firmware did not report that it was busy with the alternate mode commands. Now that the alternate modes are polled, the delay can be dropped. Signed-off-by: Heikki Krogerus Link: https://lore.kernel.org/r/20210920142419.54493-5-heikki.krogerus@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/typec/ucsi/ucsi_acpi.c b/drivers/usb/typec/ucsi/ucsi_acpi.c index 0497643..6771f05 100644 --- a/drivers/usb/typec/ucsi/ucsi_acpi.c +++ b/drivers/usb/typec/ucsi/ucsi_acpi.c @@ -78,7 +78,7 @@ static int ucsi_acpi_sync_write(struct ucsi *ucsi, unsigned int offset, if (ret) goto out_clear_bit; - if (!wait_for_completion_timeout(&ua->complete, 60 * HZ)) + if (!wait_for_completion_timeout(&ua->complete, HZ)) ret = -ETIMEDOUT; out_clear_bit: