From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philipp Zabel Subject: Re: [PATCH] reset: socfpga: use arch_initcall for early initialization Date: Thu, 09 Oct 2014 11:03:30 +0200 Message-ID: <1412845410.6809.3.camel@pengutronix.de> References: <1412822646-11257-1-git-send-email-dinguyen@opensource.altera.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1412822646-11257-1-git-send-email-dinguyen-yzvPICuk2ABMcg4IHK0kFoH6Mc4MB0Vx@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: dinguyen-yzvPICuk2ABMcg4IHK0kFoH6Mc4MB0Vx@public.gmane.org Cc: dinh.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org, grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, atull-yzvPICuk2ABMcg4IHK0kFoH6Mc4MB0Vx@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org Am Mittwoch, den 08.10.2014, 21:44 -0500 schrieb dinguyen-yzvPICuk2ABMcg4IHK0kFoH6Mc4MB0Vx@public.gmane.org: > From: Dinh Nguyen > > There are certain drivers that are required to get loaded very early using > arch_initcall. An example of such a driver is the SOCFPGA's FPGA bridge driver. > This driver has to get loaded early because it needs to enable FPGA components > that are connected to the bridge. > > This FPGA bridge driver will using the reset controller API to toggle it's > reset bits, thus, it needs the reset driver to be loaded as early as possible > in order for it to get used properly. Without knowing the details, this sounds like the wrong approach. Can't the bridge driver return -EPROBE_DEFER until the reset controller is available? regards Philipp -- 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