Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp15639ybl; Tue, 7 Jan 2020 13:10:49 -0800 (PST) X-Google-Smtp-Source: APXvYqzV5Dl1JElB+rqwddhdfUHPhcfjBgMovXFHDjTIZkteN3RFPNKEL3Y05G8jq0nEsDe+Zfw1 X-Received: by 2002:a05:6808:315:: with SMTP id i21mr304415oie.139.1578431449721; Tue, 07 Jan 2020 13:10:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578431449; cv=none; d=google.com; s=arc-20160816; b=t+NVzPNLREN1/6uVWOxCwKnBKfFjKpjZYGVkcKSwWhqjVKaVbwCapmCq+8VffsB+Qc 9ANm+B+2amMKhg2GgodozCd7/d8I9iNvjOCj0z22MlvLVp53OeclSdoRvPuN1KU5UzK6 7kf8rlswDGPlcEsHOU1UdAgz9Z9NwpKatuvK8dGYxjkuJa+wSFZ277acCvAM3PaAkHTP AGbhm7H9z2Ny/y0ALWRKfNukmaNtsDFEZFO7PxUG84wCnDs5jo4IEpqsj4ZSQ5uKaeio Zrpr59DroOdJllplnMOuOaBrbQaJoBxFE1U34A6XQzfuAV9thGO3PTfdQSWNfXUksNu/ EM7Q== 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=J1y6yg4XKP6ztv/y8t364yPBAvskO4Xi7i5CehOh4Zs=; b=L1zddWyefxCLIZV1cYtOP15pmTy+57DbGH1WjYtzc7hm2i+fqbfYc20WH1J6Q3xvS7 ZLYc/do2jWKq8rN9wC3XjETbXqsq/OMg7/jKJTFbLlzkv+Yq2kLN1VxdOEtEo8fxgjsd 942skX09M3p28W+C4GFXzXgG+7Rhd0JgY7K4lE/dv3WCFQL3hv1joET1kpDfIbuwEHCB algXftk3MunJvMXeeog4gJlYt6C/W3F3FzuAkoSc0VNmeueC1HcAtOHZMxiLP3gSuhV1 ZrehnxfXGduajOyDVhtjpMWIWllYSOlT48WbdMXge8NAo76O/9GZrdKvUWzS4JJCGUvV YIJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tQRVmlum; 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 j18si545553otq.275.2020.01.07.13.10.36; Tue, 07 Jan 2020 13:10:49 -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=tQRVmlum; 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 S1729741AbgAGVJu (ORCPT + 99 others); Tue, 7 Jan 2020 16:09:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:35664 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729557AbgAGVJq (ORCPT ); Tue, 7 Jan 2020 16:09:46 -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 9FA812087F; Tue, 7 Jan 2020 21:09:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578431386; bh=vcovTOHbKP78JFWf13jdL/gXq0Zxg4qPHG5JDYfThhw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tQRVmluml1UvUCs2DjNUllA3+SmQekbY/g5kQmLntO3l94535fSj36g7g9uu36kLx Dp+gq/5mccUeClCed4G8f6/ACFGxkZd+ztK4RPnr3YGg1uyVXhDWiWhcuDc8rF+4Un qsqE96ciKixNO6dviWgfXo3pSJwqEqpf6TXImtOA= 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 4.14 36/74] ata: libahci_platform: Export again ahci_platform_able_phys() Date: Tue, 7 Jan 2020 21:55:01 +0100 Message-Id: <20200107205206.461044849@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200107205135.369001641@linuxfoundation.org> References: <20200107205135.369001641@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 @@ -46,7 +46,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; @@ -71,6 +71,7 @@ disable_phys: } return rc; } +EXPORT_SYMBOL_GPL(ahci_platform_enable_phys); /** * ahci_platform_disable_phys - Disable PHYs @@ -78,7 +79,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; @@ -87,6 +88,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 @@ -23,6 +23,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);