Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp91830pxb; Fri, 16 Apr 2021 00:01:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWmYfbSORDMyacHEDol/M/Jwk7aZOs33Zkml8dy1+hpAfTsG6iIGGmCyVGUCpnIZpVdmpb X-Received: by 2002:a17:903:20c1:b029:eb:5faf:58ed with SMTP id i1-20020a17090320c1b02900eb5faf58edmr7788732plb.45.1618556462885; Fri, 16 Apr 2021 00:01:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618556462; cv=none; d=google.com; s=arc-20160816; b=zr+u6Q+ZcWRetwzdX4LoUNqoDOUiC2iCGUxo7j4f3mlvpdvnrZVNDCKFjUdHqgrRzd T33tYh2ma/FKiH6VWYE+FMlnENHe3aYk9sBei6slEBTPeyUPZARv9MiD2HFBtwHol+y3 lQE1WLpkiD7KKUjyRNvQeGHu+jfHk9hTZN4WKhUg6qeYIQV8JME0uSnz9AYQrngxCCnI dzFlPMDDl5TSmzT7UqQbrAeKKjy9219CYuIKMhZRFqLtLYVVh13DrhJvee0uwsD/EyYv EK6fGTbRoZ6tgogPF7vKawlyRgbvZFIva21a7TrZAavcX8ipROGTOqVENVqqX4q5bZmK 8mrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=z/a0vQssthNawacQM/DKA0NqIqx/4q8LyjyKHWk53zc=; b=Lw634GqjaEaTag5oTSK5I0DnMplh1RLKJ9R0PH7KKpltFAt2yaoSY/a1UIskT/JpPL KzaxBFN2/TzXklupK8pYbpclg5clzxXSJjqmpoHAk+M+FVw2HYKdt9rLJ4pEetl8bHwq nsom7r8dGCPKBxn+RsRQUGU75J0QxEh3JNLK1G9qTS2GBEXSHMXP8TWQY2kPH2bk21RX Bxg2lkbh80NozBBPyJfnGXYDCBPn3Lpq8+5R8voAupJTMDLvpVF2OJQbeU/h44OWjWZa Zb59wIt7aauGMq85v8V+IhHYJFY5YhNppBVqKYx72v1CYKrwCXWcgNVE1bcX4XcrnPD+ VMzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hjHk7ksT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s10si3389177pgf.358.2021.04.16.00.00.50; Fri, 16 Apr 2021 00:01:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hjHk7ksT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238736AbhDPGZm (ORCPT + 99 others); Fri, 16 Apr 2021 02:25:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233959AbhDPGZi (ORCPT ); Fri, 16 Apr 2021 02:25:38 -0400 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF414C061574 for ; Thu, 15 Apr 2021 23:25:12 -0700 (PDT) Received: by mail-qk1-x72b.google.com with SMTP id c123so22994120qke.1 for ; Thu, 15 Apr 2021 23:25:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=z/a0vQssthNawacQM/DKA0NqIqx/4q8LyjyKHWk53zc=; b=hjHk7ksTlfpOJgy21RNs2wSa9lwcSSeTHdXcQvpfMcOvMti7TL8x5NwB8be77zNWnN MLcoS76ZXkn48ViQFGegS83T/LgQk4hEBsMUEhy4rkhVlDBt5fV7wCRZ/f7Uzav5v1Ns lHmIUoLBQ8BM9Dlsxp1Pocb+pTodafepkKkp8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=z/a0vQssthNawacQM/DKA0NqIqx/4q8LyjyKHWk53zc=; b=PbOI4WQb1ssq6WejQ5AZzl8AyEmKCdMb4O1GMhjicCR/rAHgKvPNy6vsylXVYO2rT5 Mfi59xsGRgmHf5BToJjV0LDadKDQ/5fLbz8JIYF384uc5d6MXVGheGr3zQYkZrSRqdYS Bk21jUK+/4OQZLZGcsaNAWfCf7hdnDg6Q1pZ5u+CgtXUEsnuvdxNsjE27WxSNyVduC0K VHknU3vm6D6AjC6P7lqnJpssCdNyleIdp/OmCESLQEzEcdg9KCcoqyH4yHOAnvVuhvjR HnFATi7O3u/tQMZzaHluZhZj5bXlS64rxS2ah55hsqX/6LLwbctm6UiRHnBfIb09nTKO HdmQ== X-Gm-Message-State: AOAM5334q1+7fJkzj/WfOzu5ruXrXvy+EoAo/ZOhJ4d30TTmp0uh8qxL jZYDIKa+Qqt59VKxozz8RdjOze0mwE5lEU9Jl0QRDA== X-Received: by 2002:ae9:eb4d:: with SMTP id b74mr7715382qkg.4.1618554312114; Thu, 15 Apr 2021 23:25:12 -0700 (PDT) MIME-Version: 1.0 References: <20210415021456.1805797-1-pmalani@chromium.org> In-Reply-To: From: Prashant Malani Date: Thu, 15 Apr 2021 23:25:00 -0700 Message-ID: Subject: Re: [PATCH] platform/chrome: cros_ec_typec: Handle hard reset To: Enric Balletbo Serra Cc: linux-kernel , Benson Leung , Enric Balletbo i Serra , Guenter Roeck , "Gustavo A. R. Silva" , Mark Brown , Pi-Hsun Shih , Utkarsh Patel , Yu-Hsuan Hsu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Enric, Thanks for taking a look. On Thu, Apr 15, 2021 at 10:39 PM Enric Balletbo Serra wrote: > > Hi Prashant, > > Thank you for your patch. > > Missatge de Prashant Malani del dia dj., 15 > d=E2=80=99abr. 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 bi= t > > is included in the latest version of the Chrome EC headers[1]. > > > > [1] https://chromium.googlesource.com/chromiumos/platform/ec/+/refs/hea= ds/main/include/ec_commands.h > > > > Cc: Benson Leung > > Signed-off-by: Prashant Malani > > --- > > 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.