From: Shawn Guo <shawnguo@kernel.org>
To: Shenwei Wang <Shenwei.Wang@freescale.com>
Cc: "jason@lakedaemon.net" <jason@lakedaemon.net>,
Huang Anson <Anson.Huang@freescale.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"tglx@linutronix.de" <tglx@linutronix.de>,
"shawn.guo@linaro.org" <shawn.guo@linaro.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v6 2/2] ARM: imx: Add suspend codes for imx7D
Date: Tue, 28 Jul 2015 09:02:35 +0800 [thread overview]
Message-ID: <20150728010235.GU12927@tiger> (raw)
In-Reply-To: <CY1PR0301MB084353EB59E199271D536F68838E0@CY1PR0301MB0843.namprd03.prod.outlook.com>
On Mon, Jul 27, 2015 at 06:24:26PM +0000, Shenwei Wang wrote:
> > > @@ -87,6 +87,8 @@ obj-$(CONFIG_SOC_IMX7D) += mach-imx7d.o
> > >
> > > ifeq ($(CONFIG_SUSPEND),y)
> > > AFLAGS_suspend-imx6.o :=-Wa,-march=armv7-a
> > > +AFLAGS_suspend-imx7.o :=-Wa,-march=armv7-a
> > > +obj-$(CONFIG_IMX_GPCV2) += suspend-imx7.o pm-imx7.o
> >
> > Shouldn't it be controlled by CONFIG_SOC_IMX7D instead?
>
> CONFIG_IMX_GPCV2 is more suitable here. As long as a SOC has the same GPCv2 block, the codes should be reused.
Let's see what problem it will have. Saying GPCv2 block is used on
imx8, we will have something like below.
obj-$(CONFIG_IMX_GPCV2) += suspend-imx7.o pm-imx7.o suspend-imx8.o pm-imx8.o
If people want to build a kernel with imx8 support only, suspend-imx7.o
and pm-imx7.o will also be built in there, which is undesirable.
The files are named with "-imx7". It's a clear sign that the build of
the files should be controlled by something like related to "imx7".
Ideally, it should be CONFIG_SOC_IMX7. Since imx7d is the only
supported imx7 soc and there is no CONFIG_SOC_IMX7 available so far,
it falls on CONFIG_SOC_IMX7D.
> > > +extern struct imx_gpcv2_irq *gpcv2_irq_instance;
> >
> > Will this give a checkpatch warning?
>
> Yes. Any suggestion for that? Move it to a header file?
Get rid of it.
Shawn
next prev parent reply other threads:[~2015-07-28 1:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-22 17:07 [PATCH v6 0/2] IMX GPCv2 drivers for wakeup source and suspend Shenwei Wang
2015-07-22 17:07 ` [PATCH v6 1/2] irqchip: imx-gpcv2: IMX GPCv2 driver for wakeup sources Shenwei Wang
2015-07-26 11:48 ` Thomas Gleixner
2015-07-27 13:58 ` Shenwei Wang
2015-07-27 13:40 ` Shawn Guo
2015-07-27 14:13 ` Shenwei Wang
2015-07-27 14:35 ` Shawn Guo
2015-07-27 14:50 ` Shenwei Wang
2015-07-28 0:47 ` Shawn Guo
2015-07-28 14:24 ` Shenwei Wang
2015-07-22 17:07 ` [PATCH v6 2/2] ARM: imx: Add suspend codes for imx7D Shenwei Wang
2015-07-27 13:28 ` Shawn Guo
2015-07-27 18:24 ` Shenwei Wang
2015-07-28 1:02 ` Shawn Guo [this message]
2015-07-28 14:16 ` Shenwei Wang
2015-07-28 14:30 ` Shawn Guo
2015-07-28 15:14 ` Shenwei Wang
2015-07-28 16:39 ` Zhi Li
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=20150728010235.GU12927@tiger \
--to=shawnguo@kernel.org \
--cc=Anson.Huang@freescale.com \
--cc=Shenwei.Wang@freescale.com \
--cc=jason@lakedaemon.net \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shawn.guo@linaro.org \
--cc=tglx@linutronix.de \
/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