]> www.infradead.org Git - users/dwmw2/linux.git/commit
usb: typec: ucsi: Clear UCSI_CCI_RESET_COMPLETE before reset
authorChristian A. Ehrhardt <lk@c--e.de>
Wed, 20 Mar 2024 07:39:26 +0000 (08:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:19:33 +0000 (16:19 +0200)
commitf18f5fcdaa8cce37a4f52f34d8bb40a00291ebe7
tree4f2b34263b247913233496845a1956356f0badb8
parentad165b37fd4fd996ff5dc36b13f1b68f195da143
usb: typec: ucsi: Clear UCSI_CCI_RESET_COMPLETE before reset

commit 3de4f996a0b5412aa451729008130a488f71563e upstream.

Check the UCSI_CCI_RESET_COMPLETE complete flag before starting
another reset. Use a UCSI_SET_NOTIFICATION_ENABLE command to clear
the flag if it is set.

Signed-off-by: Christian A. Ehrhardt <lk@c--e.de>
Cc: stable <stable@kernel.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8550-QRD
Link: https://lore.kernel.org/r/20240320073927.1641788-6-lk@c--e.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi.c