Re: [PATCHv3 1/2] usb: USB Type-C connector class
From: Heikki Krogerus
Date: Thu Jun 23 2016 - 04:25:59 EST
Hi,
On Wed, Jun 22, 2016 at 02:54:28PM -0700, Guenter Roeck wrote:
> Hi,
>
> > +
> > +static void typec_remove_partner(struct typec_port *port)
> > +{
> > + WARN_ON(port->partner->alt_modes);
>
> You are setting partner->alt_modes in typec_register_altmodes(),
> but you don't clear it in typec_unregister_altmodes().
>
> Does this work for you ? I always get the warning when I remove a cable.
Damn it.. I have managed to just ignore the warning.
Yeah, this has to be fixed. Sorry about that.
Thanks,
--
heikki