From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Ilia Snezhkov <iasnezhkov@gmail.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH] usb: typec: tcpci_rt1711h: restart DRP toggling on Ra/Open in TOGGLING
Date: Mon, 30 Nov 2026 14:13:25 +0100 [thread overview]
Message-ID: <aw12dbOO58mgThkm@black.igk.intel.com> (raw)
In-Reply-To: <54727A64-1EE7-4976-B702-74AE116CAE84@gmail.com>
On Thu, Nov 26, 2026 at 02:37:32PM +0800, Ilia Snezhkov wrote:
> Please disregard this v1 patch.
>
> On further self-review I noticed two defects with restarting DRP toggling directly from rt1711h_irq():
> 1. The unlocked TCPC_ROLE_CTRL read-modify-write across usleep_range(500, 1000) races with TCPM state transitions under port->lock, and an I2C failure after clearing TCPC_ROLE_CTRL_DRP can leave toggling disabled with TCPC_ALERT_CC_STATUS already cleared.
> 2. tcpc_presenting_rd() is dead after verifying TCPC_ROLE_CTRL_DRP is set (and the case TOGGLING check is in _tcpm_cc_change(), not tcpm_cc_change()).
>
> I will re-evaluate handling this under TCPM serialization before sendin a v2. Apologies for the noise.
Note, Sashiko drops everybody from CC. It's possible that some
maintainers haven't seen your comment.
When you prepare v2, please CC also stable if this really is a fix.
Oh, and no top-posting on the list.
Cheers,
--
heikki
prev parent reply other threads:[~2026-11-30 13:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 0:33 [PATCH] usb: typec: tcpci_rt1711h: restart DRP toggling on Ra/Open in TOGGLING Ilia Snezhkov via B4 Relay
2026-11-26 0:49 ` sashiko-bot
2026-11-26 6:37 ` Ilia Snezhkov
2026-11-30 13:13 ` 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=aw12dbOO58mgThkm@black.igk.intel.com \
--to=heikki.krogerus@linux.intel.com \
--cc=iasnezhkov@gmail.com \
--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