Re: [PATCH] usb: typec: tcpm: always rediscover when swapping DR

From: Kyle Tso
Date: Wed Aug 18 2021 - 12:13:36 EST


On Wed, Aug 18, 2021 at 10:40 PM Greg Kroah-Hartman
<gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
>
> On Wed, Aug 18, 2021 at 10:02:24PM +0800, Icenowy Zheng wrote:
> >
> >
> > 于 2021年8月18日 GMT+08:00 下午9:56:38, Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> 写到:
> > >On Tue, Aug 17, 2021 at 02:00:33PM +0300, Heikki Krogerus wrote:
> > >> > >Why is it necessary to do discovery with data role swap in general?
> > >> >
> > >> > I think it could be possible for devices to expose different altmode
> > >> > with different role.
> > >>
> > >> OK. FWIW:
> > >>
> > >> Acked-by: Heikki Krogerus <heikki.krogerus@xxxxxxxxxxxxxxx>
> > >
> > >Is this conflicting with https://lore.kernel.org/r/20210816075449.2236547-1-kyletso@xxxxxxxxxx ?
> > >
> > >Which of these two should I take, both? Neither?
> >
> > Don't take this, it's against spec.
>
> Ok, now dropped. What about the linked patch above? Does that work for
> you instead?
>
> thanks,
>
> greg k-h

Hi Icenowy,

Could you revisit the patch for the tcpm_unregister_altmodes part?
I think that is still a problem.

thanks,
Kyle