]> git.baikalelectronics.ru Git - kernel.git/commit
usb: typec: ucsi: Acknowledge the GET_ERROR_STATUS command completion
authorLinyu Yuan <quic_linyyuan@quicinc.com>
Tue, 26 Jul 2022 06:45:49 +0000 (14:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:22:58 +0000 (14:22 +0200)
commit89f66bc921824edc9edd8cc07db9a72c48af4d8c
tree4caf2b83abb63f44e9939786c1f65e5bcbb635d1
parent8247ef6c2f2cb9c99eb9adcdc1596584b282ac99
usb: typec: ucsi: Acknowledge the GET_ERROR_STATUS command completion

commit 4d015e66c29a39cb9318d390be314ec841f70c10 upstream.

We found PPM will not send any notification after it report error status
and OPM issue GET_ERROR_STATUS command to read the details about error.

According UCSI spec, PPM may clear the Error Status Data after the OPM
has acknowledged the command completion.

This change add operation to acknowledge the command completion from PPM.

Fixes: 8ab41c4ffe84 (usb: typec: ucsi: Simplified registration and I/O API)
Cc: <stable@vger.kernel.org> # 5.10
Signed-off-by: Jack Pham <quic_jackp@quicinc.com>
Signed-off-by: Linyu Yuan <quic_linyyuan@quicinc.com>
Link: https://lore.kernel.org/r/1658817949-4632-1-git-send-email-quic_linyyuan@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi.c