Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5918ybl; Tue, 7 Jan 2020 13:01:42 -0800 (PST) X-Google-Smtp-Source: APXvYqwLQSqwEwdynLCF/yF5JuXzPN0PcVgNY9BmAY3JSOzuc7JJSoOLre6/X0YaNXXY9iycc4Lh X-Received: by 2002:aca:4d58:: with SMTP id a85mr290427oib.35.1578430902326; Tue, 07 Jan 2020 13:01:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578430902; cv=none; d=google.com; s=arc-20160816; b=bhzgPYy2L2FVlckmopOljKQ9UT6ecbfxyFryC5SA4T0oiRs0INaIJ1za3hlS2milcu 2CGOeczG4nsp/ZAq7w6rV9SGzPJR+pIhhbSNtREi0laF2BUjlFGJ5kA3Y5nvlA5jr8/3 0YCvD8clAqHE830gLJJ2bo/f2+uQDsHn06ft76nsgaHYbJgYZOK4SkKlTLt9EU0cf+T1 o1deG/JLyEtbhAvfVeNZKE92hzSJl5XN0aUS4Z+uRJ9xuMgUH1YcflhiqDV7pizWeqUy SqkohENx2E3ReE8oW4Wv5ZJKUvfLwG9LM7vrn01nM1yoFG9ecKd0LXNnDERVJMkpSVAI ZhFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GK6uvt8oXN6YHVM3FPqBQEv9QANxJ5bd0UjivdIA+qg=; b=pbqGbnPfnbWt3sKAZ4+BmrRDlFtv0kWBLlk8CnPAafthSBatumbwc++BixAikX0hfU SNg16F4UiK1tZ97tchPvnm5hhFJF/VLl33zbacaoLU4fxrle5psSX2Cs4g2+PmXT3gXm 7Y3FvV3G919mxPzfmrpb8xKmicdilNvbxCcA5dn7wDSAfairlBCxxJeEMaZNs04ghCds EPUnUHYc7Y75XKzAg6EWPKR9LbG2p+uO4tL9l9ore1HG7etKO2KasizfKf5VSPVfjREV Yw4Wnbh3RchYFt3/HAP86QvxexJyJx/Vdake6QLwDM85Ruv4wkr85hS4v+kXV8cH7mow Vw8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=A8iXkoFq; 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 x3si592282oic.251.2020.01.07.13.01.28; Tue, 07 Jan 2020 13:01:42 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=A8iXkoFq; 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 S1727339AbgAGVAR (ORCPT + 99 others); Tue, 7 Jan 2020 16:00:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:34336 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728267AbgAGVAK (ORCPT ); Tue, 7 Jan 2020 16:00:10 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5FA532081E; Tue, 7 Jan 2020 21:00:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578430809; bh=Keft5cNz48ZkxfUyWXWdQD2X5bR09IZdkkQriQJCqzs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A8iXkoFqePqcJHpO+KJ3yNRmtTQ5F+vNLwjHH8lVKpcp7/dm/t2Osq1CMOfJ8CIW6 NLX1hADxpZKL3+pOGzOlHqnwCj96+dWLF0iAJwHdjDAHsnjOKhQpUXm2g3BCef+ihG OzHH+PiohgmGcss/KKjCyCcY3oQrri2/FucKBHzk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Florian Fainelli , Jens Axboe Subject: [PATCH 5.4 105/191] ata: libahci_platform: Export again ahci_platform_able_phys() Date: Tue, 7 Jan 2020 21:53:45 +0100 Message-Id: <20200107205338.610644493@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200107205332.984228665@linuxfoundation.org> References: <20200107205332.984228665@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Florian Fainelli commit 84b032dbfdf1c139cd2b864e43959510646975f8 upstream. This reverts commit 6bb86fefa086faba7b60bb452300b76a47cde1a5 ("libahci_platform: Staticize ahci_platform_able_phys()") we are going to need ahci_platform_{enable,disable}_phys() in a subsequent commit for ahci_brcm.c in order to properly control the PHY initialization order. Also make sure the function prototypes are declared in include/linux/ahci_platform.h as a result. Cc: stable@vger.kernel.org Reviewed-by: Hans de Goede Signed-off-by: Florian Fainelli Signed-off-by: Jens Axboe Signed-off-by: Greg Kroah-Hartman --- drivers/ata/libahci_platform.c | 6 ++++-- include/linux/ahci_platform.h | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) --- a/drivers/ata/libahci_platform.c +++ b/drivers/ata/libahci_platform.c @@ -43,7 +43,7 @@ EXPORT_SYMBOL_GPL(ahci_platform_ops); * RETURNS: * 0 on success otherwise a negative error code */ -static int ahci_platform_enable_phys(struct ahci_host_priv *hpriv) +int ahci_platform_enable_phys(struct ahci_host_priv *hpriv) { int rc, i; @@ -74,6 +74,7 @@ disable_phys: } return rc; } +EXPORT_SYMBOL_GPL(ahci_platform_enable_phys); /** * ahci_platform_disable_phys - Disable PHYs @@ -81,7 +82,7 @@ disable_phys: * * This function disables all PHYs found in hpriv->phys. */ -static void ahci_platform_disable_phys(struct ahci_host_priv *hpriv) +void ahci_platform_disable_phys(struct ahci_host_priv *hpriv) { int i; @@ -90,6 +91,7 @@ static void ahci_platform_disable_phys(s phy_exit(hpriv->phys[i]); } } +EXPORT_SYMBOL_GPL(ahci_platform_disable_phys); /** * ahci_platform_enable_clks - Enable platform clocks --- a/include/linux/ahci_platform.h +++ b/include/linux/ahci_platform.h @@ -19,6 +19,8 @@ struct ahci_host_priv; struct platform_device; struct scsi_host_template; +int ahci_platform_enable_phys(struct ahci_host_priv *hpriv); +void ahci_platform_disable_phys(struct ahci_host_priv *hpriv); int ahci_platform_enable_clks(struct ahci_host_priv *hpriv); void ahci_platform_disable_clks(struct ahci_host_priv *hpriv); int ahci_platform_enable_regulators(struct ahci_host_priv *hpriv);