From patchwork Mon May 10 06:31:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masami Hiramatsu X-Patchwork-Id: 433032 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp2564546jao; Sun, 9 May 2021 23:31:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhH3uPTXdkQF0rzDA/hc21k95gUv0QIri7BOqAqp5iviwfZ4lDSUXtgZ9vPReOEdk4YPAI X-Received: by 2002:a17:906:63d2:: with SMTP id u18mr24221452ejk.186.1620628291832; Sun, 09 May 2021 23:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620628291; cv=none; d=google.com; s=arc-20160816; b=zweWP77L2vqj7tMs7ycOWTlAClR7j/bmDFmRb/YnhQFCH5a6Qvu/yGbjXPi8X2KC+v 9jlq3AE83+aDSRlpP+ZskxK5wEfXxD+gFMpAXt04L3Tj6cpGaoIs+vfijWecf1XdBT7i byq+T+8ZSfg4rHlY0KhIdiwNH3raMjKO53LLQTGjtHHhtLi6skrNSqIrekOBzKrqGNEQ LyqbKD0bJCKjcQOsX6C5tpdSjjVBHRaKdrgtOz0AW0xbDulRg29Bcd8j4NzWTe+uIGVO SxmizGb0zKVy0x9OHh/co0HjVwX5Det8AhkoemxK1DzgM47WD5e0b5z1xt+FBDH5Nsy/ r70Q== 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=T5CnsP8XOVp5Q5hpG1vXhNb24EXCwXfAzVt67uTpLEDbyz0LTXBcv1XhiRwed6jIVF qYLJhObreQGyMV1Uqagrza0hCP8BOC02ZTUHPpNo6wFH5SVjz3wwFoFwu99+5LmyofIB jgBmMNq5eTt+z47Bp7nHghcHQIjbVQRlfZSXsYxNTqZEImQo4olHJH+cbdj2Z70hSxiO W3IKb8tblQoDNhZwBlTHHSOeTX+mALVmvDszFEZ7844US5pa8Z9EgFnwEDV+xeimRZZL +QUlI2iWOF0+EMiWkDUn9iRdrmLqlZNYVqDvqIIFux9u/QmKm8fzK/uY8S6bth0zOJIV yRhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HTry4LFB; 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 v26si13130690edx.196.2021.05.09.23.31.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 23:31:31 -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=HTry4LFB; 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 E7D5582B41; Mon, 10 May 2021 08:31: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=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="HTry4LFB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 564CC82B41; Mon, 10 May 2021 08:31:26 +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-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) (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 2B7CE82EB2 for ; Mon, 10 May 2021 08:31:22 +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-pg1-x535.google.com with SMTP id i14so12578207pgk.5 for ; Sun, 09 May 2021 23:31:22 -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=HTry4LFBy2pMOiZQJ+9RynJVYt1v7s7MeHzNQkoX+kQ3z0kZbyZx2ydq2AD57WJczl b890YrIeH2zZnnvBfUrXwcOgOXFpQaHCpf1PysGPX8sT7ju+bFef5RU7xEjfmlbPMrse INdOoRAxe5Fq7XY+AlaACfxUni+SypJ5b1rM5cyirPd1gY6sVjokRKKm1i6eQLTiy2V9 uLbiiChDRcBww7T21/DY2Hd61bprJ3QggoDPJyiek0GqPtUQmwF0PgwLVoklba33saj5 WiyQE6NiWiTQemKuWdlSZTlUyr1YP44WJr8WisBRSek5zBeBrsWB5KtxiMg1dZ803urC zdWA== 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=J3N589DNdIt5yPAgB0gUCI50GJRpAKhHT6WlZnOFVYq50/G6tiAUvnf0woscE9M84X SixgpW4bRixwYVSqmD4oIQaExgJ0WKxNc2BBsTJVi6QxNM2VFmZ6c7aduclzYK5uk+S6 EEkdqXv58nUn3bVylLkMiS60iFWUWY9IJkzGvrYfVi7vhrO8PkWcDc/2xmih83XhFs4V VHVP3ToJXs5GP7JAKSVbM4lJ1hljqu4+IKLrQIxvFW3nLR2iVC4bd/iQOrW1HoX9b5lp 6ihK4HRkE83ihrR5/7cRnyPb4VVswpoQ3vd2UXKNLJFwwvkNpqH/yIMII6HrcOIkLKea Cw1Q== X-Gm-Message-State: AOAM532C5CXP7rLmS4wL1oOaoPED61XuQsnu02NqVNVH2XrWqlVItTAv Y8NsCFVUWlT9H1xfZCBykvuzzw== X-Received: by 2002:a63:1921:: with SMTP id z33mr23872486pgl.211.1620628280663; Sun, 09 May 2021 23:31:20 -0700 (PDT) Received: from localhost.localdomain (NE2965lan1.rev.em-net.ne.jp. [210.141.244.193]) by smtp.gmail.com with ESMTPSA id u12sm18686857pji.45.2021.05.09.23.31.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 23:31:20 -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 v3 02/14] ata: ahci-pci: Use scsi_ops to initialize ops Date: Mon, 10 May 2021 15:31:15 +0900 Message-Id: <162062827563.501222.14010796212514133274.stgit@localhost> X-Mailer: git-send-email 2.25.1 In-Reply-To: <162062825393.501222.13616174511857694530.stgit@localhost> References: <162062825393.501222.13616174511857694530.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,