Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4293173ybv; Tue, 25 Feb 2020 17:12:27 -0800 (PST) X-Google-Smtp-Source: APXvYqzxmdRnQa60I59AN5DMRoHNbPRDbs59pIP1xmY1NJhOjtmj+sxcq1Fbo2ybTu9k3+A6rIDw X-Received: by 2002:aca:ab51:: with SMTP id u78mr1274218oie.21.1582679547518; Tue, 25 Feb 2020 17:12:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582679547; cv=none; d=google.com; s=arc-20160816; b=B437CZfXhvME3uvqS1JO9WREF8ONx6TamDfK5kWgP35z9Br6HVKy1qdF2G5Nlxb5rL lqK+7vHVDzbRbM9IRosv35akLha337vbWRznAch3+WFMP5lpXywjFpHm/kdpJYkulK6H RYR0DH79e3qSqHXztHrBLcY8epctip/A01oB9f9PM+MDDV21csId0DuCQvx5P38y8EE8 VcqYsKKv6bCrxP6yWgBYFp62YiVDKvq1j29VkcYSaoxsgk0W0ZdQOVYqgmlZ/Eu6ui5X /77YbBM2KEUJcOy/eon5O3jhjCRXOnjHwXFG8ExZBZCssKBqK20EGWMtxjg8xk7fHqRm BtpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6uX/nJPriJhQm0pTaKBAXAE1KxbsYiYr0UB81o3mu3c=; b=FWjnGEOMXkLXPlSZQ6WWL0DzIrV8WLF1NXA8sdzOiJS+iRx+uq3PvoEjuQT12tJI3c gN/11wAswgslvmZdyOM6jZs+alEL2Bca/0VN1YY0mBCAleKR9AfO/F19ra1rlxcvngwq wwbIf5xVfJVaKRtY3sctiMYVSPKI/ET+U0r1/Zc6fxtQO+k+pZMdkVsFfVwoQJzTMDq0 FVnmVeG73Rkwr5LTbzjE6Lxv0828ZSaNq6y30spQRJBThMuOLm80a6IAjr1/S/W1JwwQ I2tZ6ovpYUmm208o+9jwIj0kA9pjVltg5m7+M5eVRlAytz2GqixCZctklwaevk1oFTMm rt+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZUieuG1L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id a9si280763oib.59.2020.02.25.17.12.15; Tue, 25 Feb 2020 17:12:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZUieuG1L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1729855AbgBZBMM (ORCPT + 99 others); Tue, 25 Feb 2020 20:12:12 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:40888 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729833AbgBZBMM (ORCPT ); Tue, 25 Feb 2020 20:12:12 -0500 Received: by mail-pg1-f196.google.com with SMTP id t24so424535pgj.7 for ; Tue, 25 Feb 2020 17:12:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=6uX/nJPriJhQm0pTaKBAXAE1KxbsYiYr0UB81o3mu3c=; b=ZUieuG1LEZrc+9UMd8Wjg9qwl8Km3LnAYcJc34XaejDqleddc1z6mkrin5d2aNGbnx 1kxPiDHq3D7QAFjE7Np/pfMOnDRrYe9eREd/gDffXMjTkuFZoxzH96UVdirYAllTyMSD Y3xw8W4nd+mMxqiylK+WwywhatDceOMfSLwEA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=6uX/nJPriJhQm0pTaKBAXAE1KxbsYiYr0UB81o3mu3c=; b=Rp+iYDejV3KNfIOMfSVJzavobMTFHIAkM1ASHK1cewUpAOBkTibFEVIInDTsvolHm0 2cAd6LLz7Uc5UB50GcM4z3AoyOWqylE4b3Zd83zP7atLGNjlI8vwR4RdZhtg5x4T7OyA LwN0uc+JB71aMIPVuKhWUII6D2x6gtp/GhCh9slOs/oK1ko0Awk2HnAuYK7U99DR3Yih EgFaA1SoCBAYxAYKq1BkL8mE58AkX0XK6SaROdfkErOxF7863a9Gr6XNgPpFJKF78i5O S/okW2ZqUlCTP8S1TyzO8EUkszn1ci+75HzNQEAnzXXWxVyJl+YnoQEGMYwemLGuCfx3 MBig== X-Gm-Message-State: APjAAAUiHUV2FeXSanhaRG6ANu2sw3ih62FeodbeocnzGrbc/9aXdJ+r H4uCrPNlNgdJdQYHK5jVTx/HKLVYQBM= X-Received: by 2002:a62:f94d:: with SMTP id g13mr1537803pfm.60.1582679530660; Tue, 25 Feb 2020 17:12:10 -0800 (PST) Received: from google.com ([2620:15c:202:201:476b:691:abc3:38db]) by smtp.gmail.com with ESMTPSA id w21sm209079pgc.87.2020.02.25.17.12.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2020 17:12:10 -0800 (PST) Date: Tue, 25 Feb 2020 17:12:08 -0800 From: Prashant Malani To: Enric Balletbo i Serra Cc: linux-kernel@vger.kernel.org, Collabora Kernel ML , groeck@chromium.org, bleung@chromium.org, dtor@chromium.org, gwendal@chromium.org, Enrico Granata , Andy Shevchenko , Jonathan Cameron , Ting Shen , Lee Jones , Neil Armstrong , Dmitry Torokhov , Fei Shao , Pi-Hsun Shih , Evan Green , linux-input@vger.kernel.org Subject: Re: [PATCH 0/8] Migrate all cros_ec_cmd_xfer() calls to cros_ec_cmd_xfer_status() Message-ID: <20200226011208.GD197302@google.com> References: <20200220155859.906647-1-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200220155859.906647-1-enric.balletbo@collabora.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 20, 2020 at 04:58:51PM +0100, Enric Balletbo i Serra wrote: > Dear all, > > The purpose of this series is get rid of the remaining places where the > cros_ec_cmd_xfer() function is used in favour of the > cros_ec_cmd_xfer_status() helper. This allows us to make the > cros_ec_cmd_xfer() function private and only expose to the users a > single way to send commands to the Embedded Controller. > > With these changes we also want to help future improvements in the > interface, like the Prashant's series (i.e [1]) to introduce a > cros_ec_cmd() that will allow us to remove more duplicated code in > different places. > > Best regards, > Enric > > Note: Prashant, looks like you should fix your sendmail as the patches > are not threaded. > > [1] https://lkml.org/lkml/2020/2/5/614 > > Enric Balletbo i Serra (8): > platform/chrome: cros_ec_proto: Report command not supported > Input: cros_ec_keyb: Use cros_ec_cmd_xfer_status helper > platform/chrome: cros_ec_vbc: Use cros_ec_cmd_xfer_status helper > platform/chrome: cros_ec_chardev: Use cros_ec_cmd_xfer_status helper > platform/chrome: cros_ec_sysfs: Use cros_ec_cmd_xfer_status helper > platform/chrome: cros_ec_lightbar: Use cros_ec_cmd_xfer_status helper > platform/chrome: cros_ec: Use cros_ec_cmd_xfer_status helper > platform/chrome: cros_ec_proto: Do not export cros_ec_cmd_xfer() I picked this series on a device running 4.19 and didn't see any unusual behaviour or dmesg logs, so for the entire series: Tested-by: Prashant Malani > > drivers/input/keyboard/cros_ec_keyb.c | 14 +++--- > drivers/platform/chrome/cros_ec.c | 2 +- > drivers/platform/chrome/cros_ec_chardev.c | 2 +- > drivers/platform/chrome/cros_ec_lightbar.c | 50 ++++++--------------- > drivers/platform/chrome/cros_ec_proto.c | 14 ++++-- > drivers/platform/chrome/cros_ec_sysfs.c | 36 +++++++-------- > drivers/platform/chrome/cros_ec_vbc.c | 4 +- > include/linux/platform_data/cros_ec_proto.h | 3 -- > 8 files changed, 50 insertions(+), 75 deletions(-) > > -- > 2.25.0 >