]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: typec: ucsi: return CCI and message from sync_control callback
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 20 Jan 2025 09:16:43 +0000 (11:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Feb 2025 15:29:05 +0000 (16:29 +0100)
commit667ecac55861281c1f5e107c8550ae893b3984f6
tree9a572758b6bd7afbfc3576a3c727594d96f26b54
parent41d5e3806cf589f658f92c75195095df0b66f66a
usb: typec: ucsi: return CCI and message from sync_control callback

Some of the drivers emulate or handle some of the commands in the
platform-specific way. The code ends up being split between several
callbacks, which complicates emulation.

In preparation to reworking such drivers, move read_cci() and
read_message_in() calls into ucsi_sync_control_common().

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Ɓukasz Bartosik <ukaszb@chromium.org>
Link: https://lore.kernel.org/r/20250120-ucsi-merge-commands-v2-1-462a1ec22ecc@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/cros_ec_ucsi.c
drivers/usb/typec/ucsi/ucsi.c
drivers/usb/typec/ucsi/ucsi.h
drivers/usb/typec/ucsi/ucsi_acpi.c
drivers/usb/typec/ucsi/ucsi_ccg.c