From: Russell King - ARM Linux <linux@armlinux.org.uk>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linux-arm-kernel@lists.infradead.org,
Andrey Smirnov <andrew.smirnov@gmail.com>,
Shawn Guo <shawnguo@kernel.org>,
linux-kernel@vger.kernel.org,
Sascha Hauer <kernel@pengutronix.de>
Subject: Re: [PATCH 3/3] i.MX: system.c: Replace magic numbers
Date: Mon, 13 Jun 2016 10:41:07 +0100 [thread overview]
Message-ID: <20160613094106.GU1041@n2100.armlinux.org.uk> (raw)
In-Reply-To: <7839599.pSVM3KJL9Z@wuerfel>
On Mon, Jun 13, 2016 at 11:24:02AM +0200, Arnd Bergmann wrote:
> On Sunday, June 12, 2016 10:55:29 PM CEST Andrey Smirnov wrote:
> > @@ -61,6 +61,13 @@
> > #define L2X0_LINE_TAG 0xF30
> > #define L2X0_DEBUG_CTRL 0xF40
> > #define L310_PREFETCH_CTRL 0xF60
> > +#define L310_DOUBLE_LINEFILL_EN BIT(30)
> > +#define L310_INSTRUCTION_PREFETCH_EN BIT(29)
> > +#define L310_DATA_PREFETCH_EN BIT(28)
> > +#define L310_DOUBLE_LINEFILL_ON_WRAP_READ_DIS BIT(27)
> > +#define L310_PREFETCH_DROP_EN BIT(24)
> > +#define L310_INCR_DOUBLE_LINEFILL_EN BIT(23)
> > +#define L310_ESCLUSIVE_SEQUENCE_EN BIT(21)
> > #define L310_POWER_CTRL 0xF80
> > #define L310_DYNAMIC_CLK_GATING_EN (1 << 1)
> > #define L310_STNDBY_MODE_EN (1 << 0)
> > diff --git a/arch/arm/mach-imx/system.c b/arch/arm/mach-imx/system.c
> >
>
>
> Most of these macros seem to all exist further down in the file already
> under slightly differnet names, e.g.
>
> #define L310_PREFETCH_CTRL_DBL_LINEFILL_INCR BIT(23)
Indeed they do. Andrey, please use the existing definitions.
--
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
next prev parent reply other threads:[~2016-06-13 9:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-13 5:55 [PATCH 1/3] i.MX: system.c: Convert goto to if statement Andrey Smirnov
2016-06-13 5:55 ` [RESEND PATCH 2/3] i.MX: system.c: Remove redundant errata 752271 code Andrey Smirnov
2016-06-13 5:55 ` [PATCH 3/3] i.MX: system.c: Replace magic numbers Andrey Smirnov
2016-06-13 9:24 ` Arnd Bergmann
2016-06-13 9:41 ` Russell King - ARM Linux [this message]
2016-06-13 9:28 ` Russell King - ARM Linux
2016-06-13 9:24 ` [PATCH 1/3] i.MX: system.c: Convert goto to if statement Arnd Bergmann
-- strict thread matches above, loose matches on Subject: below --
2016-06-07 15:29 Andrey Smirnov
2016-06-07 15:29 ` [PATCH 3/3] i.MX: system.c: Replace magic numbers Andrey Smirnov
2016-06-11 13:39 ` 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=20160613094106.GU1041@n2100.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=andrew.smirnov@gmail.com \
--cc=arnd@arndb.de \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shawnguo@kernel.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®