From: Yao Yuan <yao.yuan@freescale.com>
To: Arnd Bergmann <arnd@arndb.de>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Cc: "vinod.koul@intel.com" <vinod.koul@intel.com>,
"stefan@agner.ch" <stefan@agner.ch>,
"dmaengine@vger.kernel.org" <dmaengine@vger.kernel.org>,
"dan.j.williams@intel.com" <dan.j.williams@intel.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH] dmaengine: fsl-edma: add PM suspend/resume support
Date: Wed, 15 Jul 2015 10:29:55 +0000 [thread overview]
Message-ID: <BL2PR03MB338DF493E475876FF6C6038839A0@BL2PR03MB338.namprd03.prod.outlook.com> (raw)
In-Reply-To: <3074236.7KNCYXgBBY@wuerfel>
Hi Arnd,
Thanks for your review.
And can you give me more information?
In my opinion, The fsl_edma_pm_state will just be used when CONFIG_PM support. So why not use the #ifdefs to remove the
unnecessary code? Since the PM will not be selected in many use cases.
Thanks.
Best Regards,
Yuan Yao
> -----Original Message-----
> From: Arnd Bergmann [mailto:arnd@arndb.de]
> Sent: Wednesday, July 15, 2015 5:57 PM
> To: linux-arm-kernel@lists.infradead.org
> Cc: Yuan Yao-B46683; vinod.koul@intel.com; stefan@agner.ch;
> dmaengine@vger.kernel.org; dan.j.williams@intel.com; linux-
> kernel@vger.kernel.org
> Subject: Re: [PATCH] dmaengine: fsl-edma: add PM suspend/resume support
>
> On Wednesday 15 July 2015 17:32:58 Yuan Yao wrote:
> > +#ifdef CONFIG_PM
> > +enum fsl_edma_pm_state {
> > + RUNNING = 0,
> > + SUSPENDED,
> > +};
> > +#endif
> >
> > struct fsl_edma_hw_tcd {
> >
>
> The #ifdefs here seem unnecessary, at least most of them, better just do this
> all unconditionally.
>
> Arnd
WARNING: multiple messages have this Message-ID (diff)
From: yao.yuan@freescale.com (Yao Yuan)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] dmaengine: fsl-edma: add PM suspend/resume support
Date: Wed, 15 Jul 2015 10:29:55 +0000 [thread overview]
Message-ID: <BL2PR03MB338DF493E475876FF6C6038839A0@BL2PR03MB338.namprd03.prod.outlook.com> (raw)
In-Reply-To: <3074236.7KNCYXgBBY@wuerfel>
Hi Arnd,
Thanks for your review.
And can you give me more information?
In my opinion, The fsl_edma_pm_state will just be used when CONFIG_PM support. So why not use the #ifdefs to remove the
unnecessary code? Since the PM will not be selected in many use cases.
Thanks.
Best Regards,
Yuan Yao
> -----Original Message-----
> From: Arnd Bergmann [mailto:arnd at arndb.de]
> Sent: Wednesday, July 15, 2015 5:57 PM
> To: linux-arm-kernel at lists.infradead.org
> Cc: Yuan Yao-B46683; vinod.koul at intel.com; stefan at agner.ch;
> dmaengine at vger.kernel.org; dan.j.williams at intel.com; linux-
> kernel at vger.kernel.org
> Subject: Re: [PATCH] dmaengine: fsl-edma: add PM suspend/resume support
>
> On Wednesday 15 July 2015 17:32:58 Yuan Yao wrote:
> > +#ifdef CONFIG_PM
> > +enum fsl_edma_pm_state {
> > + RUNNING = 0,
> > + SUSPENDED,
> > +};
> > +#endif
> >
> > struct fsl_edma_hw_tcd {
> >
>
> The #ifdefs here seem unnecessary, at least most of them, better just do this
> all unconditionally.
>
> Arnd
next prev parent reply other threads:[~2015-07-15 10:29 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-15 9:32 Yuan Yao
2015-07-15 9:32 ` No subject Yuan Yao
2015-07-15 9:32 ` [PATCH] dmaengine: fsl-edma: add PM suspend/resume support Yuan Yao
2015-07-15 9:32 ` Yuan Yao
2015-07-15 9:56 ` Arnd Bergmann
2015-07-15 9:56 ` Arnd Bergmann
2015-07-15 10:29 ` Yao Yuan [this message]
2015-07-15 10:29 ` Yao Yuan
2015-07-15 14:54 ` Arnd Bergmann
2015-07-15 14:54 ` Arnd Bergmann
2015-07-16 8:01 ` Yao Yuan
2015-07-16 8:01 ` Yao Yuan
2015-07-16 13:24 ` Vinod Koul
2015-07-16 13:24 ` Vinod Koul
2015-07-17 5:41 ` Yao Yuan
2015-07-17 5:41 ` Yao Yuan
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=BL2PR03MB338DF493E475876FF6C6038839A0@BL2PR03MB338.namprd03.prod.outlook.com \
--to=yao.yuan@freescale.com \
--cc=arnd@arndb.de \
--cc=dan.j.williams@intel.com \
--cc=dmaengine@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stefan@agner.ch \
--cc=vinod.koul@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.