Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1184679

RE: [PATCH] dmaengine: fsl-edma: add PM suspend/resume support

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Yao Yuan <yao.yuan@freescale.com>
Newsgroups linux.kernel
Subject RE: [PATCH] dmaengine: fsl-edma: add PM suspend/resume support
Date Wed, 15 Jul 2015 12:40:01 +0200
Message-ID <pMsgx-4Rv-3@gated-at.bofh.it> (permalink)
References <pMrkt-3up-9@gated-at.bofh.it> <pMrkx-3up-79@gated-at.bofh.it> <pMrDS-3RV-41@gated-at.bofh.it>
X-Original-To Arnd Bergmann <arnd@arndb.de>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>
Thread-Topic [PATCH] dmaengine: fsl-edma: add PM suspend/resume support
Thread-Index AQHQvuIIHiVEsscjaU+Rwk9xSEcOnp3cRLQAgAAGnwCAAAKCMA==
Accept-Language en-US, zh-CN
Content-Language en-US
Authentication-Results arndb.de; dkim=none (message not signed) header.d=none;
X-Originating-IP [199.59.226.141]
X-Microsoft-Exchange-Diagnostics 1;BL2PR03MB337;5:CJ118+gOE6NT361K9DnO2XWIWRuSm8twEPMngcr7Q4LHvwt+xDzfNe5oHYeTIcgLk73CtwKBPLVWBlrK1fJbwhN7rI1X1Lm+eeDOHkHtpIVTa5bBOPR0Quub+K5NJcoX/HfOpQdknOJzR19UJo4zJA==;24:vsUlxpkgzH7SE6CVFn+yEsl/wjtok5vBvVfCgwVxA1ZWT12h3/2d7oB38NhO/dRh7Y3fl6ThZT3rpMGPWORkU+8aO7PixxHVDPoNfABwADs=;20:XPPcoJMh55eApgglskryIwCS2hmg/uxIeelfq4lV/4HZWTynssskuG20yqeYh7+4n6QfL3DMtxEzu59Fu7HfCg==
X-Microsoft-Antispam UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB337;
Bl2pr03mb337 X-MS-Exchange-Organization-RulesExecuted
X-Microsoft-Antispam-Prvs <BL2PR03MB337B86ED2FD8F9156ABDCB1839A0@BL2PR03MB337.namprd03.prod.outlook.com>
X-Exchange-Antispam-Report-Test UriScan:;
X-Exchange-Antispam-Report-Cfa-Test BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BL2PR03MB337;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB337;
X-Forefront-Prvs 0638FD5066
X-Forefront-Antispam-Report SFV:NSPM;SFS:(10019020)(6009001)(51704005)(377454003)(24454002)(13464003)(106116001)(5001770100001)(86362001)(40100003)(74316001)(2950100001)(122556002)(2900100001)(77096005)(62966003)(77156002)(33656002)(66066001)(102836002)(54356999)(87936001)(189998001)(2656002)(5002640100001)(46102003)(76176999)(50986999)(76576001)(5003600100002)(92566002)(2501003)(5001960100002)(19580405001)(19580395003);DIR:OUT;SFP:1102;SCL:1;SRVR:BL2PR03MB337;H:BL2PR03MB338.namprd03.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en;
Content-Type text/plain; charset="us-ascii"
Content-Transfer-Encoding 8BIT
MIME-Version 1.0
X-Originatororg freescale.com
X-Ms-Exchange-Crosstenant-Originalarrivaltime 15 Jul 2015 10:29:55.1096 (UTC)
X-Ms-Exchange-Crosstenant-Fromentityheader Hosted
X-Ms-Exchange-Crosstenant-ID 710a03f5-10f6-4d38-9ff4-a80b81da590d
X-Ms-Exchange-Transport-Crosstenantheadersstamped BL2PR03MB337
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 41
Organization linux.* mail to news gateway
X-Original-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>
X-Original-Date Wed, 15 Jul 2015 10:29:55 +0000
X-Original-Message-ID <BL2PR03MB338DF493E475876FF6C6038839A0@BL2PR03MB338.namprd03.prod.outlook.com>
X-Original-References <1436952778-28000-1-git-send-email-yao.yuan@freescale.com> <1436952778-28000-2-git-send-email-yao.yuan@freescale.com> <3074236.7KNCYXgBBY@wuerfel>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1184679

Show key headers only | View raw


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

(none) Yuan Yao <yao.yuan@freescale.com> - 2015-07-15 11:40 +0200
  [PATCH] dmaengine: fsl-edma: add PM suspend/resume support Yuan Yao <yao.yuan@freescale.com> - 2015-07-15 11:40 +0200
    Re: [PATCH] dmaengine: fsl-edma: add PM suspend/resume support Arnd Bergmann <arnd@arndb.de> - 2015-07-15 12:00 +0200
      RE: [PATCH] dmaengine: fsl-edma: add PM suspend/resume support Yao Yuan <yao.yuan@freescale.com> - 2015-07-15 12:40 +0200
        Re: [PATCH] dmaengine: fsl-edma: add PM suspend/resume support Arnd Bergmann <arnd@arndb.de> - 2015-07-15 17:00 +0200
    RE: [PATCH] dmaengine: fsl-edma: add PM suspend/resume support Yao Yuan <yao.yuan@freescale.com> - 2015-07-17 08:00 +0200

csiph-web