From: Jean-Jacques Hiblot Date: Mon, 4 Nov 2019 19:07:21 +0100 Subject: [U-Boot] [PATCH v1 2/4] dm: board: complete the initialization of the muxes in initr_dm() In-Reply-To: References: <20191002124749.7503-1-jjhiblot@ti.com> <20191002124749.7503-3-jjhiblot@ti.com> Message-ID: <76cd314d-005b-101d-22a9-6cf47689382d@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 30/10/2019 02:48, Simon Glass wrote: > Hi Jean-Jacques, > > On Wed, 2 Oct 2019 at 06:47, Jean-Jacques Hiblot wrote: >> This will probe the multiplexer devices that have a "u-boot,mux-autoprobe" >> property. As a consequence they will be put in their idle state. >> >> Signed-off-by: Jean-Jacques Hiblot >> --- >> >> common/board_r.c | 2 ++ >> 1 file changed, 2 insertions(+) > I worry this should happen later, or lazily, since at present we don't > actually probe any devices at this point, right? It has to be done early to make sure that the platform is in the right state before most of the drivers are initialized. Some devices may rely on it without knowing it. In this way, it is similar to the gpio-hog mechanism. Now, I have no strong opinion on when this should really take place. Only it has to be after dm is initialized. Maybe it could be inserted in init_sequence_r, after board_init() ? It should probably be before the serial port is used, just in case someone multiplexed the serial port of the console. JJ > > Regards, > Simon >