From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] ARM: imx: mm-imx3: Free l2x0_base
Date: Tue, 9 Jul 2013 20:20:46 +0200 [thread overview]
Message-ID: <20130709182046.GD516@pengutronix.de> (raw)
In-Reply-To: <CAOMZO5D4ivbqYovVA2CpXEemrAq8Nyn5By8-iL3SAnw=mpJ+og@mail.gmail.com>
On Tue, Jul 09, 2013 at 03:16:00PM -0300, Fabio Estevam wrote:
> On Tue, Jul 9, 2013 at 3:24 AM, Shawn Guo <shawn.guo@linaro.org> wrote:
> > On Mon, Jul 08, 2013 at 02:58:38PM -0300, Fabio Estevam wrote:
> >> From: Fabio Estevam <fabio.estevam@freescale.com>
> >>
> >> After l2x0_base has been used, we should free it.
> >>
> >> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> >> ---
> >> arch/arm/mach-imx/mm-imx3.c | 1 +
> >> 1 file changed, 1 insertion(+)
> >>
> >> diff --git a/arch/arm/mach-imx/mm-imx3.c b/arch/arm/mach-imx/mm-imx3.c
> >> index 0884ca9..3143f5e 100644
> >> --- a/arch/arm/mach-imx/mm-imx3.c
> >> +++ b/arch/arm/mach-imx/mm-imx3.c
> >> @@ -113,6 +113,7 @@ static void __init imx3_init_l2x0(void)
> >> }
> >>
> >> l2x0_init(l2x0_base, 0x00030024, 0x00000000);
> >> + iounmap(l2x0_base);
> >
> > Are you sure? I think cache-l2x0 driver still needs the mapping after
> > that.
>
> l2x0_base is a local variable of the static imx3_init_l2x0() function,
> so we should iounmap it.
l2x0_base is passed to l2x0_init which uses it for the outer cache
maintenance operations. I wonder this doesn't crash your kernel.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2013-07-09 18:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-08 17:58 [PATCH 1/3] ARM: imx: Select CACHE_L2X0 Fabio Estevam
2013-07-08 17:58 ` [PATCH 2/3] ARM: mx3: Select ARM_ERRATA_411920 Fabio Estevam
2013-07-08 18:06 ` Alexander Shiyan
2013-07-08 17:58 ` [PATCH 3/3] ARM: imx: mm-imx3: Free l2x0_base Fabio Estevam
2013-07-09 6:24 ` Shawn Guo
2013-07-09 18:16 ` Fabio Estevam
2013-07-09 18:20 ` Sascha Hauer [this message]
2013-07-10 16:53 ` Fabio Estevam
2013-07-10 17:29 ` Fabio Estevam
2013-07-09 6:26 ` [PATCH 1/3] ARM: imx: Select CACHE_L2X0 Shawn Guo
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=20130709182046.GD516@pengutronix.de \
--to=s.hauer@pengutronix.de \
--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).