From patchwork Wed May 19 05:44:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masami Hiramatsu X-Patchwork-Id: 442358 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp984447jac; Tue, 18 May 2021 22:44:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgssk/URT7lCxcO5BHWwO79WszRzqwv9LVcUBiqY8d0JFYcyrggAI9NwPf8oTq+ZpDJPzW X-Received: by 2002:a17:906:15c2:: with SMTP id l2mr934179ejd.348.1621403092108; Tue, 18 May 2021 22:44:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621403092; cv=none; d=google.com; s=arc-20160816; b=jPDW22lZ9fePax/9B3IjSIXoo3gnACb6oxmpiplWC91fYonJfQ1eoI6ZHi08Rtz7rO gDmvJT4d2Y2VdreC4DTMwxnTqXOJyqwyCecLmeRaY6CAmiVZboO9Gj6vzaSPjfm8u1KC MpwiTw5oM+KJe3ZTbwy7P70Alojh/+/cv7bVhyBT1mRW7QPReEtuNXSft+TcLPfw5fhL kkifhDiNdaWqbZZZl2Umc6gx3FO2QNGspbC0ueRQz8nLslu+VZ/xRzPZI0fx3Fd2n9IR T04M1QQ6bKWL+rdNc9Sq7+yg21oi/pDBUHwqt9yVqJid7sCeet1VNtopUaOZE+skBtu7 Xwng== 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=Cy67Rn1BU9Ma8Wbz2dZxnMVGCucdzq/Ljf+OsvrKeherPV66MJu/83SzRa2BKupPny 1LKEW/w/+2WiWrVTZR1sufL2ETR40Ovqx5x+QUg+l9mfvpJ0VnqUDclWghzYwYvGV8rc csfthYFYDsH9K85iLluAHlRuaax9kJB7qqr1l716cGfoE9B8eZm1ekcLR0xhxUhd9dqt f7JKpv9y6dwPIK7GH67Ad6daj0EIBPVbw6BrAwErjkkmEIsl6UWGbjQigBm+8Bp1a/cG axOSacoIqQACYKkApJtqUuN65l5eYRNc5o2FmpJpDPWEuODZoCKmaLfbJWLUpNjLk79b SHlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eV8GifKE; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id cb1si13069702edb.233.2021.05.18.22.44.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 22:44:52 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eV8GifKE; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 62A6582B1C; Wed, 19 May 2021 07:44:45 +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="eV8GifKE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3DD7982ADA; Wed, 19 May 2021 07:44:43 +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-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) (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 03B8582AB1 for ; Wed, 19 May 2021 07:44:40 +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-x632.google.com with SMTP id s20so6367989plr.13 for ; Tue, 18 May 2021 22:44:39 -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=eV8GifKEUNlsEI5bMlLINzmXsC2GEL7AHgvQqRa5O7lhKE9Kwpi6I1tGjsAJvTotS/ +z/p2ilTyy9TNpBzPeYMM0ijDFq7vTqioF8eTrgx6tLHTu5xW3DCn04U9T4lGjWaoA9N ZduPP0UwOH0fbAPOaheJ5RzJLGEVfmRdcs5QaauCSXAnZforMEdaJ4OcUzb0DD4dz4RC wh4Br7+RkZBecLrfyXdAjKsecC+/43IsRsGP+9eo7A82oCAiLWaoSkgdlpEFgPjSX+4G 5ZnKsx87Q4BWqTglrSXHFRvl3b0kbt2qFFfFg8+0Mg7zY7TyIdKfxmzsthwT2SQOzUJX ChmA== 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=m2z1pFlOnxjqmoAnqJn+UJxqDx6Dn040udD1yRjuYmyS4vNc85dxuCVClA1p6nqNys 4QL+qxRUYrt1D1QDdu/xN6WR3qcMAttrs7h1+AFetlq46g0iAA9fknvhtTndH6AJtMY1 hLUYaGuuRDBLd8EvBiJqgYwSc88sz5+fIq7TU1UGfT+FN2eNKRh1WFui0H8l0IX5b67O qNXbMo/mFIJSin4wkPfMdzf/klK0iR6dToCB1lrXVOUSptPRAb2WlcjwNi027r5UwV+P VzRWqECXV1kOX+e6x9SkmtbW0Hb5rX919fnxR5tHv3L5mUlNerH5D2Hdv9iUi2zsvWPA dMgw== X-Gm-Message-State: AOAM533inLbLA8jtK8w9iODgSVXfYCqyqRA0v7ge5ym74p0x0m0PZwym 119so2ue9mHI405p5t3/QEftJw== X-Received: by 2002:a17:90a:9e5:: with SMTP id 92mr9978325pjo.34.1621403078481; Tue, 18 May 2021 22:44:38 -0700 (PDT) Received: from localhost.localdomain (NE2965lan1.rev.em-net.ne.jp. [210.141.244.193]) by smtp.gmail.com with ESMTPSA id c16sm13701570pgl.79.2021.05.18.22.44.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 22:44:38 -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 v4 01/14] ata: ahci-pci: Use scsi_ops to initialize ops Date: Wed, 19 May 2021 14:44:32 +0900 Message-Id: <162140307271.47256.9092490408112604327.stgit@localhost> X-Mailer: git-send-email 2.25.1 In-Reply-To: <162140306116.47256.6799058439792039400.stgit@localhost> References: <162140306116.47256.6799058439792039400.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,