[U-Boot] [PATCH 2/3] dm: ahci: Avoid scsi_scan_dev() in ahci_probe_scsi()

sjg at google.com sjg at google.com
Fri Jul 28 18:44:14 UTC 2017


On 17 June 2017 at 07:35, Bin Meng <bmeng.cn at gmail.com> wrote:
> 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 at gmail.com>
> ---
>
> drivers/ata/ahci.c | 5 -----
> 1 file changed, 5 deletions(-)

I just sent a similar patch but anyway I agree this is a good idea.

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

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list