Re: [PATCH] usb: typec: tcpm: advance vdm_discovery_state on Discover Identity Not_Supported
From: Xu Yang
Date: Sun Sep 20 2026 - 22:14:13 EST
Hi Heikki,
On Fri, Sep 18, 2026 at 09:53:17AM +0200, Heikki Krogerus wrote:
> On Mon, Sep 14, 2026 at 05:38:28PM +0800, Xu Yang wrote:
> > From: Xu Yang <xu.yang_2@xxxxxxx>
> >
> > Commit fa4d0a7cd036 ("usb: typec: tcpm: fix Discover Identity retry loop
> > on Control Message reject") advances vdm_discovery_state to
> > VDM_DISCOVERY_COMPLETE when a CMDT_RSP_NAK is received, but it does not
> > advance the state when a non-modal port returns PD_CTRL_NOT_SUPP.
> >
> > This can re-arm another vdm_discovery_work if the port is going to
> > respond with PD_CTRL_NOT_SUPP to the partner.
> >
> > tcpm_pd_handle_msg(port, PD_MSG_CTRL_NOT_SUPP, NONE_AMS);
> > tcpm_queue_message();
> > mod_tcpm_delayed_work();
> > tcpm_state_machine_work()
> > tcpm_send_queued_message() -> send PD_MSG_CTRL_NOT_SUPP
> > run_state_machine()
> > case SRC_READY:
> > case SNK_READY:
> > mod_vdm_discovery_delayed_work(port, 0);
> >
> > If both the port and its partner do not support modal operation, they
> > will send DISCOVER_IDENTITY to each other infinitely.
> >
> > Advance vdm_discovery_state to VDM_DISCOVERY_COMPLETE in this path as
> > well, mirroring the existing handling for the SVDM CMDT_RSP_NAK case.
> >
> > Fixes: fa4d0a7cd036 ("usb: typec: tcpm: fix Discover Identity retry loop on Control Message reject")
>
> I can't find that commit from anywhere?
It's a mistake, and I sent v2 to correct it:
https://lore.kernel.org/linux-usb/20260916043957.3362995-1-xu.yang_2@xxxxxxxxxxx/
Thanks,
Xu Yang