From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Hunter Subject: Re: [PATCH 6/6] bus: Add support for Tegra Generic Memory Interface Date: Tue, 9 Aug 2016 14:37:05 +0100 Message-ID: References: <1470512452-8322-1-git-send-email-mirza.krak@gmail.com> <1470512452-8322-7-git-send-email-mirza.krak@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Mirza Krak Cc: Stephen Warren , Thierry Reding , Alexandre Courbot , pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org, Prashant Gaikwad , mark.rutland-5wv7dgnIgG8@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, pawel.moll-5wv7dgnIgG8@public.gmane.org, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org, Michael Turquette , sboyd-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org, linux-I+IVW8TIWO2tmTQ+vhA3Yw@public.gmane.org, robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, Kumar Gala , linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-clk-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: linux-tegra@vger.kernel.org On 09/08/16 08:21, Mirza Krak wrote: > 2016-08-08 15:47 GMT+02:00 Jon Hunter : ... >>> + return of_platform_default_populate(of_node, NULL, dev); >> >> Seems odd to do this here. Why not as the last thing in probe once the >> GMI has been setup correctly? > > It is done here mostly to avoid clean up in probe. I could move it out > of tegra_gmi_parse_dt and put it right after that call but still > before clk enable? Is that less odd? I would have thought that clocks should be enabled and resets de-asserted before we even attempt to populate any children. Hence, I would do this last. Yes that will require some clean-up in probe if this does fail but seems safest. Cheers Jon -- nvpublic