]> git.sur5r.net Git - u-boot/commit
dm: ahci: Avoid scsi_scan_dev() in ahci_probe_scsi()
authorBin Meng <bmeng.cn@gmail.com>
Sat, 17 Jun 2017 13:35:59 +0000 (06:35 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 28 Jul 2017 18:02:47 +0000 (12:02 -0600)
commit9c1390d4b988b1c7170dca9d06539ea1a363dfe7
tree697ea396132239cee8967a8f85d449b52e769c93
parent26722335253a9fa384ceb423419254cb00d0def1
dm: ahci: Avoid scsi_scan_dev() in ahci_probe_scsi()

Running 'scsi scan' command causes scsi_scan_dev() to be called,
from which device_probe() is called and consequently AHCI driver
probe routine will be called as SCSI driver's parent, and finally
ahci_probe_scsi() calls scsi_scan_dev() again.

Remove the call to scsi_scan_dev() in ahci_probe_scsi().

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/ata/ahci.c