u-boot-brain/drivers/ata
Simon Glass 7cf1afce7f dm: ahci: Unwind the confusing init code
Two AHCI drivers use SCSI with CONFIG_DM_SCSI. The SCSI uclass calls
scsi_low_level_init() which is implemented by ahci.c. If
CONFIG_SCSI_AHCI_PLAT is defined it does one thing and if it is not
it does something else.

We don't need to call through scsi_low_level_init() to get the init
completed. Instead, adjust the two drivers to call into AHCI directly.
Drop the post-probe init in the SCSI uclass. This means that driver model
doesn't need to use scsi_low_level_init(). It is a legacy function and
driver model should use a driver's probe() method instead.

While we are here, add a comment to the top of the file explaining what
ahci.c does.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2017-07-11 10:08:19 -06:00
..
ahci-uclass.c sata: Move drivers into new drivers/ata directory 2017-07-11 10:08:19 -06:00
ahci.c dm: ahci: Unwind the confusing init code 2017-07-11 10:08:19 -06:00
dwc_ahci.c dm: ahci: Unwind the confusing init code 2017-07-11 10:08:19 -06:00
dwc_ahsata.c dm: ahci: Rename struct ahci_probe_ent 2017-07-11 10:08:19 -06:00
dwc_ahsata.h sata: Move drivers into new drivers/ata directory 2017-07-11 10:08:19 -06:00
fsl_sata.c sata: Move drivers into new drivers/ata directory 2017-07-11 10:08:19 -06:00
fsl_sata.h sata: Move drivers into new drivers/ata directory 2017-07-11 10:08:19 -06:00
Kconfig sata: Move drivers into new drivers/ata directory 2017-07-11 10:08:19 -06:00
libata.c sata: Move drivers into new drivers/ata directory 2017-07-11 10:08:19 -06:00
Makefile sata: Move drivers into new drivers/ata directory 2017-07-11 10:08:19 -06:00
mvsata_ide.c sata: Move drivers into new drivers/ata directory 2017-07-11 10:08:19 -06:00
mxc_ata.c sata: Move drivers into new drivers/ata directory 2017-07-11 10:08:19 -06:00
sata_ceva.c dm: ahci: Unwind the confusing init code 2017-07-11 10:08:19 -06:00
sata_dwc.c sata: Move drivers into new drivers/ata directory 2017-07-11 10:08:19 -06:00
sata_dwc.h sata: Move drivers into new drivers/ata directory 2017-07-11 10:08:19 -06:00
sata_mv.c sata: Move drivers into new drivers/ata directory 2017-07-11 10:08:19 -06:00
sata_sandbox.c sata: Move drivers into new drivers/ata directory 2017-07-11 10:08:19 -06:00
sata_sil3114.c sata: Move drivers into new drivers/ata directory 2017-07-11 10:08:19 -06:00
sata_sil3114.h sata: Move drivers into new drivers/ata directory 2017-07-11 10:08:19 -06:00
sata_sil.c sata: Move drivers into new drivers/ata directory 2017-07-11 10:08:19 -06:00
sata_sil.h sata: Move drivers into new drivers/ata directory 2017-07-11 10:08:19 -06:00
sata.c sata: Move drivers into new drivers/ata directory 2017-07-11 10:08:19 -06:00