]> git.baikalelectronics.ru Git - uboot.git/commit
dm: ahci: Add a driver for SCSI on AHCI
authorSimon Glass <sjg@chromium.org>
Thu, 15 Jun 2017 03:28:46 +0000 (21:28 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 11 Jul 2017 16:08:19 +0000 (10:08 -0600)
commitf5fdfe8999819fc56c0b9640a6a33621d7ded103
tree271008f521aad643de4c1fa9909920698ba13a81
parentcd56c2f3fb7e8ef0df158525e2dfcdb2ff57b96e
dm: ahci: Add a driver for SCSI on AHCI

Some AHCI drivers use SCSI under the hood. Rather than making the AHCI
driver be in the SCSI uclass it makes sense to have the AHCI device create
a SCSI device as a child. That way we can handle any AHCI-specific
operations rather than trying to pretend tha the device is just SCSI.

To handle this we need to provide a way for AHCI drivers to bind a SCSI
device as its child, and probe it. Add functions for this.

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