]> git.baikalelectronics.ru Git - uboot.git/commitdiff
ata: ahci-pci: Use scsi_ops to initialize ops
authorMasami Hiramatsu <masami.hiramatsu@linaro.org>
Fri, 4 Jun 2021 09:43:23 +0000 (18:43 +0900)
committerTom Rini <trini@konsulko.com>
Tue, 6 Jul 2021 18:07:36 +0000 (14:07 -0400)
Without this fix, scsi-scan will cause a synchronous abort
when accessing ops->scan.

Signed-off-by: Masami Hiramatsu <masami.hiramatsu@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/ata/ahci-pci.c

index 11ec98b56f9bd479d6872be25d77dac194c9c0bc..b1d231e0f9e17745bb55b2dfe92c969259cfca93 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <ahci.h>
+#include <scsi.h>
 #include <dm.h>
 #include <pci.h>
 
@@ -28,6 +29,7 @@ static const struct udevice_id ahci_pci_ids[] = {
 U_BOOT_DRIVER(ahci_pci) = {
        .name   = "ahci_pci",
        .id     = UCLASS_AHCI,
+       .ops    = &scsi_ops,
        .of_match = ahci_pci_ids,
        .bind   = ahci_pci_bind,
        .probe = ahci_pci_probe,