[U-Boot] [PATCH 1/1] common: print \n in initr_scsi()

Heinrich Schuchardt xypron.glpk at gmx.de
Thu Jul 12 18:58:54 UTC 2018


On 06/20/2018 12:03 AM, Simon Glass wrote:
> Hi Heinrich,
> 
> On 14 June 2018 at 23:01, Heinrich Schuchardt <xypron.glpk at gmx.de> 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 <xypron.glpk at gmx.de>
>> ---
>>  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


More information about the U-Boot mailing list