From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/3] usb: typec: ucsi: continue rework of command interface
Date: Tue, 28 Jan 2025 10:26:59 +0200 [thread overview]
Message-ID: <Z5iU0xQWm01XObEI@kuha.fi.intel.com> (raw)
In-Reply-To: <20250117-ucsi-merge-commands-v1-0-e20c19934d59@linaro.org>
On Fri, Jan 17, 2025 at 12:49:40PM +0200, Dmitry Baryshkov wrote:
> There are cases when UCSI drivers either want to mangle UCSI commands or
> its response or to completely emulate some of the commands in software.
> Currently code to handle such situations is split between sync_control(),
> read_cci() and read_message_in() callbacks.
>
> Make sync_control() also return CCI and MESSAGE_IN data, simplifying
> this kind of handling. This series reworks CCG driver and LG Gram
> quirks. If the approach is considered to be acceptable, it will be used
> to emulate AltMode support in the GLINK and Yoga C630 drivers: on these
> platforms DisplayPort AltMode is handled via the non-UCSI messages,
> however in the past reviewers suggested reusing UCSI displayport driver
> and just emulate necessary commands (mostly GET_CURRENT_CAM).
This is okay by me. For the lot:
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
> Dmitry Baryshkov (3):
> usb: typec: ucsi: return CCI and message from sync_control callback
> usb: typec: ucsi: ccg: move command quirks to ucsi_ccg_sync_control()
> usb: typec: ucsi: acpi: move LG Gram quirk to ucsi_gram_sync_control()
>
> drivers/usb/typec/ucsi/ucsi.c | 19 ++++++-----
> drivers/usb/typec/ucsi/ucsi.h | 6 ++--
> drivers/usb/typec/ucsi/ucsi_acpi.c | 29 +++++------------
> drivers/usb/typec/ucsi/ucsi_ccg.c | 67 ++++++++++++++++++--------------------
> 4 files changed, 56 insertions(+), 65 deletions(-)
> ---
> base-commit: e7bb221a638962d487231ac45a6699fb9bb8f9fa
> change-id: 20250116-ucsi-merge-commands-f2f6f5c93466
>
> Best regards,
> --
> Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
--
heikki
prev parent reply other threads:[~2025-01-28 8:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-17 10:49 Dmitry Baryshkov
2025-01-17 10:49 ` [PATCH 1/3] usb: typec: ucsi: return CCI and message from sync_control callback Dmitry Baryshkov
2025-01-18 7:28 ` kernel test robot
2025-01-17 10:49 ` [PATCH 2/3] usb: typec: ucsi: ccg: move command quirks to ucsi_ccg_sync_control() Dmitry Baryshkov
2025-01-17 10:49 ` [PATCH 3/3] usb: typec: ucsi: acpi: move LG Gram quirk to ucsi_gram_sync_control() Dmitry Baryshkov
2025-01-28 8:26 ` Heikki Krogerus [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z5iU0xQWm01XObEI@kuha.fi.intel.com \
--to=heikki.krogerus@linux.intel.com \
--cc=dmitry.baryshkov@linaro.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®