From patchwork Wed Aug 22 12:13: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: 144830 Delivered-To: patch@linaro.org Received: by 2002:a50:c01b:0:0:0:0:0 with SMTP id r27-v6csp618123edb; Wed, 22 Aug 2018 05:13:39 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYFF3A0tPdSzfi53OtoIREW383rPT+VeKu6MnTsLHmTUBZIwywzyacYyD2ngrEg0Ekh7YQU X-Received: by 2002:a17:902:bd87:: with SMTP id q7-v6mr6660742pls.254.1534940019043; Wed, 22 Aug 2018 05:13:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534940019; cv=none; d=google.com; s=arc-20160816; b=JoiWitCIDAE9ie4vBwyi96t94ggQLNth9UJTsIWfAGDdBm75TQdjGdYi6RCFh7AOYi bvFOKeejcUQ2w0nMM8h70kTCmjxQS3AGcT5p1THPkaWpbZRwObX28FhfHsROs1ZgD2bE rVDLPUy+PhFFKjtL2H+K97BVtm0XRWwM92q+z9SIsZqM4dMQLKeLX83aAJ4P9xpuUwX6 0SE47GLhBbdzkYenByZj/LIDRn4t47vt2AcaL3OrGubzqn9Ypn1vpyjCFJL0UIWlVm+x 3n77fQZf3ue727+tfTruMS4F7FzwywBSlTJg+4pZC8HeLRPKzQX/mtdH+2Au7cEJ/+SY y2PQ== 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=y4HYAmRK8katSTUiTWv+VTpZrdWqdK/GJ8gwUJtQA7o=; b=ve4Dfby184hHCFIGoZQxI55SZl/Sku/sifEu7BkeRTi1eY7SxWo83wJ0XRLrO/7567 iVNOWz8lLxeELGn2/1zDccW62/o55Om3u3ErImvf3s/VIYEVdi58RPnkfITN/Demvv0c 8+OcZfL2els4XxxYiZFV9YUh8GwG6wBNgw9pV2l3thnbx1Tj4m2KbGPOg4xKodiOaRTn lBEpGg2Zn1iK34O5ttJg0W2eC9aVPLaU9RGkTzwO+f9JNwpfW8YMWZ5END7LlRijBkP9 YqlBOQc5KfBNtbdYdp/JATj7bCGFoAi65OWDmy42+Y8eJtIACsp1v04WzgppAYs3yKUj 2SpA== 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 w4-v6si1574960pgw.478.2018.08.22.05.13.38; Wed, 22 Aug 2018 05:13:39 -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 S1728851AbeHVPiR (ORCPT + 32 others); Wed, 22 Aug 2018 11:38:17 -0400 Received: from mx.socionext.com ([202.248.49.38]:50748 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728546AbeHVPiK (ORCPT ); Wed, 22 Aug 2018 11:38:10 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 22 Aug 2018 21:13:29 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 2822B600AA; Wed, 22 Aug 2018 21:13:29 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 22 Aug 2018 21:13:29 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 78DA01A0E11; Wed, 22 Aug 2018 21:13:28 +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 v2 3/3] ata: ahci_platform: enable to get and control reset Date: Wed, 22 Aug 2018 21:13:03 +0900 Message-Id: <1534939983-16264-4-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534939983-16264-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1534939983-16264-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 Unlike SoC-specific driver, generic ahci_platform driver doesn't have any chances to control resets. This adds AHCI_PLATFORM_GET_RESETS to ahci_platform_get_resources() on the generic driver to enable reset control support. Suggested-by: Hans de Goede Cc: Thierry Reding Signed-off-by: Kunihiko Hayashi --- drivers/ata/ahci_platform.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index 5709273..ddd9308 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, 0); + hpriv = ahci_platform_get_resources(pdev, + AHCI_PLATFORM_GET_RESETS); if (IS_ERR(hpriv)) return PTR_ERR(hpriv);