From patchwork Fri Jun 4 09:43:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masami Hiramatsu X-Patchwork-Id: 454004 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp257801jae; Fri, 4 Jun 2021 02:43:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJSEnFNP08RQmEs5WHeKPyC4lG8eIVgLOEVI62CvOgDTqwtaD5hZk59yS/1O3zl18tGeCS X-Received: by 2002:a17:906:a203:: with SMTP id r3mr3422297ejy.361.1622799817650; Fri, 04 Jun 2021 02:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622799817; cv=none; d=google.com; s=arc-20160816; b=llOl0kvo+KwHec+Yx46paX2mAeqgNptFlrAvoOftaLCGIg2oH3jCOnGmHN1PBXBTfK A9FRzpbx+wEZWpwTv6D3HbhN85fYKLA++UHv8W7KhCOZM0YKz0M8U7tvtjc+v4eEuIpH mXMDID4vMufEr5Aec37jbq8rE4R9jFJbmZFee9h9vmTSwxU4JzEtfY1+AnR48gW1LBQl OOf6LF7kjVTqD2O4ihzEj9Tg0NQKTHaoFSug9BbzdTiQYuyzFdBPkSBh0ZkyR4gM3g/T nIV/NUO53y8GyqevSgv3SYmoW6EADirL4qZmWbuq/ILLs1yVAl7VxHYuNibmnI0cJDn7 IhMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:user-agent:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=UJp7+95mtEq8MBJE+R/DZyh+k8I4LvQpS2znz6umB8A=; b=FtdLkR9489NQlBvLX/dMSvest/zhIjC85nJu5AHD/6e9yLKpBMFlxjocMnT8Nn2obZ yi9rQSNZGAPt7fODGRNBk95WJeXITprk1VmOX0St917zNaKFafsj9IZEYII7beEdN1Ep hl8Flge7L2S94o/kHZzsrt3kaiUmsPqOuMgraIXxzAHgyVY5dBk/lDU2Vac6jKzK44+q GRA7Xx/tBngWf/2fbKGzwMAEUdeIIJCCGHV/zMpH6Q2yDjUjE7nF/cKbisy7o9cilDj/ lXhhJ+Tdi9J7ahchGox4xc4x0UW9owHfLvlhuZ3bCqU/MxZrkDF9jJ7wcjO9096W6VJd Xy0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O8qe7S82; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id n9si4104420edd.98.2021.06.04.02.43.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Jun 2021 02:43:37 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O8qe7S82; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 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-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 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,