From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: kernel@resetko.pl
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Guenter Roeck <linux@roeck-us.net>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
Mark Pearson <mpearson-lenovo@squebb.ca>,
stable@vger.kernel.org
Subject: Re: [PATCH v2 1/2] usb: typec: ucsi: acpi: Rename the Acer zero version quirk
Date: Fri, 6 Nov 2026 17:42:56 +0100 [thread overview]
Message-ID: <au4DkMViEzQEHLHd@black.igk.intel.com> (raw)
In-Reply-To: <20261103-ucsi-lenovo-t14g2a-v2-1-e85c659b56a2@resetko.pl>
On Tue, Nov 03, 2026 at 05:10:20PM +0100, Stanisław Titenko via B4 Relay wrote:
> From: Stanisław Titenko <kernel@resetko.pl>
>
> The quirk added for the Acer Nitro ANV15-41 is not specific to that
> machine: it substitutes UCSI 1.2 when the firmware reports a zero
> version, which other platforms with the same firmware bug need too.
>
> Rename ucsi_acer_read_version() and ucsi_acer_ops to
> ucsi_zero_version_read_version() and ucsi_zero_version_ops, so that
> they can be shared with other machines.
>
> No functional change.
>
> Cc: stable@vger.kernel.org # needed by the next patch
> Assisted-by: pi:claude-opus-5-5
> Signed-off-by: Stanisław Titenko <kernel@resetko.pl>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> ---
> drivers/usb/typec/ucsi/ucsi_acpi.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/usb/typec/ucsi/ucsi_acpi.c b/drivers/usb/typec/ucsi/ucsi_acpi.c
> index 5697ccc24ec3..47ba0e15b8ba 100644
> --- a/drivers/usb/typec/ucsi/ucsi_acpi.c
> +++ b/drivers/usb/typec/ucsi/ucsi_acpi.c
> @@ -121,7 +121,7 @@ static const struct ucsi_operations ucsi_acpi_ops = {
> .async_control = ucsi_acpi_async_control
> };
>
> -static int ucsi_acer_read_version(struct ucsi *ucsi, u16 *version)
> +static int ucsi_zero_version_read_version(struct ucsi *ucsi, u16 *version)
> {
> struct ucsi_acpi *ua = ucsi_get_drvdata(ucsi);
> int ret;
> @@ -138,8 +138,8 @@ static int ucsi_acer_read_version(struct ucsi *ucsi, u16 *version)
> return 0;
> }
>
> -static const struct ucsi_operations ucsi_acer_ops = {
> - .read_version = ucsi_acer_read_version,
> +static const struct ucsi_operations ucsi_zero_version_ops = {
> + .read_version = ucsi_zero_version_read_version,
> .read_cci = ucsi_acpi_read_cci,
> .poll_cci = ucsi_acpi_poll_cci,
> .read_message_in = ucsi_acpi_read_message_in,
> @@ -194,7 +194,7 @@ static const struct dmi_system_id ucsi_acpi_quirks[] = {
> DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
> DMI_MATCH(DMI_PRODUCT_NAME, "Nitro ANV15-41"),
> },
> - .driver_data = (void *)&ucsi_acer_ops,
> + .driver_data = (void *)&ucsi_zero_version_ops,
> },
> {
> .matches = {
>
> --
> 2.56.0
>
--
heikki
next prev parent reply other threads:[~2026-11-06 16:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-03 16:10 [PATCH v2 0/2] usb: typec: ucsi: acpi: Zero version quirk for Lenovo ThinkPad T14 Gen 2a Stanisław Titenko
2026-11-03 16:10 ` Stanisław Titenko via B4 Relay
2026-11-03 16:10 ` [PATCH v2 1/2] usb: typec: ucsi: acpi: Rename the Acer zero version quirk Stanisław Titenko
2026-11-03 16:10 ` Stanisław Titenko via B4 Relay
2026-11-03 16:13 ` sashiko-bot
2026-11-06 16:42 ` Heikki Krogerus [this message]
2026-11-03 16:10 ` [PATCH v2 2/2] usb: typec: ucsi: acpi: Assume UCSI 1.2 on Lenovo ThinkPad T14 Gen 2a Stanisław Titenko
2026-11-03 16:10 ` Stanisław Titenko via B4 Relay
2026-11-03 16:14 ` sashiko-bot
2026-11-06 16:54 ` Heikki Krogerus
2026-11-06 17:54 ` Mark Pearson
2026-11-06 18:03 ` Heikki Krogerus
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=au4DkMViEzQEHLHd@black.igk.intel.com \
--to=heikki.krogerus@linux.intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=kernel@resetko.pl \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=mpearson-lenovo@squebb.ca \
--cc=stable@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.