Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp220706pxk; Wed, 16 Sep 2020 02:40:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmKStFcc/aq7HqceB28XGL8YCMtP9mzzzOBJFO0ECl4tdRU1t+D5KHHYdTxrs3CmoOCkxs X-Received: by 2002:a50:9dc8:: with SMTP id l8mr26894752edk.58.1600249202720; Wed, 16 Sep 2020 02:40:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600249202; cv=none; d=google.com; s=arc-20160816; b=PLz0WWlfSkOgdYzkypXGcs0mzq3GZ5AJWNOwUDNd+RG2NSYonAsK9745/Ww3hWTTV8 e13VewMc4g6seZF9MIFGgH5RaFcMUusqIf/aIdDHNDUQymucmzfo+kJV79BfjxTWX6Nh T93WcmTL8puKDg5udFGKptFN/BYrfXnbaZIBeQKyxidnbnMQwwNemfj4oJtvYsD9HN14 TH5+I6unEu/UO2E1IrYFQLVkFZ/JRsY5acS+LTeZ9ZFFuON2tGwPnR9o88QS774Rbxrn GTYekY3wk6pFGI83182+450PjgMYKb/NeBavtWEx+a09WE3/LsVBZhLGVKFu3pkMHQ9i 2g8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=cClHsRTwMnpYxSAVpUe2+Z04uZTpvu7vzWu2mB9X/YA=; b=ppfvsUkiLJtTxDAZN35NGVRTKNqvRxoQPMnLDQsfvbI7Esx+xUmN7ygojoxoSV56pE eVzKWMgpCRXcLNcQMQvy+AQjZQ8KQaMM9CawVqvgzPYxlT9HWIj6F6dMk5B22vOyL5N7 +1NdyQRKWEFDQWZRFu/0Ktz7nW3yUh/ATjKGwoyEkJ1G+A4RB95Fob52zk1Pkt3sCTxb cX/pR3NkjnBvrUqLa+vAVDemgyV5CvZVNfxiXvLE1AkjUdtA1Fljvl3yBIW3HE/K3L9K 7j2gGOcq5E6masnXkDskZNRUh81DRZZ7upe9EkZugciDVQ/HHA6JbEVgVeaQPnr05fJR nJnw== 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 p7si10865651edq.28.2020.09.16.02.39.40; Wed, 16 Sep 2020 02:40:02 -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 S1726663AbgIPJjE (ORCPT + 99 others); Wed, 16 Sep 2020 05:39:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726392AbgIPJjC (ORCPT ); Wed, 16 Sep 2020 05:39:02 -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 0B2E9C06174A for ; Wed, 16 Sep 2020 02:39:01 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 6850129B1E6 Subject: Re: [PATCH] platform/chrome: cros_ec_debugfs: Support pd_info v2 format To: Prashant Malani Cc: Stephen Boyd , Benson Leung , Linux Kernel Mailing List , Gwendal Grignou , Guenter Roeck References: <20200909040400.908217-1-swboyd@chromium.org> <720fcfbb-3f3a-9679-bd33-56d7f65651a5@collabora.com> From: Enric Balletbo i Serra Message-ID: <7b391f5e-8200-ddc5-eb56-164c6006a134@collabora.com> Date: Wed, 16 Sep 2020 11:38:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prashant, On 15/9/20 17:34, Prashant Malani wrote: > HI Enric, > > On Tue, Sep 15, 2020 at 5:48 AM Enric Balletbo i Serra > wrote: >> >> Hi Stephen, Prashant, >> >> On 9/9/20 6:04, Stephen Boyd wrote: >>> Let's try to read more information out of more modern cros_ec devices by >>> using the v2 format first and then fall back to the v1 format. This >>> gives us more information about things such as DP mode of the typec pins >>> and the CC state, along with some more things. >>> >>> Cc: Gwendal Grignou >>> Cc: Prashant Malani >>> Cc: Guenter Roeck >>> Signed-off-by: Stephen Boyd >>> --- >>> >> >> I saw some discussion going on in gerrit (a pity the discussion didn't happen in >> mainline) Did you end with a conclusion? Can I remove this patch from my backlog? > > My apologies for not posting the comment here. > To summarize: the userspace EC utility ectool [1] can offer the > equivalent output, but with better formatting. So I believe the > decision is to use that instead of this patch. > I also posed a counter-question: can we remove this debugfs pdinfo > file entirely, since we can pull this information using ectool? > If I am not mistaken pdinfo is used by your userspace, so, assuming we don't break (or we have a plan to not break) things I'm fine with it. In general, delegating things to userspace and get rid of kernel code is good for everyone. Thanks, Enric > [1]: https://chromium.googlesource.com/chromiumos/platform/ec/+/refs/heads/master/util/ectool.c > > Best regards, >