From patchwork Fri Apr 16 23:37:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masami Hiramatsu X-Patchwork-Id: 422674 Delivered-To: patch@linaro.org Received: by 2002:a17:906:6d12:0:0:0:0 with SMTP id m18csp844871ejr; Fri, 16 Apr 2021 16:37:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIoU/J7R6rkr2p25NsvZoD5tdru1u3RgZ/eiiNgv3fWduMFJg8LOZNPh/jHvwVYppoKnmM X-Received: by 2002:a05:6402:368:: with SMTP id s8mr7260948edw.183.1618616260868; Fri, 16 Apr 2021 16:37:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618616260; cv=none; d=google.com; s=arc-20160816; b=trbZzEiL7PB30UxO5TvDi+HdAn/6ogmfStaBwBXUtw47uyXFwGfAe0bK1Ffs6nx9zP XadFMl87le1vtH63hxngTNe9V0zJ5gNH1CYr0fIsX4hHT7FU62RRdEagmtg7VlM6CoM2 9TdvP/ZGpJoBNR558JPDsKKGkWrdq6TarkPdBB/AkS51+Sc1brV6UvcIjhF2BnqHE7Z6 8It4hC0fh6FlDtnUaelE458dMSK47jg+Q9R4hduCZ+PujSELL9S4vwXG7CNTXzgMF+Hv 7fckEhelhN6KERcAJFfIDIso41RpoA42D8mv0gtQtDggb77EyPJz58nOEiES7kTiT5y4 5gEA== 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=Td5antfRLx79oH7CKIqv14euJYfJNBY1U8mTsYm8DXgQlVRjRDzTu/dr3T705tdjJq FRY3mgidrQr3b7W3B6HgsHfA7eI0Z2bW+S1Q3zUmp5rR5FEtyJhUBqIYKvl3tKTd0IpK OGqtdl/KbQHzwdcDBTyVyfDKvfGvLpCabAzhaaKaIKnGrtIqg6ZiboRNOSWOp1Ebdm85 XruV2FG1v1R2BEw/npBinWwE8tQpRLdYEAaUYvkG+JM78g2B4zhdeaLwxo3yoa2QQ7WZ ZytmvAM3n2CALH8m9ZGY3gS6ydrmPkAf53xuknfPCdmKaRRI8Ardwk0+MYQH1/b/F2CO i2Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YmYkfF+Y; 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 ca17si5918231edb.501.2021.04.16.16.37.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 16:37:40 -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=YmYkfF+Y; 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 67C4480FAA; Sat, 17 Apr 2021 01:37:34 +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="YmYkfF+Y"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1203680F5E; Sat, 17 Apr 2021 01:37:31 +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-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) (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 6405080EC0 for ; Sat, 17 Apr 2021 01:37:27 +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-pf1-x42b.google.com with SMTP id m11so19337671pfc.11 for ; Fri, 16 Apr 2021 16:37:27 -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=YmYkfF+YWUXBhIUkUCC8krg1Gf9j0qUKowY7v/JR7TLUUG8pUauCcFkwet8kNJo25v G7GSQiuJEBHfN+47x9TOa4KkSqAdRwJRWxZ9rXGxL5yXritCe/C0v4NDY4nRvtku0ygb 4edd0nkedorxntFarQup3pZ908sGxcLMecy+u5sNCr4VjwgYK3ZpEiyMgQEIcjbp/08M iNZyh0vPjx0pxh1wrYixW830uhe8N0CtuWhtQG7sabsTSgkrhhJnGWOHAGLlpzVCQeoD GQTdB21skccvgt/YxHXf5vZmNTqB1AzieR7KCWkqayINvMBMuRdEyDEmNoGFA5FJWMZP jvuw== 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=KgLMhHKik0foJfWQ+kqHoEK3qJXYzkt2zTGcVJ5+kVEQkKAboa4Ssl8gquaXobvpES jPIKddAoZa+f9KyGOg386Pt+oShf7+cPK5zh95JyUbV4EE2G8JKk8trMxbY1uc+8FhX7 I5SSfc98gRYY/716u+hXnr0fKY7swRWbdEWoEDf3FTeKSLRs5M31q2JNV6DmTVz30+UH mUjjhzd4hq/aMftLBQcwlclpJW6DMZji2NLPHVfTCrr+/dIh1gWBB0YurUiIRIFqIAGU hpUC0G8A3nwJgiEIGxoGE12oU/Zpw21TK1t6Q32CNszEcasDCBVs8BQRRLI4bNASHPqJ 45cA== X-Gm-Message-State: AOAM532AH6ro2L4E6qCx9X00ZpvLd/YJXrhAv9r+QQGbmTQ+UA//OHJ2 ZzEYsjQ9P2pxBF3sI2UGEMozRA== X-Received: by 2002:a63:942:: with SMTP id 63mr1286925pgj.67.1618616245872; Fri, 16 Apr 2021 16:37:25 -0700 (PDT) Received: from localhost.localdomain (NE2965lan1.rev.em-net.ne.jp. [210.141.244.193]) by smtp.gmail.com with ESMTPSA id d71sm537440pfd.83.2021.04.16.16.37.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 16:37:25 -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 Subject: [PATCH v2 01/13] ata: ahci-pci: Use scsi_ops to initialize ops Date: Sat, 17 Apr 2021 08:37:20 +0900 Message-Id: <161861624059.298230.6710415835759330979.stgit@localhost> X-Mailer: git-send-email 2.25.1 In-Reply-To: <161861622792.298230.15803163505976731363.stgit@localhost> References: <161861622792.298230.15803163505976731363.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,