]> git.ipfire.org Git - people/ms/u-boot.git/commit
scsi: dm: split scsi_scan()
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Mon, 24 Apr 2017 09:51:26 +0000 (11:51 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 9 May 2017 18:14:16 +0000 (12:14 -0600)
commitd52063b84f422caa2aad15fc981299ffd843e910
tree8c2e341954b79d0af2ddb47f45f7e6f8db380fca
parenteaa59b3404cdcfc190810d5083c164ac18eb8ab7
scsi: dm: split scsi_scan()

The DM version of scsi_scan() is becoming a bit long, it can be split:
scsi_scan() iterates over the IDs and LUNs and for each id/lun pair calls
do_scsi_scan_one() to do the work of:
 - detecting an attached drive
 - creating the associated block device if a drive is found.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/scsi.c