]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: typec: ucsi: Add DATA_RESET option of Connector Reset command
authorVenkat Jayaraman <venkat.jayaraman@intel.com>
Tue, 13 Aug 2024 23:18:28 +0000 (16:18 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Aug 2024 09:24:26 +0000 (17:24 +0800)
commite8778a25059c4ca4348398e612c9f1cfb8837258
tree1ff2219b80d9e30efc2cfdf493438ab005e950cc
parent7393bf343a0346c4b0ac0f26991c45e9edf89cb7
usb: typec: ucsi: Add DATA_RESET option of Connector Reset command

Modify CONNECTOR_RESET command implementation to accommodate
DATA_RESET reset type as defined in UCSI spec v2.0 and later.

Hard Reset bit field was defined with value 1 in UCSI spec version 1.0.
Starting with spec version 1.1, Hard Reset bit field was removed from the
CONNECTOR_RESET command, until spec 2.0 reintroduced it with value 0, so,
the value to pass in to the command for a Hard Reset is different depending
on the UCSI version supported by the LPM.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Venkat Jayaraman <venkat.jayaraman@intel.com>
Link: https://lore.kernel.org/r/20240813231828.1192338-1-pooja.katiyar@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi.c
drivers/usb/typec/ucsi/ucsi.h