[U-Boot] [PATCH] scsi: dm: Unbind all scsi based block devices before new scan

Simon Glass sjg at chromium.org
Mon Jan 9 19:13:53 CET 2017


On 2 January 2017 at 01:40, Michal Simek <michal.simek at xilinx.com> wrote:
>
> New scan should unbind all block devices not to be listed again.
> Without this patch if scsi reset or scan is called new block devices are
> created which point to the same id and lun.
>
> For example:
> ZynqMP> scsi scan
> scsi_scan: if_type=2, devnum=0: sdhci at ff170000.blk, 6, 0
> scsi_scan: if_type=2, devnum=0: ahci at fd0c0000.id1lun0, 2, 0
> scsi_scan: if_type=2, devnum=0: ahci at fd0c0000.id1lun0, 2, 1
> scsi_scan: if_type=2, devnum=0: ahci at fd0c0000.id1lun0, 2, 2
> scsi_scan: if_type=2, devnum=0: ahci at fd0c0000.id1lun0, 2, 3
> scsi_scan: if_type=2, devnum=0: ahci at fd0c0000.id1lun0, 2, 4
> scanning bus for devices...
>   Device 0: (1:0) Vendor: ATA Prod.: KINGSTON SVP200S Rev: 501A
>             Type: Hard Disk
>             Capacity: 57241.8 MB = 55.9 GB (117231408 x 512)
>
> Reported-by: Ken Ma <make at marvell.com>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
>  common/scsi.c | 2 ++
>  1 file changed, 2 insertions(+)

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


More information about the U-Boot mailing list