]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: typec: ucsi: Call CANCEL from single location
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Fri, 16 Aug 2024 13:58:58 +0000 (16:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Aug 2024 10:47:39 +0000 (18:47 +0800)
commit4f322657ade1b784bb2b1ba8761469ae87520681
tree62603be9a8bcec77a2c877a461f858b418e7b820
parent9289e6f5ee679629e2ece4b87dc14ee6e1e1dfc3
usb: typec: ucsi: Call CANCEL from single location

The command cancellation can be done right after detecting
that the PPM is busy. There is no need to do it separately
in ucsi_read_error() and ucsi_send_command_common().

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240816135859.3499351-6-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi.c