Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3203424pxb; Tue, 20 Apr 2021 03:01:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIVq8lWoIM26xFEgCfUyyC77MKJvA8c7TZdHH0xs1Wbay3vAqd8NzG5bGKdGucooWh7e45 X-Received: by 2002:a17:90a:430e:: with SMTP id q14mr4221884pjg.189.1618912881126; Tue, 20 Apr 2021 03:01:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618912881; cv=none; d=google.com; s=arc-20160816; b=XCJdbljsY9BNEfV2UxPCwywRoArZaIoCHK3ww1oVmAzAeod6twnpXaoGqDmYyWsEA0 8Y0u8ECKWkIGhKeU7LcMplAx0Q/Jldg0jVO7p11Ft8VPvpcy0AswJvihcY7RI8qi4lt1 Ulxp45PTw2aej42pWK9ZCJBJDye8q86Q0fPqLjvrFD9RaSQrN1PcZi0wEDm1v567Xyyw kvhRhTSyFAU58BUFsPhXfrBsGv9QWYlPr8m2zddV5dkf7kuz2oTYWcaOIL2XCm5NLwIt 0TsenlDXqs5sk+qTpGoVTj/nhSw58OqJRbxV2AFRKGzAypEe012MabmpjvT7xen48bCU tJjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=TH6o7pOcnLZ9ElKmCDDXCKIPScLRgJ39sdfjD5rlv4o=; b=wY3/p7+W7Np4Ns44jgvQX8LEYSAvwmffz463ST+JZ1ZSO+bkrcFem8cjWGbdix4hzZ BP7ey555YFg7y0nyg3IZ/5tN51BV63WANZfSC5y4ofm1AI9rg5B2pmQzyO58e4gVfP3d MnsKpz3J0J9y3CHlDoDWx8IvDCNxm1y2r6cVJQycZwe1d8yB9kSUEBK5+YKJaIKj2eSR jADeB+n04gDc5qswobCbKdnc3NwXGm+k436mTUegXk6cySys/wi3NE45uCGYffjYupuQ 0xur3MOmzc2GJNQtVeVl0gmSX4RIku3tY3wyFTExlX/KpNN214esXKALXJoPM+stVhMQ QNGQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i7si15163036pla.31.2021.04.20.03.01.05; Tue, 20 Apr 2021 03:01:21 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231143AbhDTKBA (ORCPT + 99 others); Tue, 20 Apr 2021 06:01:00 -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; >