Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6722676rwl; Mon, 9 Jan 2023 12:07:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXvc93cIbd0xwP0NfIj02iDJYlAL0adpGUsFueeI+ltlHdMI1Z4D+M+oNRs7V1DYJHiFf9es X-Received: by 2002:a05:6a20:158b:b0:a2:d594:6868 with SMTP id h11-20020a056a20158b00b000a2d5946868mr99948387pzj.9.1673294848665; Mon, 09 Jan 2023 12:07:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673294848; cv=none; d=google.com; s=arc-20160816; b=hQ8MEALvEwWWsn1gnRuJUdGsPOZVMGZSM43ezrUqboguuMEIWRsdcWGcVE5LHGiB7f LJL30TyoWZvUKAU4c9Edi/56li+QaKaInvfFuSco7nDLgLVWp388wgMqPQ9gpVibRel5 fPmaV4LbDiRDdMGNpR3gMsNPmEJO1RuzUOZOMBnkM+aq4+dSzYV+Xd3kCrXHnp0vPHTk yCoEfwCKpPLOe9YXAamxxNQO0p3dHDLgkDT7C+o8G0s+cnWRGvKbItPMfA0mD6a4vzyI 52q/K8iVFMGLPiMjfDLcLJA26HpEgNEaO25RevIrlJwaKRmceeg8TuRK/FJbrxofJ+yM 3iFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zqcorDaesNPZpzpHYqsyJjDWld3f4vWy8ymddi6+5Ck=; b=Iw8VUSHJ8D1rf3mEr7Iv9OgrU9Zev1wqS/L1TzrNh+GvGYNgkgt3p7Z8iAUnvhK1OX RRReYHw0z7KS9PJaSEHdf3NUyrvIosevpJ6cyDi39z3JDFnTmFkWk22/y6k9+qi4uLD7 R3gwi22OwTBCR75MlnksSn8pzA9t2c5dvbUknIkOKiwlkrJBuC1uYAAa5yxJ3+9rqMgq c6/ljBTnzj96PuIxvbd/2f7Y2q3ewVjcMkmX73fjQDgPi2IuNfWz8Kp36GzseQmcvqKj b0xDpW04pQIOPCWU4MGhQeSd0VdgjZROhkZxzm6vekogevlhHAZ8g2IgEG/yf3uNp2RE L0iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=jmV1jNzC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a636305000000b0049069de0f5bsi10149856pgb.216.2023.01.09.12.07.22; Mon, 09 Jan 2023 12:07:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=jmV1jNzC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237142AbjAITiu (ORCPT + 53 others); Mon, 9 Jan 2023 14:38:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237625AbjAITig (ORCPT ); Mon, 9 Jan 2023 14:38:36 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C20387682B for ; Mon, 9 Jan 2023 11:38:35 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id v13-20020a17090a6b0d00b00219c3be9830so10844305pjj.4 for ; Mon, 09 Jan 2023 11:38:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=zqcorDaesNPZpzpHYqsyJjDWld3f4vWy8ymddi6+5Ck=; b=jmV1jNzCKoWqckeDEQ1H+b8qDQvzqbwC24lwo82MQMDsobTqG1j24JP0Z1Osj7dVCF AmVdIR7ci4zB/s9W8PPONSD68WZn8LEQQ2cTC11XGYb2LO5ySDoqCVFXIpmfZF54DqSD gOLfU/HEke3StZagS0RrTrJWu9G1KYbItHPXoj+Mo+XsfC9W8X+rstvoIYvP/CdV/ifq vMTJFm7AT/BmAjR8wYwAcefOTugp6QXiLOGV0MDS2vCLj+403EyCDUk/3CXaGYY+xv29 gJslPtm5Fi7psZLkWDceAGCtRVEUvcJiVxiQ4OaFkiBqU86u7AqJcpAOQ1nTgFG/JGJf zroQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zqcorDaesNPZpzpHYqsyJjDWld3f4vWy8ymddi6+5Ck=; b=yo4P8h0IV90Hi1fL3cZJcPgdQyWkR0j0Q4Knu0LrUgopRST5S4Hm2IEczEYPArAIjn I5uFxWvEr2zKH+Sb/oMKOGcoxBMCSZp4bu6KW4W+0UrYZshVaSiIYN0QeZvv2Z1L5yKt yuZeLTG0MJggnP7OqVOVZYBIMyS8P0/aipsqoSwV2/aWsVXSY5wOhmXwHKBPsMxO8aue 7H75kWdP7wOArxFbWECQ7tXNDa6Dc8x/3gv9Emw6/xOA6g7dHxJs2JnVIm3P+FtO8ZKz RKrhORyVH9jRm6pyAMuDpbh+Ud+tJrs7S0KLLdi2Mlh1iugV0dLGpHk14cr4/FTypVJn zS6w== X-Gm-Message-State: AFqh2krUQ9Ve+HI9zQtO5JydsQTpdI1LSu56T81EvKDYLOGk1pPrjaDA 5bj6zks2cnCXiqpMczafXYET/Q== X-Received: by 2002:a17:902:b946:b0:192:6bff:734 with SMTP id h6-20020a170902b94600b001926bff0734mr670859pls.2.1673293114869; Mon, 09 Jan 2023 11:38:34 -0800 (PST) Received: from google.com ([2620:15c:9d:2:3529:30e5:d581:6e80]) by smtp.gmail.com with ESMTPSA id d17-20020a170902ced100b00168dadc7354sm6530260plg.78.2023.01.09.11.38.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Jan 2023 11:38:33 -0800 (PST) Date: Mon, 9 Jan 2023 11:38:27 -0800 From: Benson Leung To: Prashant Malani Cc: linux-kernel@vger.kernel.org, chrome-platform@lists.linux.dev, heikki.krogerus@linux.intel.com, Benson Leung , Daisuke Nojiri , "Dustin L. Howett" , Evan Green , Greg Kroah-Hartman , Guenter Roeck , "Gustavo A. R. Silva" , Kees Cook , Lee Jones , Lee Jones , Sebastian Reichel , Stephen Boyd , Tinghan Shen , Tzung-Bi Shih , Xiang wangx Subject: Re: [PATCH 01/10] Revert "mfd: cros_ec: Add SCP Core-1 as a new CrOS EC MCU" Message-ID: References: <20221228004648.793339-1-pmalani@chromium.org> <20221228004648.793339-2-pmalani@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pdpsTrxAiTvMU7u3" Content-Disposition: inline In-Reply-To: <20221228004648.793339-2-pmalani@chromium.org> X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --pdpsTrxAiTvMU7u3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 28, 2022 at 12:45:04AM +0000, Prashant Malani wrote: > This reverts commit 66ee379d743c69c726b61d078119a34d5be96a35. >=20 > The feature flag introduced by Commit 66ee379d743c ("mfd: cros_ec: Add > SCP Core-1 as a new CrOS EC MCU") was not first added in the source EC > code base[1]. This can lead to the possible misinterpration of an EC's > supported feature set, as well as causes issues with all future feature > flag updates. >=20 > [1] https://source.chromium.org/chromium/chromiumos/platform/ec/+/main:in= clude/ec_commands.h >=20 > Signed-off-by: Prashant Malani Reviewed-by: Benson Leung > --- >=20 > While this patch modifies drivers/mfd, it would be preferable to submit > it through the chrome-platform tree, since that eliminates cross-tree > dependencies for the series of which this patch is a part. >=20 >=20 > drivers/mfd/cros_ec_dev.c | 5 ----- > include/linux/platform_data/cros_ec_commands.h | 2 -- > include/linux/platform_data/cros_ec_proto.h | 1 - > 3 files changed, 8 deletions(-) >=20 > diff --git a/drivers/mfd/cros_ec_dev.c b/drivers/mfd/cros_ec_dev.c > index 344ad03bdc42..02d4271dfe06 100644 > --- a/drivers/mfd/cros_ec_dev.c > +++ b/drivers/mfd/cros_ec_dev.c > @@ -64,11 +64,6 @@ static const struct cros_feature_to_name cros_mcu_devi= ces[] =3D { > .name =3D CROS_EC_DEV_SCP_NAME, > .desc =3D "System Control Processor", > }, > - { > - .id =3D EC_FEATURE_SCP_C1, > - .name =3D CROS_EC_DEV_SCP_C1_NAME, > - .desc =3D "System Control Processor 2nd Core", > - }, > { > .id =3D EC_FEATURE_TOUCHPAD, > .name =3D CROS_EC_DEV_TP_NAME, > diff --git a/include/linux/platform_data/cros_ec_commands.h b/include/lin= ux/platform_data/cros_ec_commands.h > index 5744a2d746aa..7c94bf5c8f05 100644 > --- a/include/linux/platform_data/cros_ec_commands.h > +++ b/include/linux/platform_data/cros_ec_commands.h > @@ -1300,8 +1300,6 @@ enum ec_feature_code { > * mux. > */ > EC_FEATURE_TYPEC_MUX_REQUIRE_AP_ACK =3D 43, > - /* The MCU is a System Companion Processor (SCP) 2nd Core. */ > - EC_FEATURE_SCP_C1 =3D 45, > }; > =20 > #define EC_FEATURE_MASK_0(event_code) BIT(event_code % 32) > diff --git a/include/linux/platform_data/cros_ec_proto.h b/include/linux/= platform_data/cros_ec_proto.h > index e43107e0bee1..a1f5b6d6db3a 100644 > --- a/include/linux/platform_data/cros_ec_proto.h > +++ b/include/linux/platform_data/cros_ec_proto.h > @@ -19,7 +19,6 @@ > #define CROS_EC_DEV_ISH_NAME "cros_ish" > #define CROS_EC_DEV_PD_NAME "cros_pd" > #define CROS_EC_DEV_SCP_NAME "cros_scp" > -#define CROS_EC_DEV_SCP_C1_NAME "cros_scp_c1" > #define CROS_EC_DEV_TP_NAME "cros_tp" > =20 > #define CROS_EC_DEV_EC_INDEX 0 > --=20 > 2.39.0.314.g84b9a713c41-goog >=20 >=20 --=20 Benson Leung Staff Software Engineer Chrome OS Kernel Google Inc. bleung@google.com Chromium OS Project bleung@chromium.org --pdpsTrxAiTvMU7u3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQCtZK6p/AktxXfkOlzbaomhzOwwgUCY7xtMwAKCRBzbaomhzOw wkixAQDtaWf7A/7oLyeHoq9KF2j9ocTf7B4YH0t8MKaWMjovwgEA3AJKyA/l9T1V 3kaZihZ0OTn1RFyXnvaW+MN5n4M/3g8= =A+fw -----END PGP SIGNATURE----- --pdpsTrxAiTvMU7u3--