From patchwork Wed Aug 22 07:36:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 144814 Delivered-To: patch@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp383266ljw; Wed, 22 Aug 2018 00:38:06 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzuj3EKQzqnwEF7wqVgTYdvwtt+13i/C/qb6bnyZr1taVuiafN2T3w8lcj+CXMKSF7mmpxu X-Received: by 2002:a63:3cc:: with SMTP id 195-v6mr23159156pgd.229.1534923485977; Wed, 22 Aug 2018 00:38:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534923485; cv=none; d=google.com; s=arc-20160816; b=XKw9QaU4hTq/r1uJAOUSKoAiURnbpu8NxzwezBtsHOTOU7pkSFBD30MimYCfYZWs7f 8VbMZDEmb4l2USTT2ZfIZTXTisUzTRh1Jabw3y24f0tl2geYDVIRaqcaMPD/KWaeJA4P VykYlC7S0VW0hPGoNn9SowLfuWmL1XwSU81ZJG0JCCcNE76q1rG2hjYjLxwT8C3ZEPbB zWZqL5Fh/mRTAoF29P+1bP0ICr5X+jo9XqZL1LxvpQuEqCl8HB2i8DMXu/TgSNPDWio6 WgMFqT9wE/y/077ITU7oYDoT0kcWJfSDSlD8pCeRVmygqZF9agO0VCJGIFN9Ua3Rx9S8 yDRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=57RwMtN/itOFj2IKaKPwsX1zU5qZL4Yn+SBOU/4hFAo=; b=aownU6QqZZXdBFG8gy0pGn1Lc1oQRPG3jL1sKEKzR/HmMod1mgbZLZ5Bkng6zbguw+ q+xICTgyH3eaOUj8okjSSfgPX9QSnqlIwRJwgO+T4wsd78tlWAvh8Uu2JeaHya5srll7 9zIzbieZgxniRlmzxGRHU5AD6sgdJU1A1i+2Z3xllpN4rA1769QXy0ALkBLml7Jj5URy uCfsC4RYQC4HDrEd6pAPjoS7hk4D5aWKU7PuV8u3/iq8eyGFQwnOauu5XOfBEiTtBi+P C4QiNLHCLRTyBZ87rs3BVZzVoz5m161UzLBNKDmGeTxi5WsU0rT5fdK970lGV1LTUYON hj/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z2-v6si991495pgp.681.2018.08.22.00.38.05; Wed, 22 Aug 2018 00:38:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728362AbeHVLBO (ORCPT + 32 others); Wed, 22 Aug 2018 07:01:14 -0400 Received: from mx.socionext.com ([202.248.49.38]:47187 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728174AbeHVLBN (ORCPT ); Wed, 22 Aug 2018 07:01:13 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 22 Aug 2018 16:37:30 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 4075E6062A; Wed, 22 Aug 2018 16:37:30 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 22 Aug 2018 16:37:30 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 0789B1A0E6F; Wed, 22 Aug 2018 16:37:29 +0900 (JST) From: Kunihiko Hayashi To: Tejun Heo , Hans de Goede , Rob Herring , Mark Rutland , linux-ide@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi , Thierry Reding Subject: [PATCH 01/14] ata: ahci-platform: add reset control support and the flag to specify using reset Date: Wed, 22 Aug 2018 16:36:57 +0900 Message-Id: <1534923430-9692-2-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support to get and control a list of resets for the device as optional and shared. These resets must be kept de-asserted until the device is enabled. This is specified as shared because some SoCs like UniPhier series have common reset controls with all ahci controller instances. However, according to Thierry's view, https://www.spinics.net/lists/linux-ide/msg55357.html some hardware-specific drivers already use their own resets, and the common reset make a path to occur double controls of resets. Now this add the flag to ahci_platform_get_resources() indicating whether to use the resources, currently resets only, and existing drivers set 0 to this flags. Suggested-by: Hans de Goede Cc: Thierry Reding Signed-off-by: Kunihiko Hayashi --- .../devicetree/bindings/ata/ahci-platform.txt | 1 + drivers/ata/ahci.h | 1 + drivers/ata/ahci_platform.c | 3 +- drivers/ata/libahci_platform.c | 35 ++++++++++++++++++---- include/linux/ahci_platform.h | 4 ++- 5 files changed, 36 insertions(+), 8 deletions(-) -- 2.7.4 diff --git a/Documentation/devicetree/bindings/ata/ahci-platform.txt b/Documentation/devicetree/bindings/ata/ahci-platform.txt index 6637666..5d5bd45 100644 --- a/Documentation/devicetree/bindings/ata/ahci-platform.txt +++ b/Documentation/devicetree/bindings/ata/ahci-platform.txt @@ -29,6 +29,7 @@ compatible: Optional properties: - dma-coherent : Present if dma operations are coherent - clocks : a list of phandle + clock specifier pairs +- resets : a list of phandle + reset specifier pairs - target-supply : regulator for SATA target power - phys : reference to the SATA PHY node - phy-names : must be "sata-phy" diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h index 1609eba..6a1515f 100644 --- a/drivers/ata/ahci.h +++ b/drivers/ata/ahci.h @@ -350,6 +350,7 @@ struct ahci_host_priv { u32 em_msg_type; /* EM message type */ bool got_runtime_pm; /* Did we do pm_runtime_get? */ struct clk *clks[AHCI_MAX_CLKS]; /* Optional */ + struct reset_control *rsts; /* Optional */ struct regulator **target_pwrs; /* Optional */ /* * If platform uses PHYs. There is a 1:1 relation between the port number and diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index 564570e..46f0bd7 100644 --- a/drivers/ata/ahci_platform.c +++ b/drivers/ata/ahci_platform.c @@ -43,7 +43,8 @@ static int ahci_probe(struct platform_device *pdev) struct ahci_host_priv *hpriv; int rc; - hpriv = ahci_platform_get_resources(pdev); + hpriv = ahci_platform_get_resources(pdev, + AHCI_PLATFORM_GET_RESETS); if (IS_ERR(hpriv)) return PTR_ERR(hpriv); diff --git a/drivers/ata/libahci_platform.c b/drivers/ata/libahci_platform.c index 8fbb532..c92c10d 100644 --- a/drivers/ata/libahci_platform.c +++ b/drivers/ata/libahci_platform.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "ahci.h" static void ahci_host_stop(struct ata_host *host); @@ -195,7 +196,8 @@ EXPORT_SYMBOL_GPL(ahci_platform_disable_regulators); * following order: * 1) Regulator * 2) Clocks (through ahci_platform_enable_clks) - * 3) Phys + * 3) Resets + * 4) Phys * * If resource enabling fails at any point the previous enabled resources * are disabled in reverse order. @@ -215,12 +217,19 @@ int ahci_platform_enable_resources(struct ahci_host_priv *hpriv) if (rc) goto disable_regulator; - rc = ahci_platform_enable_phys(hpriv); + rc = reset_control_deassert(hpriv->rsts); if (rc) goto disable_clks; + rc = ahci_platform_enable_phys(hpriv); + if (rc) + goto disable_resets; + return 0; +disable_resets: + reset_control_assert(hpriv->rsts); + disable_clks: ahci_platform_disable_clks(hpriv); @@ -238,13 +247,16 @@ EXPORT_SYMBOL_GPL(ahci_platform_enable_resources); * This function disables all ahci_platform managed resources in the * following order: * 1) Phys - * 2) Clocks (through ahci_platform_disable_clks) - * 3) Regulator + * 2) Resets + * 3) Clocks (through ahci_platform_disable_clks) + * 4) Regulator */ void ahci_platform_disable_resources(struct ahci_host_priv *hpriv) { ahci_platform_disable_phys(hpriv); + reset_control_assert(hpriv->rsts); + ahci_platform_disable_clks(hpriv); ahci_platform_disable_regulators(hpriv); @@ -332,6 +344,7 @@ static int ahci_platform_get_regulator(struct ahci_host_priv *hpriv, u32 port, /** * ahci_platform_get_resources - Get platform resources * @pdev: platform device to get resources for + * @flags: bitmap representing the resource to get * * This function allocates an ahci_host_priv struct, and gets the following * resources, storing a reference to them inside the returned struct: @@ -340,12 +353,14 @@ static int ahci_platform_get_regulator(struct ahci_host_priv *hpriv, u32 port, * 2) regulator for controlling the targets power (optional) * 3) 0 - AHCI_MAX_CLKS clocks, as specified in the devs devicetree node, * or for non devicetree enabled platforms a single clock - * 4) phys (optional) + * 4) resets, if flags has AHCI_PLATFORM_GET_RESETS (optional) + * 5) phys (optional) * * RETURNS: * The allocated ahci_host_priv on success, otherwise an ERR_PTR value */ -struct ahci_host_priv *ahci_platform_get_resources(struct platform_device *pdev) +struct ahci_host_priv *ahci_platform_get_resources(struct platform_device *pdev, + unsigned int flags) { struct device *dev = &pdev->dev; struct ahci_host_priv *hpriv; @@ -393,6 +408,14 @@ struct ahci_host_priv *ahci_platform_get_resources(struct platform_device *pdev) hpriv->clks[i] = clk; } + if (flags & AHCI_PLATFORM_GET_RESETS) { + hpriv->rsts = devm_reset_control_array_get_optional_shared(dev); + if (IS_ERR(hpriv->rsts)) { + rc = PTR_ERR(hpriv->rsts); + goto err_out; + } + } + hpriv->nports = child_nodes = of_get_child_count(dev->of_node); /* diff --git a/include/linux/ahci_platform.h b/include/linux/ahci_platform.h index 1b0a17b..eaedca5f 100644 --- a/include/linux/ahci_platform.h +++ b/include/linux/ahci_platform.h @@ -30,7 +30,7 @@ void ahci_platform_disable_regulators(struct ahci_host_priv *hpriv); int ahci_platform_enable_resources(struct ahci_host_priv *hpriv); void ahci_platform_disable_resources(struct ahci_host_priv *hpriv); struct ahci_host_priv *ahci_platform_get_resources( - struct platform_device *pdev); + struct platform_device *pdev, unsigned int flags); int ahci_platform_init_host(struct platform_device *pdev, struct ahci_host_priv *hpriv, const struct ata_port_info *pi_template, @@ -43,4 +43,6 @@ int ahci_platform_resume_host(struct device *dev); int ahci_platform_suspend(struct device *dev); int ahci_platform_resume(struct device *dev); +#define AHCI_PLATFORM_GET_RESETS 0x01 + #endif /* _AHCI_PLATFORM_H */ From patchwork Wed Aug 22 07:36:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 144820 Delivered-To: patch@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp383797ljw; Wed, 22 Aug 2018 00:38:55 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzPiWBocQCd78u5HMiYa0crwdEzafEJbAglY6fhfb0BZNwJAlwikTj+5S/ilc4dgaJ3+fUY X-Received: by 2002:a65:450a:: with SMTP id n10-v6mr25457169pgq.392.1534923535801; Wed, 22 Aug 2018 00:38:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534923535; cv=none; d=google.com; s=arc-20160816; b=Ndgk611V9o8m8q3kpzReclAioJ+kLKlvQoK6Vo9qlVYE4bdycralFNE1qbGHccfnl7 RFotsI+eo77bpa7q3RCTWb8xVlL3IBS2aY674igXQQjpjA8enIwQX5pCsCOfwlp2Cb9t yZgOsNgztdwrYGzVAT5x9D+wUAGSC9q1Cb+De6DR0JHATsodw8He9u42P1ZZs2yUNW4k irZq1GE+CrNdUujQG8sqbUu309pFaVaIH2p88Fhp0Fq0tYGaV0GZ4ikwr9VPy5lyarjP dLwn6U+cpAtCdBRG+heMcpPdQVdSf+o66QLIwTAn1jWYBqaXtybfL/GxDCEDV7TW3d00 FycA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=deFb3ZZNH15WCxP1TgbkfYbcOkMPennVOVtWQBOBIzI=; b=ng0tw2byB4Ei8qnRNCKq9WCZIZRc/3TW3LnBDAk8iN5VCRubk8EBv1K2DQGZ77UV1t 4tN/NXmaPRtqHQPXWYE4dH3xLmzEAr5wxvsiP7Q+S+u699SyB1W+ht4C79Ji+9hvsonv dOPZIBOu5f+jqHnoSg5fEhxCjiN5yi4HnQ5rtNnPsG/RPQ8rFAe4mO+e5AP/gmsml1Jf NVInlPpUIJebTj1fRlQQ2mfuvj2BL3zBMmuz+b1WEGuh6lcgxySlcX2WUH1fgBLstg2V xR4jDdX7y4aXVDUT5g/uOp5Y5FzPL1KCMyP6/NRcSB9YXv7U1/wgQMNALtuhks/EUFam 6J4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g12-v6si1063718pla.70.2018.08.22.00.38.55; Wed, 22 Aug 2018 00:38:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728278AbeHVLBM (ORCPT + 32 others); Wed, 22 Aug 2018 07:01:12 -0400 Received: from mx.socionext.com ([202.248.49.38]:47191 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728199AbeHVLBL (ORCPT ); Wed, 22 Aug 2018 07:01:11 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 22 Aug 2018 16:37:30 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 7619C180237; Wed, 22 Aug 2018 16:37:30 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 22 Aug 2018 16:37:30 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 903651A0E11; Wed, 22 Aug 2018 16:37:29 +0900 (JST) From: Kunihiko Hayashi To: Tejun Heo , Hans de Goede , Rob Herring , Mark Rutland , linux-ide@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH 02/14] ata: ahci_brcm: add second argument of ahci_platform_get_resources() Date: Wed, 22 Aug 2018 16:36:58 +0900 Message-Id: <1534923430-9692-3-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding a flag to indicate whether acqiring the optional resources as the second argument of ahci_platform_get_resources(), add the argument as initial value 0. Cc: Hans de Goede Signed-off-by: Kunihiko Hayashi --- drivers/ata/ahci_brcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/ata/ahci_brcm.c b/drivers/ata/ahci_brcm.c index ea43081..f3d5577 100644 --- a/drivers/ata/ahci_brcm.c +++ b/drivers/ata/ahci_brcm.c @@ -425,7 +425,7 @@ static int brcm_ahci_probe(struct platform_device *pdev) brcm_sata_phys_enable(priv); - hpriv = ahci_platform_get_resources(pdev); + hpriv = ahci_platform_get_resources(pdev, 0); if (IS_ERR(hpriv)) return PTR_ERR(hpriv); hpriv->plat_data = priv; From patchwork Wed Aug 22 07:37:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 144815 Delivered-To: patch@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp383319ljw; Wed, 22 Aug 2018 00:38:12 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwxsB6wXSMMYh0UGebWNLMASAdQRQEoK6PBrahWa5fX7I4dfF2CHDd0/fmkRZA0W3q3/WPJ X-Received: by 2002:a62:c288:: with SMTP id w8-v6mr56336617pfk.92.1534923491999; Wed, 22 Aug 2018 00:38:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534923491; cv=none; d=google.com; s=arc-20160816; b=RInYnIg+2+IMuCIn66yIUCAJUw3latZmYWub/evzKihggislL6OlY0coFjZ/dSVK3O TQ1XyhNl7fSE9SpzE/u4c8ZzHqL8D6g3JbQLHTiz+2SUnbKTwys0eK9RNhoT//VLtBme WV1xkjDinbruth8JIrP+jv7larx+Cb6bBaB53PuPUY0V8s4AL3kdXiubqaVDEXVDiujF DzTEj8omAlB7yRR6lH4HIndMQinpRFba4q3+HAbEegRk+R3w7b8fFUJidNJLMZqs7vD3 khvQZec5e69HLYQcDAD4UBCbsvWI8dJ5i3Ak2yFZjKJIzxtYxd0Tgo2Vmia2JXxwWl/D NZsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=FlNR6vHgB1GfRO4yJ3XHA+ep1GHVNXqd6E8CmIBkXu4=; b=Scdu9pY7KugpYlnQuL68m48GOemb0229OMn13VR71gw6bTww+o7okBnf6Kse4jS3CW eab2KmimOD5rKHi/eV9Ycxf84DBefnimHOsszGO5MaepF9tqpUIkmuxao3wi/KH4WzhL OPYzKcf4owzAajhY1y/dmqPRe5gPK6VqnIfVsAMGirWiq396vfBdNGHD37f+xbvKVe2f B45OBBMEsO6c53Ke48FWgUJdD24+gWF53DkzGG26RXyJZT5tqpBAe+sMhRWHie/znudf 6bqC897U6n4CGB5YjS7Eify50aKS2DfWbABEeqxpkqj+ucXBik6L+6ZXWyzBfeGUzwdw in9A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4-v6si987326pll.156.2018.08.22.00.38.11; Wed, 22 Aug 2018 00:38:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728334AbeHVLBN (ORCPT + 32 others); Wed, 22 Aug 2018 07:01:13 -0400 Received: from mx.socionext.com ([202.248.49.38]:47195 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726448AbeHVLBM (ORCPT ); Wed, 22 Aug 2018 07:01:12 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 22 Aug 2018 16:37:30 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id BD4FC180237; Wed, 22 Aug 2018 16:37:30 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 22 Aug 2018 16:37:30 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 347761A0E11; Wed, 22 Aug 2018 16:37:30 +0900 (JST) From: Kunihiko Hayashi To: Tejun Heo , Hans de Goede , Rob Herring , Mark Rutland , linux-ide@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH 04/14] ata: ahci_da850: add second argument of ahci_platform_get_resources() Date: Wed, 22 Aug 2018 16:37:00 +0900 Message-Id: <1534923430-9692-5-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding a flag to indicate whether acqiring the optional resources as the second argument of ahci_platform_get_resources(), add the argument as initial value 0. Cc: Hans de Goede Signed-off-by: Kunihiko Hayashi --- drivers/ata/ahci_da850.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/ata/ahci_da850.c b/drivers/ata/ahci_da850.c index 9b34dff..ebaa657 100644 --- a/drivers/ata/ahci_da850.c +++ b/drivers/ata/ahci_da850.c @@ -171,7 +171,7 @@ static int ahci_da850_probe(struct platform_device *pdev) u32 mpy; int rc; - hpriv = ahci_platform_get_resources(pdev); + hpriv = ahci_platform_get_resources(pdev, 0); if (IS_ERR(hpriv)) return PTR_ERR(hpriv); From patchwork Wed Aug 22 07:37:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 144813 Delivered-To: patch@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp383201ljw; Wed, 22 Aug 2018 00:38:01 -0700 (PDT) X-Google-Smtp-Source: AA+uWPy5GvJtEp6KHcbL5MBpIkKukikLUwmhrALGmtEKkBhUiHLhOMGidMp1LzV/d/z+7fq/rYvQ X-Received: by 2002:a17:902:27a8:: with SMTP id d37-v6mr53466508plb.290.1534923480921; Wed, 22 Aug 2018 00:38:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534923480; cv=none; d=google.com; s=arc-20160816; b=A/DnBg6A8h98nBbWkOURFq4MmEsoY3ggwJ6s5233o0Mdn5HUq4E+XsVlLMNILqrw9M 5xUKZsnnXCviuAE3uhcbl69eQu6AZg4wrl3b/fhHrSdx+1UUyviXHtAEr+DZx1SfE0A2 r7EUZcb63/mJ6PKJPAYvN6Rg6SzhzzQmrnnrQAhqGnpUcx/mWXJmXWdJ8tTfhUWLJ6cb wBOz4GZ1rBOCtPw/glRRjICM5O6eI1D7wfWDK1rSaWDn+pFbj+48ZozxbPhiWDOFM1gg YyzG5qntbetGrv4uTda6+pqlpmtbJ+pSbdcAoApIvtHm0b1fHWQUC62m5ru1g1gJ3Nlv 3bTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=E8a/cXa6WxvQjzD2iaY1UDGQEN+KLwk1xWk+nu5yv2g=; b=IBEh5a7JLjetix1xw6F6A7DBIZZfBHlPi7YCYwSjB/2RMmqLhXYjCQv25KCGeyO4Zk MTNzSouTkVwR4YqtkDwttKsMVvEVb6Q9ZBLAyTKL0yk4azzfg+Rlyi6Kr/OlDudHqF2O HcbFvjQo2pr1KxvWnwTqPEY0pKEVew+ifzI1IaDx+iSIzM9Z8M4j3YCWWwEQgjsnVgcM PFfVp5mu3JZbqq9zXq59BKFiI4DMt5CHDDsRsSD6dm1xuZBUKPQctMBUXEpTXyl3u2C8 OaP5fBqZB/f+fZnxeVI7rv6ouEZrBprE9BDRfD0dZAAEhCkboWbc0lAt/LS++Ko+dd8S rpkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13-v6si1008656pgq.426.2018.08.22.00.38.00; Wed, 22 Aug 2018 00:38:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728387AbeHVLBP (ORCPT + 32 others); Wed, 22 Aug 2018 07:01:15 -0400 Received: from mx.socionext.com ([202.248.49.38]:47202 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728199AbeHVLBO (ORCPT ); Wed, 22 Aug 2018 07:01:14 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 22 Aug 2018 16:37:30 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id F0E1B180237; Wed, 22 Aug 2018 16:37:30 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 22 Aug 2018 16:37:30 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 6FB471A0E6F; Wed, 22 Aug 2018 16:37:30 +0900 (JST) From: Kunihiko Hayashi To: Tejun Heo , Hans de Goede , Rob Herring , Mark Rutland , linux-ide@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH 05/14] ata: ahci_dm816: add second argument of ahci_platform_get_resources() Date: Wed, 22 Aug 2018 16:37:01 +0900 Message-Id: <1534923430-9692-6-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding a flag to indicate whether acqiring the optional resources as the second argument of ahci_platform_get_resources(), add the argument as initial value 0. Cc: Hans de Goede Signed-off-by: Kunihiko Hayashi --- drivers/ata/ahci_dm816.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/ata/ahci_dm816.c b/drivers/ata/ahci_dm816.c index fbd827c..89509c3 100644 --- a/drivers/ata/ahci_dm816.c +++ b/drivers/ata/ahci_dm816.c @@ -148,7 +148,7 @@ static int ahci_dm816_probe(struct platform_device *pdev) struct ahci_host_priv *hpriv; int rc; - hpriv = ahci_platform_get_resources(pdev); + hpriv = ahci_platform_get_resources(pdev, 0); if (IS_ERR(hpriv)) return PTR_ERR(hpriv); From patchwork Wed Aug 22 07:37:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 144816 Delivered-To: patch@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp383339ljw; Wed, 22 Aug 2018 00:38:13 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzecHUga9fuSdMoaKVddwY9gyciM+BUXqb7mPtW5JUAGLoIe/SeYhX83M10kixNauv3CeR9 X-Received: by 2002:a63:fc5a:: with SMTP id r26-v6mr19161838pgk.377.1534923493649; Wed, 22 Aug 2018 00:38:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534923493; cv=none; d=google.com; s=arc-20160816; b=lcphsbtMKVkqxzUmpyW5hGJlJsRvvAOVzqm50b95u1OLeHb0kGKWiz9xOvdhq3OZLq +LTfICRhCpeQ4IzqQQiSX543BhXu28LH/usrvyilufiUNnBO0cm6dXHwoDTHtFnvwRHn NaiFZImEzak94XdRap70niZRYzpvtux4yMfcXy/6EnTH2x3c6ryb/CwtaiNKOq1QmU8g dwZyyMSUdCGOy5yHPtOKGFWZ8traFBK79T3ZR/x59PyO2XaIu3cN3/PUqIm/9wZSmp3d Y6be7qIf69kJfLhalTt+0EWNOsi5Ro6F59CAKYbeHDoqVdSzaRDBGY2N/haYhwI6vH2T ekvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=XwqQ//3iW1sIWn6bTg9o/eL9010o3+HleC3MqBvEG/E=; b=UXsEtBb2r3BIDfUlQZrvSSJ2YfllEcE3UHBfTHRXFHp5lL3uSgjy67+Mu1rwciQdDk GJ9PPt6tX2hgB9YtqAVy96yR/aFQ93S5YkQvp2xiOLA0K7vq0Yu5I1g6VQ0eMTaFvKaN I040YpDy0RB8Rc075zboXx19SyeuAUXw0vuLrZH7kvqbtJAwMyRmVDR1ASVGENmst2f7 O34sXgU/Evvy4rEYjEwnxIhCdLhYc/HKH1u4s39eJpsoqHKANkGXDl3YrKykC0GDFsR6 qDqHx/SdD6FmpnXo0foaVfIrJuCoS2Seoa5RPgGoVMCjYQ6ZWSCiFV8OdnsxjmYa6SRZ 41qA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7-v6si1024993plq.163.2018.08.22.00.38.13; Wed, 22 Aug 2018 00:38:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728514AbeHVLBu (ORCPT + 32 others); Wed, 22 Aug 2018 07:01:50 -0400 Received: from mx.socionext.com ([202.248.49.38]:47191 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728253AbeHVLBN (ORCPT ); Wed, 22 Aug 2018 07:01:13 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 22 Aug 2018 16:37:31 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 4A88B180237; Wed, 22 Aug 2018 16:37:31 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 22 Aug 2018 16:37:31 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id AEE4C1A0E11; Wed, 22 Aug 2018 16:37:30 +0900 (JST) From: Kunihiko Hayashi To: Tejun Heo , Hans de Goede , Rob Herring , Mark Rutland , linux-ide@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH 06/14] ata: ahci_imx: add second argument of ahci_platform_get_resources() Date: Wed, 22 Aug 2018 16:37:02 +0900 Message-Id: <1534923430-9692-7-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding a flag to indicate whether acqiring the optional resources as the second argument of ahci_platform_get_resources(), add the argument as initial value 0. Cc: Hans de Goede Signed-off-by: Kunihiko Hayashi --- drivers/ata/ahci_imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/ata/ahci_imx.c b/drivers/ata/ahci_imx.c index 6822e2f..b00799d 100644 --- a/drivers/ata/ahci_imx.c +++ b/drivers/ata/ahci_imx.c @@ -1127,7 +1127,7 @@ static int imx_ahci_probe(struct platform_device *pdev) return ret; } - hpriv = ahci_platform_get_resources(pdev); + hpriv = ahci_platform_get_resources(pdev, 0); if (IS_ERR(hpriv)) return PTR_ERR(hpriv); From patchwork Wed Aug 22 07:37:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 144818 Delivered-To: patch@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp383429ljw; Wed, 22 Aug 2018 00:38:23 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyzieq7MYaWf+3WxlQwvnJ/2Ro+AtFdNy1gxFsPqX271RjiETrFCZfbsBCowWxHcLTtYuKx X-Received: by 2002:a62:50c3:: with SMTP id g64-v6mr27527889pfj.244.1534923503017; Wed, 22 Aug 2018 00:38:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534923503; cv=none; d=google.com; s=arc-20160816; b=uDDApLYpflJXeO0gYQC/SySohU0YjBNXlld46/QazcDeLJVVEsfWjmJgYs0Havb688 3ZtGsCSQidKfMJlxbmPdiRr+5k4MqCwq3WaPwES3xT03LdxoLAEVMXQbgzEZW1o7j3i8 QIxE0RxVXkRIUYdMgurasFsyxLUO9XMHeWta50ntJy4uvTVwD4GxaSyoEFCzJSpLQCNs 1Z0UknqRTxVCwDy/ILIAYmp5+6vlbZI4BH5jjKx1Xx/CamoDLRzNoVMpaYtDsKBdcryC dCDYtQF+ydIX0xDEQDt8/SQQ/4VSbcMCZY2t1c2KPvExqM0BHBkTIPP8TSSoQMzmtG4a hkBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=2/ASqOTjM+tZVaSjQqgfTB8JikEW03sImiaET2Q/yxY=; b=x36cJBvXTpmFHrXR3eyEQl6NhQTFVRFRoL6CT0o6tX0NF3hT68UhMUvmTvSe/n26c9 bxIxhpDGP1UuAWo9Aiq4yQXSVl8SvWnCEBIT0mp5gVGaDPywdk8GPp6BCQps7TYb7DId SJldL8saI5lMDRFnEPBMFhW4j4HbtEGAF9X+/AZkZnELY80D51GvYTZPtfooHcJwvOL6 bELbCG9ZTvrJTYw/lGC0j+gLEeX/FU7B7MpExLyLmLveoM25w01Aj9x7/oeuxF8A/1Kt keopjnwnOU/r6J2YS5rZuF3AFw6XGTZkkMVfo4EksTRo/jb81ksf34HVhbLoKtq9XbAP 9J9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w190-v6si997732pgd.482.2018.08.22.00.38.22; Wed, 22 Aug 2018 00:38:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728486AbeHVLBu (ORCPT + 32 others); Wed, 22 Aug 2018 07:01:50 -0400 Received: from mx.socionext.com ([202.248.49.38]:47195 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728284AbeHVLBN (ORCPT ); Wed, 22 Aug 2018 07:01:13 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 22 Aug 2018 16:37:31 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 7FE606062A; Wed, 22 Aug 2018 16:37:31 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 22 Aug 2018 16:37:31 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id ED0F61A0E6F; Wed, 22 Aug 2018 16:37:30 +0900 (JST) From: Kunihiko Hayashi To: Tejun Heo , Hans de Goede , Rob Herring , Mark Rutland , linux-ide@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi , Matthias Brugger Subject: [PATCH 07/14] ata: ahci_brcm: add second argument of ahci_platform_get_resources() Date: Wed, 22 Aug 2018 16:37:03 +0900 Message-Id: <1534923430-9692-8-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding a flag to indicate whether acqiring the optional resources as the second argument of ahci_platform_get_resources(), add the argument as initial value 0. Cc: Hans de Goede Cc: Matthias Brugger Signed-off-by: Kunihiko Hayashi --- drivers/ata/ahci_mtk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/ata/ahci_mtk.c b/drivers/ata/ahci_mtk.c index 0ae6971..8bc1a26 100644 --- a/drivers/ata/ahci_mtk.c +++ b/drivers/ata/ahci_mtk.c @@ -142,7 +142,7 @@ static int mtk_ahci_probe(struct platform_device *pdev) if (!plat) return -ENOMEM; - hpriv = ahci_platform_get_resources(pdev); + hpriv = ahci_platform_get_resources(pdev, 0); if (IS_ERR(hpriv)) return PTR_ERR(hpriv); From patchwork Wed Aug 22 07:37:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 144811 Delivered-To: patch@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp383077ljw; Wed, 22 Aug 2018 00:37:49 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbfVDF7spyCBM2+0ZuHbJChRLUe1xMyvSvK2f4UL5aFOsg708w6Lxn779hCeTpFs6jCAllW X-Received: by 2002:a17:902:7203:: with SMTP id ba3-v6mr1135960plb.179.1534923469343; Wed, 22 Aug 2018 00:37:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534923469; cv=none; d=google.com; s=arc-20160816; b=SruFDE/t4lMO5GZq+dr4LFdb6tsLxz9lpVa8/ff5KyY8iqvPGhRYHM+ylEWNIH7/RY oMhbzNhdAuXtIzABVJSTTKOekUqrXjsDJTwHuT1RL4meoh1ICgJrwosIz+uJC6/8LCmj ZrjJG6Fycq/wgrSZTDNxzoba6PWL6K6oYKsjUmmfHQsXjdyIDY+yv53G70GHqGEuN6b8 NYqwM2d8mt/RIsRw/xSmjj2uS1hQQdo4R+8N9o/yDlGpkWxUqbwbCww8XE+lrYynYkeD PipZyTAiFGH0L7++xEgbB0P2Y/rPfbafeCjZCBbQLLCn4EuuYb303yRzkzaca0H2LUYe bz0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=DEVMqtGoSRp/4mIVD/Tz1JL7D2D+g6EPBJXGU1m01VY=; b=V0vnfHi1RxQ0LVM47VYe7gUhNupW4WLYK+dC+tYZcIzm4WLphgAzzfWjlGm/4eIDsO zc4wb42gLHsKRb9JGbr96+/3SF6C505UiqVRWnApdEl2PB6qYNBrSHiTy7YmJC9UettO xms/3jN3C9gsyqauNMnbRfgxAda8unUJu3xtuHorgsSf/huMdL4iu1ZsU6JBJsf6gqEV WCEsYFAnUG4R9YFGMjaU+n51gppz3MWMZ64MJs3UYrBhRB1TSWwYhyaaGkx/h4tgBlUc rAuGbGJFvwT/lQRo1t42LPbSciQNCGNDzyMUbo986fQOHWjRqfk+gcHPXmmPc1puQXTR vTHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b129-v6si1163827pfa.12.2018.08.22.00.37.48; Wed, 22 Aug 2018 00:37:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728401AbeHVLBP (ORCPT + 32 others); Wed, 22 Aug 2018 07:01:15 -0400 Received: from mx.socionext.com ([202.248.49.38]:47187 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728318AbeHVLBO (ORCPT ); Wed, 22 Aug 2018 07:01:14 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 22 Aug 2018 16:37:31 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 0590A180237; Wed, 22 Aug 2018 16:37:32 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 22 Aug 2018 16:37:32 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 854551A0E6F; Wed, 22 Aug 2018 16:37:31 +0900 (JST) From: Kunihiko Hayashi To: Tejun Heo , Hans de Goede , Rob Herring , Mark Rutland , linux-ide@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH 09/14] ata: ahci_qoriq: add second argument of ahci_platform_get_resources() Date: Wed, 22 Aug 2018 16:37:05 +0900 Message-Id: <1534923430-9692-10-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding a flag to indicate whether acqiring the optional resources as the second argument of ahci_platform_get_resources(), add the argument as initial value 0. Cc: Hans de Goede Signed-off-by: Kunihiko Hayashi --- drivers/ata/ahci_qoriq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/ata/ahci_qoriq.c b/drivers/ata/ahci_qoriq.c index cfdef4d..ce59253 100644 --- a/drivers/ata/ahci_qoriq.c +++ b/drivers/ata/ahci_qoriq.c @@ -250,7 +250,7 @@ static int ahci_qoriq_probe(struct platform_device *pdev) struct resource *res; int rc; - hpriv = ahci_platform_get_resources(pdev); + hpriv = ahci_platform_get_resources(pdev, 0); if (IS_ERR(hpriv)) return PTR_ERR(hpriv); From patchwork Wed Aug 22 07:37:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 144819 Delivered-To: patch@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp383504ljw; Wed, 22 Aug 2018 00:38:31 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZc9J1k5WdR23VAeLYprPolk1++ITs0RrVGBUa7xNpLMUY607sA4t8jf/DhD/4dF2Qete5H X-Received: by 2002:a62:83ca:: with SMTP id h193-v6mr33965pfe.123.1534923510849; Wed, 22 Aug 2018 00:38:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534923510; cv=none; d=google.com; s=arc-20160816; b=sI7iF7dG6l7PVrK7xoNfVeG7dFcDXEsZ4tdHU1Hds+vUlRwBxpeTUmV+dXYPo0I8f1 eOjQBV0PkUiPuCBG+4H0jpuH/1tZmejH2+hP+uIq8M6UtjYzg0tRox6YdkHeiTpHxtUi Shiz/60ruSJIe244PbzGvEE626Qlia0mZTrtph+T6Z26IpmwJSIkICwax7qO8Xz1A8BA ZVrfkn4O45vmAV2Jhuvvb2gWPMcxWYJ4bEMuJD2qmmcumr6BTVmUtO3cYIh2NvwChBFu C5qAWcLsC+XRt0EBEEifxHmoa/DdPEQPWxGPA+ViGz3LlvKUvyq+WgGqvVwS/BRSzJoN mBBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=mQrorWM5XLVL2S5JUpX/SBfYfQjZLsQ7TWVuerVlGM8=; b=rAMXGbeqavrTi4b6KkX1oClnMlQswa+n+tGuPxB0Xf50q22hP0bzPEPg1E5a115k6u /2o28wnwkkjtw/E0KLZO4eXoXHB7DqvjciMnNv7MsF3YGvvjft+XuznnL02Gg25cjuuL lZJ/evJ53gdmNXVNDnEMKhzkt2Ge5qVYz8rIFzeF4/4I2cPi0CzKDVBdQ1O2SxawrQ+u DsLK3g8FRMn12rVYB514pqPBQ8SbDMV/EpqR07JLxlSparOtrjqRUYKkCTir6Lp2ODQw m+LTtcCjcgYwl+ysoAsSMDxEXtpdjkJdlf4X6sPGSBx5EeTcCc42zH6HsB2Q+qWHRND3 fbOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1-v6si1015724ple.262.2018.08.22.00.38.30; Wed, 22 Aug 2018 00:38:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728465AbeHVLBu (ORCPT + 32 others); Wed, 22 Aug 2018 07:01:50 -0400 Received: from mx.socionext.com ([202.248.49.38]:47182 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728264AbeHVLBN (ORCPT ); Wed, 22 Aug 2018 07:01:13 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 22 Aug 2018 16:37:32 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 4C96D180237; Wed, 22 Aug 2018 16:37:32 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 22 Aug 2018 16:37:32 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id C8D0B1A0E11; Wed, 22 Aug 2018 16:37:31 +0900 (JST) From: Kunihiko Hayashi To: Tejun Heo , Hans de Goede , Rob Herring , Mark Rutland , linux-ide@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH 10/14] ata: ahci_seattle: add second argument of ahci_platform_get_resources() Date: Wed, 22 Aug 2018 16:37:06 +0900 Message-Id: <1534923430-9692-11-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding a flag to indicate whether acqiring the optional resources as the second argument of ahci_platform_get_resources(), add the argument as initial value 0. Cc: Hans de Goede Signed-off-by: Kunihiko Hayashi --- drivers/ata/ahci_seattle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/ata/ahci_seattle.c b/drivers/ata/ahci_seattle.c index 1d31c0c..e57b6f9 100644 --- a/drivers/ata/ahci_seattle.c +++ b/drivers/ata/ahci_seattle.c @@ -164,7 +164,7 @@ static int ahci_seattle_probe(struct platform_device *pdev) int rc; struct ahci_host_priv *hpriv; - hpriv = ahci_platform_get_resources(pdev); + hpriv = ahci_platform_get_resources(pdev, 0); if (IS_ERR(hpriv)) return PTR_ERR(hpriv); From patchwork Wed Aug 22 07:37:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 144809 Delivered-To: patch@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp382949ljw; Wed, 22 Aug 2018 00:37:38 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwbuWzVYbmuP6olGSdsLvDvxGqu/NSS1u30tVhiY0YCW/L42pfnz6bjImo39sG+Xa6Yqf/v X-Received: by 2002:a62:9101:: with SMTP id l1-v6mr22063477pfe.226.1534923458718; Wed, 22 Aug 2018 00:37:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534923458; cv=none; d=google.com; s=arc-20160816; b=LKW9kQk7I7wKx3St4RYPwS1mePOWqfZ1ABYHsNn7wGhwQNjMt/gUQpvFTdZ//7dbrA d1PJD2Mt+n3jgJQrqi+veuiph3UNzUePlS5YBNkAfMtC2sqrVBz7WX6GdxY2uQ1e6Ikx 8PLc8BQu94UtBkTYNrTsw6zVOaAVOmwfZ9/PuHhOnxNrrJXgbz/XHmqORAZv37NKVIon cXolz4jLlS6PzFyomXTDvUu4J4/qvp6Faxqd5oEEz9SeLNwL4+EBqf71dmkWOx4g2jb1 v5eQJlhBBVw2lmjrynys6Qe4/C8n3AUpay98Yk7S5z/u8Nx0DayDwGk1432eKUsE4xtT glKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=YW9vr8Tg8doQnBxpn0zUbFzDWu6jmUV6q/JanWqWMCM=; b=f/h6ZNbwnGtJp6U3Z79f9xf81HtJpgFenIxuen2SnA4y7F2wm3975kiy7DB+XAkm4a sW1mi+dzSMeusu2gNTgF1IB7Z5FyQXwlma7Az2lPiDJSHoPaerbX3tG4YnGwkX8kcviy q/f8zp5yzv0xXBWLn9mv+QVOTmssxdZEWhulUlke/3WxXh4Hh8+JMNmlizLl6Yf0hh8L /jlV/R9I3101z9agb5i8lfbWyYwosW7hhVNEcK79yLqdCJBPWSEaffWTBhIvQva/0E5w MSnTEt11fRzI5m0DEBflPC1D9+usDMAN48hPEHH/vCRk3gK1gsOlJbiCFqvQgm3m/Ke/ 3ISw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10-v6si295120pgi.37.2018.08.22.00.37.38; Wed, 22 Aug 2018 00:37:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728437AbeHVLBQ (ORCPT + 32 others); Wed, 22 Aug 2018 07:01:16 -0400 Received: from mx.socionext.com ([202.248.49.38]:47195 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728364AbeHVLBP (ORCPT ); Wed, 22 Aug 2018 07:01:15 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 22 Aug 2018 16:37:32 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id CCE846062A; Wed, 22 Aug 2018 16:37:32 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 22 Aug 2018 16:37:32 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 0FBBA1A0E6F; Wed, 22 Aug 2018 16:37:32 +0900 (JST) From: Kunihiko Hayashi To: Tejun Heo , Hans de Goede , Rob Herring , Mark Rutland , linux-ide@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi , Patrice Chotard Subject: [PATCH 11/14] ata: ahci_st: add second argument of ahci_platform_get_resources() Date: Wed, 22 Aug 2018 16:37:07 +0900 Message-Id: <1534923430-9692-12-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding a flag to indicate whether acqiring the optional resources as the second argument of ahci_platform_get_resources(), add the argument as initial value 0. Cc: Hans de Goede Cc: Patrice Chotard Signed-off-by: Kunihiko Hayashi --- drivers/ata/ahci_st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/ata/ahci_st.c b/drivers/ata/ahci_st.c index bc345f2..21c5c44 100644 --- a/drivers/ata/ahci_st.c +++ b/drivers/ata/ahci_st.c @@ -156,7 +156,7 @@ static int st_ahci_probe(struct platform_device *pdev) if (!drv_data) return -ENOMEM; - hpriv = ahci_platform_get_resources(pdev); + hpriv = ahci_platform_get_resources(pdev, 0); if (IS_ERR(hpriv)) return PTR_ERR(hpriv); hpriv->plat_data = drv_data; From patchwork Wed Aug 22 07:37:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 144817 Delivered-To: patch@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp383390ljw; Wed, 22 Aug 2018 00:38:18 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyJMYOg0Ke5zapLBKD5/9WB/72TUduW78IbeOY5/r8ZqWKLfmSLtxBxOfvb+77Q4tHlXgj6 X-Received: by 2002:a17:902:a983:: with SMTP id bh3-v6mr53280914plb.245.1534923498249; Wed, 22 Aug 2018 00:38:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534923498; cv=none; d=google.com; s=arc-20160816; b=c5KEfbU4R+W6RB3LCeC4JUNcL0NBPdoaKKk9gv3RK05sOlVtmSOLL0IjlFB+4F1Ed5 Lm1qFgLzyuGQIY9e7nM3zfnoBN6FwokG2KavIhXvwjJV7ngegAe97dHRhHhaF2cuDBzP X07uUrPuvQRiNYAV8YDHlM7jYrTK1Zr6fRwOWjPju6iEAypnCcodYDTTvVFhmdGg0iz/ EuHVwOqMYFN+iW3LaDVH40qe/3Y+S6AN68gOjdhym6FYEEvNB5BpUhAaA4CPJSKFuiJp ePxvAX3MLtpl6wBp8Rl9RljyLOsKKGawm2W+D8qAjgXH2a8G3d7Eyk10Hp+LoMzZ5FDQ IDTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=y5o/755xEIu4f6tPcqai6yEtDLZ48zrz7GLWUUy4+7U=; b=nG3dLDi0xMGxlr2+nE+3EOOQPfxle7PHnhv/ldpGbbgA8hGQ4zuepSy9eeC7zySJY/ TTeBrxrQU7fWAvw1lc3L7FpKXvdeVozawuOFbduoLv9kNYM0xEPiBR6DvT2xYQ+9GFr4 oVxRZtgHkoJNBhKQjlA7HQ30w6Srmib5juWpsORwlbS5gwyph1uCivXJc5VQ6wBkPuhi CTja0cSlkmaeWdYg9ABGoOSMNXp38K5yvBORcia8442+z354WuijGEH+v6sQ1vD27k7H 0GOb5VljMR1zsmRZy3ziSpGZI96ENKgz0nsZ2LD8yLRIXRRXp8cq3JU3X6OaNcmccVep cBLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w190-v6si997732pgd.482.2018.08.22.00.38.17; Wed, 22 Aug 2018 00:38:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728501AbeHVLBu (ORCPT + 32 others); Wed, 22 Aug 2018 07:01:50 -0400 Received: from mx.socionext.com ([202.248.49.38]:47199 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728282AbeHVLBN (ORCPT ); Wed, 22 Aug 2018 07:01:13 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 22 Aug 2018 16:37:33 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 0F9276062A; Wed, 22 Aug 2018 16:37:33 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 22 Aug 2018 16:37:33 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 4D9481A0E11; Wed, 22 Aug 2018 16:37:32 +0900 (JST) From: Kunihiko Hayashi To: Tejun Heo , Hans de Goede , Rob Herring , Mark Rutland , linux-ide@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi , Maxime Ripard Subject: [PATCH 12/14] ata: ahci_sunxi: add second argument of ahci_platform_get_resources() Date: Wed, 22 Aug 2018 16:37:08 +0900 Message-Id: <1534923430-9692-13-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding a flag to indicate whether acqiring the optional resources as the second argument of ahci_platform_get_resources(), add the argument as initial value 0. Cc: Hans de Goede Cc: Maxime Ripard Signed-off-by: Kunihiko Hayashi --- drivers/ata/ahci_sunxi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/ata/ahci_sunxi.c b/drivers/ata/ahci_sunxi.c index b264374..631610b 100644 --- a/drivers/ata/ahci_sunxi.c +++ b/drivers/ata/ahci_sunxi.c @@ -181,7 +181,7 @@ static int ahci_sunxi_probe(struct platform_device *pdev) struct ahci_host_priv *hpriv; int rc; - hpriv = ahci_platform_get_resources(pdev); + hpriv = ahci_platform_get_resources(pdev, 0); if (IS_ERR(hpriv)) return PTR_ERR(hpriv);