From: mgreer@animalcreek.com (Mark A. Greer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 1/7] ARM: OMAP2xxx: hwmod: Convert SHAM crypto device data to hwmod
Date: Fri, 9 Nov 2012 10:07:03 -0700 [thread overview]
Message-ID: <20121109170703.GA13898@animalcreek.com> (raw)
In-Reply-To: <CALLzPKY7TCFe0yvpwJFNf8U2=h4k1Jcb8g9Q0UpGM8qv2FcSwg@mail.gmail.com>
On Fri, Nov 09, 2012 at 06:10:20PM +0200, Kasatkin, Dmitry wrote:
> Hello,
Thanks for your comments, Dmitry.
> On Wed, Nov 7, 2012 at 4:57 AM, Mark A. Greer <mgreer@animalcreek.com> wrote:
> > From: "Mark A. Greer" <mgreer@animalcreek.com>
> >
> > Convert the device data for the OMAP2 SHAM crypto IP from
> > explicit platform_data to hwmod.
> >
> > CC: Paul Walmsley <paul@pwsan.com>
> > Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
> > ---
> > diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
> > index cba60e0..f18fa50 100644
> > --- a/arch/arm/mach-omap2/devices.c
> > +++ b/arch/arm/mach-omap2/devices.c
> > @@ -501,16 +485,24 @@ static struct platform_device sham_device = {
> > static void omap_init_sham(void)
> > {
> > if (cpu_is_omap24xx()) {
> > - sham_device.resource = omap2_sham_resources;
> > - sham_device.num_resources = omap2_sham_resources_sz;
> > + struct omap_hwmod *oh;
> > + struct platform_device *pdev;
> > +
> > + oh = omap_hwmod_lookup("sham");
> > + if (!oh)
> > + return;
> > +
> > + pdev = omap_device_build("omap-sham", -1, oh, NULL, 0, NULL,
> > + 0, 0);
> > + WARN(IS_ERR(pdev), "Can't build omap_device for omap-sham\n");
> > } else if (cpu_is_omap34xx()) {
> > sham_device.resource = omap3_sham_resources;
> > sham_device.num_resources = omap3_sham_resources_sz;
> > + platform_device_register(&sham_device);
>
> Why changes are only for OMAP2?
> OMAP3 is also the same class.
This patch is specifically for omap2.
A following patch does the same for omap3.
> > diff --git a/arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c b/arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c
> > index 1a1287d..bb314c5 100644
> > --- a/arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c
> > +++ b/arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c
> > @@ -138,6 +138,15 @@ static struct omap_hwmod_addr_space omap2_rng_addr_space[] = {
> > { }
> > };
> >
> > +struct omap_hwmod_addr_space omap2xxx_sham_addrs[] = {
> > + {
> > + .pa_start = 0x480a4000,
> > + .pa_end = 0x480a4000 + 0x64 - 1,
> > + .flags = ADDR_TYPE_RT
> > + },
> > + { }
> > +};
>
> Why not using macros as it was before?
>
> OMAP24XX_SEC_SHA1MD5_BASE
I am following the precedent set in the existing code of that file
which uses the actual address instead of a macro (except for uart).
I have no preference but I believe that is how Paul prefers it.
Paul?
next prev parent reply other threads:[~2012-11-09 17:07 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-07 2:57 [PATCH v3 0/7] crypto: omap-sham updates Mark A. Greer
2012-11-07 2:57 ` [PATCH v3 1/7] ARM: OMAP2xxx: hwmod: Convert SHAM crypto device data to hwmod Mark A. Greer
2012-11-09 16:10 ` Kasatkin, Dmitry
2012-11-09 17:07 ` Mark A. Greer [this message]
2012-11-09 17:11 ` Paul Walmsley
2012-11-09 18:00 ` Tony Lindgren
2012-11-09 18:20 ` Mark A. Greer
2012-11-07 2:57 ` [PATCH v3 2/7] ARM: OMAP2xxx: hwmod: Add DMA support for SHAM module Mark A. Greer
2012-11-07 2:57 ` [PATCH v3 3/7] ARM: OMAP3xxx: hwmod: Convert SHAM crypto device data to hwmod Mark A. Greer
2012-11-09 16:11 ` Kasatkin, Dmitry
2012-11-07 2:57 ` [PATCH v3 4/7] ARM: OMAP2+: Remove unnecessary message when no SHA IP is present Mark A. Greer
2012-11-07 2:57 ` [PATCH v3 5/7] crypto: omap-sham: Convert to use pm_runtime API Mark A. Greer
2012-11-14 1:12 ` Kevin Hilman
2012-11-07 2:57 ` [PATCH v3 6/7] crypto: omap-sham: Add code to use dmaengine API Mark A. Greer
2012-11-07 2:57 ` [PATCH v3 7/7] crypto: omap_sham: Remove usage of private DMA API Mark A. Greer
2012-11-09 16:28 ` Kasatkin, Dmitry
2012-11-09 17:17 ` Mark A. Greer
2012-11-14 7:47 ` Kasatkin, Dmitry
2012-11-14 16:47 ` Mark A. Greer
2012-11-16 22:40 ` Mark A. Greer
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=20121109170703.GA13898@animalcreek.com \
--to=mgreer@animalcreek.com \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).