Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp86756pxb; Thu, 30 Sep 2021 01:33:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3miyt+fttFODxuw/EeN7bljp3BHkk9aG/J2TfvdHFd98nHBSkA27jFfT9LVcLMSeOB6XA X-Received: by 2002:a17:906:1856:: with SMTP id w22mr5344132eje.393.1632990809832; Thu, 30 Sep 2021 01:33:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632990809; cv=none; d=google.com; s=arc-20160816; b=d9votgp0S3IKVF+TUmpkxNissuLgwF2BykeDwXUQf8f4N3J5npY/uDpJbnqD/iyOBK P8g3VrNAlmbezC/nrWouMN5SqAzpdwocdmwJFpcqP8FtC/TVfTej8q93ySjZbtE2hdAD 172VcZpDDhik333+w8DNwvajN4hdq2QoGuWWSTJCTUYTyfDqb1VpsvHxWFbWK2K6rPKl y1TdqqSXysIQWsnF3TTLkHdjl6sa3QzUpSN0H+H7/1bSoeZWjN9+xplSaCQppTjGOZ1W 4QFDTOquk2P9mJRtiUJF6rZ2S/1y0mY5XRLNPQRHJCtzGt5a90O3pSaV1IBcWH3eZAfc iI2Q== 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=hkyQi32/qc5Fkiq8J7yxGLRajzLDBS5k7NSceEoAp8U=; b=hCCgbsv2h8157nksa1lOIf/d5HOI7cCEnlBM+pgBfigqHESe/276ybMjccYP7wlQA+ Hi6sOklsw9mROAhcWl/HPpU3wXmAy+Ejt+7Cb4R5urCrVSzemd9mI2hA2y4Wsvr5rX4o r7Zbm+q9ZhBeAOgmCOJ2yojmGIEFMiJiJpjQ3H/EYa4PCbtxa/lq90yeezuogPkZSEf6 CMDJnAReDzvKpXPvMRLk9X8HFwgI22E6ffqVbwVAQgzmMT+ruPyftNjLbz0Ub6sbol9n 2UYusob1feKOsVEbZW68dpz+nfo3ST/fYsGe0CPtCAB7pY/eR9OHocx+C5p1SD8ZPXtO cfpA== 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 z17si2804384edm.510.2021.09.30.01.33.06; Thu, 30 Sep 2021 01:33:29 -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 S1348715AbhI3H1h (ORCPT + 99 others); Thu, 30 Sep 2021 03:27:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348599AbhI3H1g (ORCPT ); Thu, 30 Sep 2021 03:27:36 -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 B577AC06161C for ; Thu, 30 Sep 2021 00:25:54 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 379371F44975 Subject: Re: [PATCH 0/5] platform/chrome: Make cros_ec_pd_command() reusable To: Prashant Malani , linux-kernel@vger.kernel.org Cc: Benson Leung , Guenter Roeck , "Gustavo A. R. Silva" References: <20210930022403.3358070-1-pmalani@chromium.org> From: Enric Balletbo i Serra Message-ID: Date: Thu, 30 Sep 2021 09:25:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210930022403.3358070-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 30/9/21 4:23, Prashant Malani wrote: > This is a short series to relocate and rename cros_ec_pd_command() to > cros_ec_proto.c. This function is useful for sending host command > messages, so the 1st 4 patches move it a more central location, and > modify the arguments to allow other users to use it. > Nice patchset! let's hope we can remove at some point all the custom implementations in the different cros_ec drivers of the cros_ec_command function. Give some days to run some tests. Thanks, Enric > The final patch updates cros-ec-typec to use the new function and get > rid of its own copy. > > Prashant Malani (5): > platform/chrome: cros_usbpd_notify: Rename cros_ec_pd_command() > platform/chrome: cros_usbpd_notify: Move ec_command() > platform/chrome: cros_ec_proto: Make data pointers void > platform/chrome: cros_ec_proto: Add version for ec_command > platform/chrome: cros_ec_typec: Use cros_ec_command() > > drivers/platform/chrome/cros_ec_proto.c | 48 ++++++++++++++ > drivers/platform/chrome/cros_ec_typec.c | 69 ++++++--------------- > drivers/platform/chrome/cros_usbpd_notify.c | 50 +-------------- > include/linux/platform_data/cros_ec_proto.h | 3 + > 4 files changed, 72 insertions(+), 98 deletions(-) >