From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8942DC433B4 for ; Tue, 20 Apr 2021 10:00:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 422DB61104 for ; Tue, 20 Apr 2021 10:00:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231255AbhDTKBB (ORCPT ); Tue, 20 Apr 2021 06:01:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230204AbhDTKBA (ORCPT ); Tue, 20 Apr 2021 06:01:00 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3637EC06174A for ; Tue, 20 Apr 2021 03:00:29 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 5C1351F426F0 Subject: Re: [PATCH v2 1/2] platform/chrome: cros_ec: Add Type C hard reset To: Prashant Malani , linux-kernel@vger.kernel.org Cc: Benson Leung , Guenter Roeck , "Gustavo A. R. Silva" , Mark Brown , Pi-Hsun Shih , Utkarsh Patel , Yu-Hsuan Hsu References: <20210416182739.2938473-1-pmalani@chromium.org> From: Enric Balletbo i Serra Message-ID: <172e5982-5544-7170-4c88-95e196e28fac@collabora.com> Date: Tue, 20 Apr 2021 12:00:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <20210416182739.2938473-1-pmalani@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prashant, On 16/4/21 20:27, Prashant Malani wrote: > 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 > > Change-Id: I52a36e725d945665814d4e59ddd1e76a3692db9f Please remember to remove the ChromeOS specific tags and add properly the Signed-off Thanks, Enric > --- > v2 is the first version the patch was introduced. > > include/linux/platform_data/cros_ec_commands.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/linux/platform_data/cros_ec_commands.h b/include/linux/platform_data/cros_ec_commands.h > index 5ff8597ceabd..9156078c6fc6 100644 > --- a/include/linux/platform_data/cros_ec_commands.h > +++ b/include/linux/platform_data/cros_ec_commands.h > @@ -5678,6 +5678,7 @@ enum tcpc_cc_polarity { > > #define PD_STATUS_EVENT_SOP_DISC_DONE BIT(0) > #define PD_STATUS_EVENT_SOP_PRIME_DISC_DONE BIT(1) > +#define PD_STATUS_EVENT_HARD_RESET BIT(2) > > struct ec_params_typec_status { > uint8_t port; >