]> git.baikalelectronics.ru Git - kernel.git/commit
usb: pd: Set PD_T_SINK_WAIT_CAP to 310ms
authorKyle Tso <kyletso@google.com>
Fri, 28 May 2021 08:16:13 +0000 (16:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Jun 2021 14:59:29 +0000 (16:59 +0200)
commitff073af4361e276b8b64268d0571ba6aaae0ee1f
treeeed61ab031f1e51a38b6cd1182af0b0ab993b16b
parent8268d9ed716a7ee1121177f6146a411aa4f849e1
usb: pd: Set PD_T_SINK_WAIT_CAP to 310ms

Current timer PD_T_SINK_WAIT_CAP is set to 240ms which will violate the
SinkWaitCapTimer (tTypeCSinkWaitCap 310 - 620 ms) defined in the PD
Spec if the port is faster enough when running the state machine. Set it
to the lower bound 310ms to ensure the timeout is in Spec.

Fixes: 2bf3edf0fa6a ("staging: typec: USB Type-C Port Manager (tcpm)")
Cc: stable <stable@vger.kernel.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Kyle Tso <kyletso@google.com>
Link: https://lore.kernel.org/r/20210528081613.730661-1-kyletso@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/usb/pd.h