Re: [PATCH] platform/chrome: cros_ec_typec: Handle hard reset

From: Prashant Malani
Date: Fri Apr 16 2021 - 02:25:21 EST


Hi Enric,

Thanks for taking a look.

On Thu, Apr 15, 2021 at 10:39 PM Enric Balletbo Serra
<eballetbo@xxxxxxxxx> wrote:
>
> Hi Prashant,
>
> Thank you for your patch.
>
> Missatge de Prashant Malani <pmalani@xxxxxxxxxxxx> del dia dj., 15
> d’abr. 2021 a les 4:15:
> >
> > The Chrome Embedded Controller (EC) generates a hard reset type C event
> > when a USB Power Delivery (PD) hard reset is encountered. Handle this
> > event by unregistering the partner and cable on the associated port and
> > clearing the event flag.
> >
> > Also update the EC command header to include the new event bit. This bit
> > is included in the latest version of the Chrome EC headers[1].
> >
> > [1] https://chromium.googlesource.com/chromiumos/platform/ec/+/refs/heads/main/include/ec_commands.h
> >
> > Cc: Benson Leung <bleung@xxxxxxxxxxxx>
> > Signed-off-by: Prashant Malani <pmalani@xxxxxxxxxxxx>
> > ---
> > drivers/platform/chrome/cros_ec_typec.c | 13 +++++++++++++
> > include/linux/platform_data/cros_ec_commands.h | 1 +
>
> Could this be a separate patch?

Sure. I'll send a v2 with them split up.