Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755578AbbG1Oqk (ORCPT ); Tue, 28 Jul 2015 10:46:40 -0400 Received: from mail-by2on0106.outbound.protection.outlook.com ([207.46.100.106]:39330 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752290AbbG1Oqi (ORCPT ); Tue, 28 Jul 2015 10:46:38 -0400 From: Shenwei Wang To: Shawn Guo CC: "shawn.guo@linaro.org" , "tglx@linutronix.de" , "jason@lakedaemon.net" , "Huang Anson" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: RE: [PATCH v7 1/2] irqchip: imx-gpcv2: IMX GPCv2 driver for wakeup sources Thread-Topic: [PATCH v7 1/2] irqchip: imx-gpcv2: IMX GPCv2 driver for wakeup sources Thread-Index: AQHQyKLC5s2hbGQZ5kWxQLe9k167RZ3wFyEAgADZ4UCAAAP5AIAAAFKw Date: Tue, 28 Jul 2015 14:46:35 +0000 Message-ID: References: <1438025400-5919-1-git-send-email-shenwei.wang@freescale.com> <1438025400-5919-2-git-send-email-shenwei.wang@freescale.com> <20150728012452.GX12927@tiger> <20150728143854.GH12927@tiger> In-Reply-To: <20150728143854.GH12927@tiger> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: kernel.org; dkim=none (message not signed) header.d=none; x-originating-ip: [192.88.168.50] x-microsoft-exchange-diagnostics: 1;BY1PR03MB1372;5:pXw1qQ7ONykFg+zRF/MS4wCbWpVAaW+jXMf/yL4tlBnMYgBwXfEhZfHqNAupJjUr7gsIM8PV1MbaD2qix5KInIq5jE9G1FloTmtELpMhZNp7xT0iPSXi0aQONmKHXdrzhKSBuDPhX+qA9Ybde0tFVQ==;24:CDwCIBqBbJp7aP7G5rS/mtpX7wnPleDME94WDIHab96PZVIwrE5LfyH4r70t76MY8nIa6FqjDV8gdVpwMVuFIMRTxK5sSy8yWht8ck3I5es=;20:Oo3eQwkrMTybpmnQmOteeMAoNOV2wfjjUhkSyNJFYsYblOOsXm3GuK09UrveWTQwgbLoW1bveQ4HVKAbsRsW8w== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1372; by1pr03mb1372: X-MS-Exchange-Organization-RulesExecuted x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BY1PR03MB1372;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1372; x-forefront-prvs: 06515DA04B x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(24454002)(164054003)(13464003)(110136002)(99286002)(40100003)(102836002)(33656002)(86362001)(106116001)(50986999)(2656002)(77156002)(19580405001)(93886004)(76576001)(74316001)(19580395003)(87936001)(122556002)(62966003)(5003600100002)(2900100001)(76176999)(54356999)(5002640100001)(46102003)(66066001)(92566002)(2950100001)(77096005)(5001960100002)(189998001)(5001920100001);DIR:OUT;SFP:1102;SCL:1;SRVR:BY1PR03MB1372;H:CY1PR0301MB0843.namprd03.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; Content-Type: text/plain; charset="gb2312" MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jul 2015 14:46:35.7105 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1372 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id t6SEkkbZ019026 Content-Length: 1702 Lines: 44 > -----Original Message----- > From: Shawn Guo [mailto:shawnguo@kernel.org] > Sent: 2015??7??28?? 9:39 > To: Wang Shenwei-B38339 > Cc: shawn.guo@linaro.org; tglx@linutronix.de; jason@lakedaemon.net; Huang > Yongcai-B20788; linux-kernel@vger.kernel.org; > linux-arm-kernel@lists.infradead.org > Subject: Re: [PATCH v7 1/2] irqchip: imx-gpcv2: IMX GPCv2 driver for wakeup > sources > > On Tue, Jul 28, 2015 at 02:27:42PM +0000, Shenwei Wang wrote: > > > > +static int gpcv2_wakeup_source_save(void) { > > > > + struct imx_gpcv2_irq *cd; > > > > > > We generally name variables in an abbrev of the types to make them > > > intuitive. I tried hard to map "cd" to "imx_gpcv2_irq" and failed. > > > Can you help me on that? > > > > CD is the abbreviation of chip data which is a member of irq_data. > > You are defining a variable of type imx_gpcv2_irq, neither chip_data nor irq_data. Imx_gpcv2_irq itself is the chip_data of irq_data. > > > > +void ca7_cpu_resume(void); > > > > +void imx7_suspend(void __iomem *ocram_vbase); > > > > > > Why do these declarations need to be in this header? > > > > Just to resolve the compile errors. > > Wrong solution. They belong to some header in arch/arm/mach-imx not > include/soc/imx, as there is no code outside arch/arm/mach-imx needs these > declaration. It is a little ugly. I was thinking to have a gpcv2.h header file, so put them there. But as the header file is going to be removed, I am considering to move it to common.h. Although it seems not beautiful too. Thanks, Shenwei > Shawn ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?