[U-Boot] [PATCH 1/1] dm: scsi: report correct device number

Simon Glass sjg at chromium.org
Tue Feb 19 15:16:58 UTC 2019


On Tue, 5 Feb 2019 at 10:06, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> Before the patch scsi would report the same device number for all SCSI
> devices, e.g.
>
>   Device 0: (1:0) Vendor: ATA Prod.: Crucial_CT128M55 Rev: MU01
>             Type: Hard Disk
>             Capacity: 122104.3 MB = 119.2 GB (250069680 x 512)
>   Device 0: (1:0) Vendor: ATA Prod.:  Rev:
>             Type: Hard Disk
>             Capacity: not available
>
> With the patch the same device number is reported as is used in
> scsi_read():
>
>   Device 0: (1:0) Vendor: ATA Prod.: Crucial_CT128M55 Rev: MU01
>             Type: Hard Disk
>             Capacity: 122104.3 MB = 119.2 GB (250069680 x 512)
>   Device 1: (1:0) Vendor: ATA Prod.:  Rev:
>             Type: Hard Disk
>             Capacity: not available
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  drivers/scsi/scsi.c | 13 +++++++------
>  1 file changed, 7 insertions(+), 6 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list