
15 Jun
2017
15 Jun
'17
9:20 p.m.
On Thu, Jun 15, 2017 at 11:28 AM, Simon Glass sjg@chromium.org wrote:
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
Changes in v2:
- Make it clear that non-PCI AHCI is not yet supported
drivers/ata/ahci.c | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ include/ahci.h | 22 +++++++++++++++++++++ 2 files changed, 79 insertions(+)
Reviewed-by: Bin Meng bmeng.cn@gmail.com
Applied to u-boot-dm, thanks!