From: Enric Balletbo i Serra <enric.balletbo@collabora.com>
To: Nick Crews <ncrews@chromium.org>, bleung@chromium.org
Cc: linux-kernel@vger.kernel.org, dlaurie@chromium.org,
derat@google.com, groeck@google.com, dtor@google.com,
sjg@chromium.org, alevkoy@chromium.org, keithshort@chromium.org
Subject: Re: [PATCH v4 2/2] platform/chrome: wilco_ec: Add h1_gpio status to debugfs
Date: Mon, 15 Apr 2019 16:04:18 +0200 [thread overview]
Message-ID: <b4d24cd0-b637-4616-1977-ec08bb119422@collabora.com> (raw)
In-Reply-To: <20190412181443.239166-2-ncrews@chromium.org>
On 12/4/19 20:14, Nick Crews wrote:
> As part of Chrome OS's FAFT (Fully Automated Firmware Testing)
> tests, we need to ensure that the H1 chip is properly setting
> some GPIO lines. The h1_gpio attribute exposes the state
> of the lines:
> - ENTRY_TO_FACT_MODE in BIT(0)
> - SPI_CHROME_SEL in BIT(1)
>
> There are two reasons that I am exposing this in debugfs,
> and not as a GPIO:
> 1. This is only useful for testing, so end users shouldn't ever
> care about this. In fact, if it passes the tests, then the value of
> h1_gpio will always be 2, so it would be really uninteresting for users.
> 2. This GPIO is not connected to, controlled by, or really even related
> to the AP. The GPIO runs between the EC and the H1 security chip.
>
> Changes in v4:
> - Use "0x02x\n" instead of "02x\n" for format string
> - Use DEFINE_DEBUGFS_ATTRIBUTE()
> - Add documentation
> Changes in v3:
> - Fix documentation to correspond with formatting change in v2.
> Changes in v2:
> - Zero out the unused fields in the request.
> - Format result as "%02x\n" instead of as a decimal.
>
> Signed-off-by: Nick Crews <ncrews@chromium.org>
Applied for 5.2
Thanks
next prev parent reply other threads:[~2019-04-15 14:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-12 18:14 [PATCH v4 1/2] platform/chrome: wilco_ec: Fix documentation for debugfs raw attribute Nick Crews
2019-04-12 18:14 ` [PATCH v4 2/2] platform/chrome: wilco_ec: Add h1_gpio status to debugfs Nick Crews
2019-04-15 14:04 ` Enric Balletbo i Serra [this message]
2019-04-15 14:02 ` [PATCH v4 1/2] platform/chrome: wilco_ec: Fix documentation for debugfs raw attribute Enric Balletbo i Serra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b4d24cd0-b637-4616-1977-ec08bb119422@collabora.com \
--to=enric.balletbo@collabora.com \
--cc=alevkoy@chromium.org \
--cc=bleung@chromium.org \
--cc=derat@google.com \
--cc=dlaurie@chromium.org \
--cc=dtor@google.com \
--cc=groeck@google.com \
--cc=keithshort@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ncrews@chromium.org \
--cc=sjg@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®