From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D5073C07E94 for ; Fri, 4 Jun 2021 09:43:38 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BAFD3613F4 for ; Fri, 4 Jun 2021 09:43:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BAFD3613F4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4804F82AD8; Fri, 4 Jun 2021 11:43:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="O8qe7S82"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EDDB781EB5; Fri, 4 Jun 2021 11:43:33 +0200 (CEST) Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DE82281EB5 for ; Fri, 4 Jun 2021 11:43:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masami.hiramatsu@linaro.org Received: by mail-pl1-x62f.google.com with SMTP id h12so4347649plf.11 for ; Fri, 04 Jun 2021 02:43:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=UJp7+95mtEq8MBJE+R/DZyh+k8I4LvQpS2znz6umB8A=; b=O8qe7S82+pC1Y4Qu4Qq/yDeTF3NOIzAVoQGrRGV1m3Bp4a8PtwmmCeyyFBTtN5kAJt kJ3vhIcTxq670yu/YikA6LNlE5HBtkaTqWxXyJzIwua86onhbvfKsa2JZ3qo+sX2DBiK TtrC9uHTWQ7uW+M3yvXyx8AeN/iQ58iHJeY77xm3zzFLW8mdnNUL2OvMTp2byaD29Q9W s+zbUNHaTZ3ENjkc3+Hy/PPsHrQhXM4ARMvPoJoZtGVuARnp33FJB/rhgvizyT3Vm0ic HedF3PBS4AuMPh6ptAjrlaLk8Gnv28T5Vi0WqYMqi0qYU207MVjLO423epmQeYSWflqP NN3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=UJp7+95mtEq8MBJE+R/DZyh+k8I4LvQpS2znz6umB8A=; b=KxEaScDBD7lQ3je8/r6Ha1NbyKGeezoAsFwDwe0mvDH80Sb1d3oI24qHA7WoX9myTx yfvjenCr/HwyWLtP8a8H5XXlb3JkECGmJX/FBErxcGq1lav9Al0b4T4EfnokjOoDfLxO 8c+h3NtEYEYgRXZgHxU3Phx5AfGwqHDl4r7lKpWsRMK39BgGkOxiGypf/238paYa5XgS 2K6VuqAlc0OouBZtv7ZfEpeOEJkA0dBUzZNpSm+6kkC19CnJJoxoQCIAYJeKGA8VfYRE cg97LD/gwjvXHZrJZPGk7kXr2tD/6SpAjduKFqJvnSFOti6s/X0dAZm3GXLL4yjCNDDp fdxw== X-Gm-Message-State: AOAM533wfzoI9AQuLlxAPxFjNXjBvHF9rgPHZQNtoQM27rUCklstvHgr x1Qn55yrGCR2fYwzB1gu39srUQ== X-Google-Smtp-Source: ABdhPJz5EpMgzc5uGP9VzZ7gdSciJsQE+2bmxBEINp7sk6F/T5RmwifFWQm2BOxzifjbjI5Zdt+RuA== X-Received: by 2002:a17:90a:4a89:: with SMTP id f9mr16161283pjh.50.1622799808335; Fri, 04 Jun 2021 02:43:28 -0700 (PDT) Received: from localhost.localdomain (NE2965lan1.rev.em-net.ne.jp. [210.141.244.193]) by smtp.gmail.com with ESMTPSA id t24sm4238619pji.56.2021.06.04.02.43.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Jun 2021 02:43:28 -0700 (PDT) From: Masami Hiramatsu To: Peng Fan , Simon Glass , Tom Rini , Heinrich Schuchardt , Alexander Graf , Jagan Teki , Vignesh R , Joe Hershberger , Ramon Fried , Sughosh Ganu Cc: Masami Hiramatsu , Jassi Brar , Ilias Apalodimas , Masahisa Kojima , Takahiro Akashi , Tim Harvey , Bin Meng , u-boot@lists.denx.de, Jaehoon Chung Subject: [PATCH v5 01/13] ata: ahci-pci: Use scsi_ops to initialize ops Date: Fri, 4 Jun 2021 18:43:23 +0900 Message-Id: <162279980314.518877.13836619565702125311.stgit@localhost> X-Mailer: git-send-email 2.25.1 In-Reply-To: <162279979193.518877.11119025270138617301.stgit@localhost> References: <162279979193.518877.11119025270138617301.stgit@localhost> User-Agent: StGit/0.19 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean Without this fix, scsi-scan will cause a synchronous abort when accessing ops->scan. Signed-off-by: Masami Hiramatsu Reviewed-by: Simon Glass --- drivers/ata/ahci-pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/ata/ahci-pci.c b/drivers/ata/ahci-pci.c index 11ec98b56f..b1d231e0f9 100644 --- a/drivers/ata/ahci-pci.c +++ b/drivers/ata/ahci-pci.c @@ -5,6 +5,7 @@ #include #include +#include #include #include @@ -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,