From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Sven Peter <sven@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
asahi@lists.linux.dev, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] usb: typec: tipd: Disable mode control for CD321x
Date: Mon, 7 Sep 2026 14:08:40 +0200 [thread overview]
Message-ID: <ap6pSJbx_HNPerOs@black.igk.intel.com> (raw)
In-Reply-To: <20260906-b4-tipd-mode-ctrl-v1-1-71032eaaa452@kernel.org>
On Sun, Sep 06, 2026 at 02:24:00PM +0200, Sven Peter wrote:
> Apple's CD321X firmware controls which alternate mode is entered and
> cannot be influenced from Linux. Set the no_mode_control capability to
> accurately reflect this to the typec subsystem.
>
> Signed-off-by: Sven Peter <sven@kernel.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> ---
> drivers/usb/typec/tipd/core.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/usb/typec/tipd/core.c b/drivers/usb/typec/tipd/core.c
> index 522f56742aa9..8fdb37e288b4 100644
> --- a/drivers/usb/typec/tipd/core.c
> +++ b/drivers/usb/typec/tipd/core.c
> @@ -151,6 +151,7 @@ struct tipd_data {
> irq_handler_t irq_handler;
> u64 irq_mask1;
> size_t tps_struct_size;
> + bool no_mode_control;
> void (*remove)(struct tps6598x *tps);
> int (*register_port)(struct tps6598x *tps, struct fwnode_handle *node);
> void (*unregister_port)(struct tps6598x *tps);
> @@ -1242,6 +1243,7 @@ tps6598x_register_port(struct tps6598x *tps, struct fwnode_handle *fwnode)
> typec_cap.driver_data = tps;
> typec_cap.ops = &tps6598x_ops;
> typec_cap.fwnode = fwnode;
> + typec_cap.no_mode_control = tps->data->no_mode_control;
>
> switch (TPS_SYSCONF_PORTINFO(conf)) {
> case TPS_PORTINFO_SINK_ACCESSORY:
> @@ -2015,6 +2017,7 @@ static const struct tipd_data cd321x_data = {
> APPLE_CD_REG_INT_DATA_STATUS_UPDATE |
> APPLE_CD_REG_INT_PLUG_EVENT,
> .tps_struct_size = sizeof(struct cd321x),
> + .no_mode_control = true,
> .remove = cd321x_remove,
> .register_port = cd321x_register_port,
> .unregister_port = cd321x_unregister_port,
>
> ---
> base-commit: cee9395acd8043be0644b25c34bfa86623f2b935
> change-id: 20260906-b4-tipd-mode-ctrl-80835d9e3f72
>
> Best regards,
> --
> Sven Peter <sven@kernel.org>
>
--
heikki
prev parent reply other threads:[~2026-09-07 12:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-06 12:24 Sven Peter
2026-09-07 12:08 ` 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=ap6pSJbx_HNPerOs@black.igk.intel.com \
--to=heikki.krogerus@linux.intel.com \
--cc=asahi@lists.linux.dev \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=sven@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®