From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sascha Hauer Subject: Re: [PATCH V4 1/6] ARM: dts: imx6q: add common compatible name for reused modules Date: Tue, 14 Jan 2014 10:16:27 +0100 Message-ID: <20140114091626.GM16215@pengutronix.de> References: <1389614031-7253-1-git-send-email-b20788@freescale.com> <20140113121016.GJ16215@pengutronix.de> <20140113142249.GW23525@S2101-09.ap.freescale.net> <20140113151623.GL16215@pengutronix.de> <20140114022609.GA1896@S2101-09.ap.freescale.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20140114022609.GA1896-rvtDTF3kK1ictlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Shawn Guo Cc: Anson Huang , kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org On Tue, Jan 14, 2014 at 10:26:11AM +0800, Shawn Guo wrote: > > Since the assembly function imx6_suspend() needs to check the cpu_type, > we have to keep it in imx6_cpu_pm_info. So I assume you're suggesting > we remove the field from imx6_pm_socdata and determine the cpu_type by > comparing socdata pointer with particular imx6_pm_socdata like below? > > if (socdata == &imx6q_pm_data) > pm_info->cpu_type = MXC_CPU_IMX6Q; > else if (socdata == &imx6dl_pm_data) > pm_info->cpu_type = MXC_CPU_IMX6DL; > else if (socdata == &imx6sl_pm_data) > pm_info->cpu_type = MXC_CPU_IMX6SL; > > Looking at these if-clauses, I do not think we win too much from doing > thing in this way. Indeed not. I thought the cpu_type field would be unused now, but this is not the case. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html