From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Gilad Ben-Yossef <gilad@benyossef.com>
Cc: "Tobin C. Harding" <me@tobin.cc>,
Linux Crypto Mailing List <linux-crypto@vger.kernel.org>,
devel@driverdev.osuosl.org,
driverdev-devel@linuxdriverproject.org,
Linux kernel mailing list <linux-kernel@vger.kernel.org>,
Ofir Drang <ofir.drang@arm.com>
Subject: Re: [PATCH 3/3] staging: ccree: simplify ioread/iowrite
Date: Mon, 6 Nov 2017 16:46:54 +0100 [thread overview]
Message-ID: <20171106154654.GA15407@kroah.com> (raw)
In-Reply-To: <CAOtvUMcjUJw_hRwf+4pEv9-yXwgjnRrUpWbyASFt6AFjfTyOpg@mail.gmail.com>
On Mon, Nov 06, 2017 at 10:59:47AM +0200, Gilad Ben-Yossef wrote:
> On Mon, Nov 6, 2017 at 10:37 AM, Tobin C. Harding <me@tobin.cc> wrote:
> > On Mon, Nov 06, 2017 at 06:55:52AM +0000, Gilad Ben-Yossef wrote:
> >> Registers ioread/iowrite operations were done via macros,
> >> sometime using a "magical" implicit parameter.
> >>
> >> Replace all register access with simple inline macros.
> >>
> >> Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
> >
> > Hi,
> >
> > Nice work. I had a little trouble following this one. Perhaps you are
> > doing more than one thing per patch, feel free to ignore me if I am
> > wrong but it seems you are moving the macro definition of CC_REG to a
> > different header, adding the new inline functions and doing some other
> > change that I can't grok (commented on below).
> >
> > Perhaps this patch could be broken up.
>
> Thank you Tobin.
>
> The original macro that I am replacing had an assumption of a variable void *
> cc_base being defined in the context of the macro being called, even though
> it was not listed in the explicit parameter list of the macro.
>
> The inline function that replace it instead takes an explicit
> parameter a pointer to
> struct ssi_drive data * , who has said cc_base as one of the fields.
>
> As a result several function that took a void * cc_base parameter
> (which is than only
> used implicitly via the macro without ever being visibly referenced), now take
> struct ssi_drive data * parameter instead which is passed explicitly
> to the inline
> function.
>
> These seems to be the places you are referring to. They are cascading changes
> resulting from the change in API between the macro and the inline
> function that replaces it.
>
> I imagine I can try to break that change to two patches but at least
> in my mind this is artificial
> and it is a single logical change.
>
> Having said that, if you think otherwise and consider this
> none-reviewable even after this
> explanation let me know and I'd be happy to break it down.
Nah, this is fine, I'll take it as-is. Tobin, thanks for the review.
greg k-h
next prev parent reply other threads:[~2017-11-06 15:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-06 6:55 [PATCH 0/3] More code cleanups Gilad Ben-Yossef
2017-11-06 6:55 ` [PATCH 1/3] staging: ccree: simplify error handling logic Gilad Ben-Yossef
2017-11-06 6:55 ` [PATCH 2/3] staging: ccree: simplify registers access Gilad Ben-Yossef
2017-11-06 6:55 ` [PATCH 3/3] staging: ccree: simplify ioread/iowrite Gilad Ben-Yossef
2017-11-06 8:37 ` Tobin C. Harding
2017-11-06 8:59 ` Gilad Ben-Yossef
2017-11-06 15:46 ` Greg Kroah-Hartman [this message]
2017-11-06 20:24 ` Tobin C. Harding
2017-11-06 7:38 ` [PATCH 0/3] More code cleanups Greg Kroah-Hartman
2017-11-06 7:41 ` Gilad Ben-Yossef
2017-11-06 7:58 ` Greg Kroah-Hartman
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=20171106154654.GA15407@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=devel@driverdev.osuosl.org \
--cc=driverdev-devel@linuxdriverproject.org \
--cc=gilad@benyossef.com \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=me@tobin.cc \
--cc=ofir.drang@arm.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