From: Daniel Campello <campello@chromium.org>
To: Nick Crews <ncrews@chromium.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
Enric Balletbo i Serra <enric.balletbo@collabora.com>,
Benson Leung <bleung@chromium.org>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Duncan Laurie <dlaurie@google.com>,
Trent Begin <tbegin@google.com>
Subject: Re: [PATCH] platform/chrome: wilco_ec: Add debugfs test_event file
Date: Wed, 18 Sep 2019 11:32:36 -0600 [thread overview]
Message-ID: <20190918173236.GB24119@chromium.org> (raw)
In-Reply-To: <CAHX4x84w1xf9RL_rK4PiMrW2uhVkNFeU5GrW_BYfs8B5NKG9jg@mail.gmail.com>
On Fri, Sep 06, 2019 at 06:20:51PM -0400, Nick Crews wrote:
> Thanks for the patch Daniel! A few thoughts that I didn't
> have on the review on Gerrit, sorry :) After those changes,
>
No problem, I will take care of them.
> Reviewed-by: Nick Crews <ncrews@chromium.org>
>
> > u8 sub_cmd; /* Always SUB_CMD_H1_GPIO */
>
> This comment should be removed.
>
I overlooked this. Done.
> This comment should be moved to h1_gpio_get().
>
Agree
> > -static int h1_gpio_get(void *arg, u64 *val)
> > +static int write_to_mailbox(struct wilco_ec_device *ec, u8 sub_cmd, u64 *val)
>
> What about send_ec_cmd() or similar? Something that communicates that
> we are sometimes telling the EC to do something, and sometimes reading something
> back. Also, since we are adding in another layer in here, we can fix
> the signature from
> the one required by a debugfs attribute. Use "ret" instead of "val"
> and make it a u8*.
>
send_ec_cmd() sounds good to me but ret is already used. Will change
to out_val as discussed offline.
> A one line comment as to what test_event does?
>
> > +static int test_event_set(void *arg, u64 val)
> > +{
> > + u64 ret;
> > +
> > + return write_to_mailbox(arg, SUB_CMD_TEST_EVENT, &ret);
> > +}
> > +
Will do. Thanks again.
prev parent reply other threads:[~2019-09-18 17:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-06 20:42 Daniel Campello
2019-09-06 22:20 ` Nick Crews
2019-09-18 17:32 ` Daniel Campello [this message]
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=20190918173236.GB24119@chromium.org \
--to=campello@chromium.org \
--cc=alexandre.belloni@bootlin.com \
--cc=bleung@chromium.org \
--cc=dlaurie@google.com \
--cc=enric.balletbo@collabora.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ncrews@chromium.org \
--cc=tbegin@google.com \
/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®