From: Heinrich Schuchardt Date: Thu, 12 Jul 2018 20:58:54 +0200 Subject: [U-Boot] [PATCH 1/1] common: print \n in initr_scsi() In-Reply-To: References: <20180615050126.15244-1-xypron.glpk@gmx.de> Message-ID: <00c17fd6-9b98-d968-2edc-0ebc99c3b623@gmx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 06/20/2018 12:03 AM, Simon Glass wrote: > Hi Heinrich, > > On 14 June 2018 at 23:01, Heinrich Schuchardt wrote: >> Typically init_scsi() does not output anything. So initr_scsi() should >> provide a \n or we may see borked output like >> >> SCSI: Net: No ethernet found. >> >> as observed with sandbox_defconfig. >> >> Signed-off-by: Heinrich Schuchardt >> --- >> common/board_r.c | 1 + >> 1 file changed, 1 insertion(+) > > Instead of this, we should enable DM_SCSI on sandbox. > > Regards, > Simon > The function initr_scsi() is built for #if defined(CONFIG_SCSI) && !defined(CONFIG_DM_SCSI) Once all boards that support CONFIG_SCSI can be configured with CONFIG_DM_SCSI we should remove the symbol CONFIG_SCSI and function initr_scsi(). But we have not even enabled BLK for all supported boards. BLK is required for DM_SCSI. Till then problem I observed will be reproducible on other architectures than sandbox if no SCSI disk is attached. Best regards Heinrich