]> git.baikalelectronics.ru Git - uboot.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)
commit2809e7da1dc74df94b969183f2a2863a191ce6c5
tree8c2e341954b79d0af2ddb47f45f7e6f8db380fca
parent7f13478ca1141646214b0677c24f380c7ff3bb5b
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