Patch "usb: typec: ucsi: Acknowledge the GET_ERROR_STATUS command completion" has been added to the 5.19-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    usb: typec: ucsi: Acknowledge the GET_ERROR_STATUS command completion

to the 5.19-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     usb-typec-ucsi-acknowledge-the-get_error_status-comm.patch
and it can be found in the queue-5.19 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit d6b81f001c2bae43f67f2e757774341def8894be
Author: Linyu Yuan <quic_linyyuan@xxxxxxxxxxx>
Date:   Tue Jul 26 14:45:49 2022 +0800

    usb: typec: ucsi: Acknowledge the GET_ERROR_STATUS command completion
    
    [ Upstream commit a7dc438b5e446afcd1b3b6651da28271400722f2 ]
    
    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: bdc62f2bae8f (usb: typec: ucsi: Simplified registration and I/O API)
    Cc: <stable@xxxxxxxxxxxxxxx> # 5.10
    Signed-off-by: Jack Pham <quic_jackp@xxxxxxxxxxx>
    Signed-off-by: Linyu Yuan <quic_linyyuan@xxxxxxxxxxx>
    Link: https://lore.kernel.org/r/1658817949-4632-1-git-send-email-quic_linyyuan@xxxxxxxxxxx
    Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/usb/typec/ucsi/ucsi.c b/drivers/usb/typec/ucsi/ucsi.c
index cbd862f9f2a1..1aea46493b85 100644
--- a/drivers/usb/typec/ucsi/ucsi.c
+++ b/drivers/usb/typec/ucsi/ucsi.c
@@ -76,6 +76,10 @@ static int ucsi_read_error(struct ucsi *ucsi)
 	if (ret)
 		return ret;
 
+	ret = ucsi_acknowledge_command(ucsi);
+	if (ret)
+		return ret;
+
 	switch (error) {
 	case UCSI_ERROR_INCOMPATIBLE_PARTNER:
 		return -EOPNOTSUPP;



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux