From: Bin Meng Date: Sat, 17 Jun 2017 06:35:59 -0700 Subject: [U-Boot] [PATCH 2/3] dm: ahci: Avoid scsi_scan_dev() in ahci_probe_scsi() In-Reply-To: <1497706560-23385-1-git-send-email-bmeng.cn@gmail.com> References: <1497706560-23385-1-git-send-email-bmeng.cn@gmail.com> Message-ID: <1497706560-23385-2-git-send-email-bmeng.cn@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- drivers/ata/ahci.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 6da412d..606347f 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -1183,11 +1183,6 @@ int ahci_probe_scsi(struct udevice *ahci_dev) ret = ahci_start_ports(uc_priv); if (ret) return ret; - - debug("Scanning %s\n", dev->name); - ret = scsi_scan_dev(dev, true); - if (ret) - return ret; #endif return 0; -- 2.9.2