Re: [PATCH 7/7] platform/chrome: cros_ec_typec: Register partner altmodes

2020-10-29 Thread Prashant Malani
Hi Heikki, Thank you for reviewing the patch! On Wed, Oct 28, 2020 at 03:17:32PM +0200, Heikki Krogerus wrote: > Hi, > > On Wed, Oct 21, 2020 at 01:53:16PM -0700, Prashant Malani wrote: > > +static void cros_typec_unregister_altmodes(struct cros_typec_data *typec, > > int port_num) > > +{ > >

[PATCH 7/7] platform/chrome: cros_ec_typec: Register partner altmodes

2020-10-21 Thread Prashant Malani
Use the discovery data from the Chrome EC to register parter altmodes with the Type C Connector Class framework. Also introduce a node struct to keep track of the list of registered alt modes. Cc: Heikki Krogerus Signed-off-by: Prashant Malani --- drivers/platform/chrome/cros_ec_typec.c | 79