aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMasami Hiramatsu <masami.hiramatsu@linaro.org>2021-06-04 18:43:23 +0900
committerTom Rini <trini@konsulko.com>2021-07-06 14:07:36 -0400
commitada6894febd02c7154bafbb3a08fb775b071e40c (patch)
tree2a96d90f44215715308f48de46295e861b4afd3b /drivers
parent9fe79ca0ac3469a00a7d7fba94155758e2ac2cdf (diff)
downloadu-boot-ada6894febd02c7154bafbb3a08fb775b071e40c.zip
u-boot-ada6894febd02c7154bafbb3a08fb775b071e40c.tar.gz
u-boot-ada6894febd02c7154bafbb3a08fb775b071e40c.tar.bz2
ata: ahci-pci: Use scsi_ops to initialize ops
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ata/ahci-pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ata/ahci-pci.c b/drivers/ata/ahci-pci.c
index 11ec98b..b1d231e 100644
--- a/drivers/ata/ahci-pci.c
+++ b/drivers/ata/ahci-pci.c
@@ -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,