Received: by 10.192.165.148 with SMTP id m20csp1951731imm; Sun, 6 May 2018 03:28:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoK9v4nOXc7J6wCQ1KGQhacFK8manHO5IyGHPnVYj2AsvCBnsVRbI9PhE2ZgpSYRuJTMX8x X-Received: by 2002:a65:4acd:: with SMTP id c13-v6mr17522470pgu.32.1525602485703; Sun, 06 May 2018 03:28:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525602485; cv=none; d=google.com; s=arc-20160816; b=cthWSmvRkv7BM92etAR5FCesTIFOpnFfAsETxi5heHpPzrSlfQz3qxWAZiGdFBQ3kR LmOm7Tfa5sx1JeCuqqdU3IFPoDPaTWeVKOGImFmrjpACQjGsGLgNhXXYjesSovgF6KA3 F3tuhxeOjq57f+zW/+Q3nVrKUrdgjTo3z4hI2jD4rBfzcqTnl4Dzy6uBnYFuMpTljiNz TZpVbMrgTNiRbdwgWNUUteQbzlvtnCuPZuF29UGRtPXFU1UZPpk/dkpjd1QcV2BaCQ+C JYennGNr7y+F/epdgzBYAOtEHVBQWMOetXVlkQ8N0ChpiNyV9vSbuX2TuzMRWAslqJcB pmWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=UXBaXj0j7QNoaMAN1zviUEaHCyc8U0wamSA1iPxnjOQ=; b=qOVP3XAOw8iz2Buz3hfiSsDgnFgZ9QeUSw8yGO8U27I/PiR8ETbzGptM3lvSriu+8M RH8y2R5RlmQGQQ2M7MG5YGas6H1D37Tib0WE0qZWUg5xuYJqzxctGY5lixQhcD5c0ktF 8Neo7Gr45MourbfVGNjczJ1i4cIOzMqwhDsfaFtpLmxy7Mi0jm8xa7YT2hhKFvFphUcp Dt+6Mk0wfqwLpIMzIWQzVJy4POsNiMOCTT0W1pKxi5fdT9Rv5EFOGfIet87bdJw7yiKl LEa/4P5LFCG+Khx9BGzNp3y6MCknrPjRSMGhQYRKsSeidg8Mn3ibZyl36QwH0Fvl6lVd u8xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=qxYSKie8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r9-v6si19952160plo.442.2018.05.06.03.27.51; Sun, 06 May 2018 03:28: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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=qxYSKie8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751807AbeEFK0w (ORCPT + 99 others); Sun, 6 May 2018 06:26:52 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:35470 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751766AbeEFK0r (ORCPT ); Sun, 6 May 2018 06:26:47 -0400 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20180506102645epoutp022195aee57777b7a4b5283a1a102c2022~sB04JyKxY0201502015epoutp02U; Sun, 6 May 2018 10:26:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20180506102645epoutp022195aee57777b7a4b5283a1a102c2022~sB04JyKxY0201502015epoutp02U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1525602405; bh=UXBaXj0j7QNoaMAN1zviUEaHCyc8U0wamSA1iPxnjOQ=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=qxYSKie88BhZ7Opv/+zkoWyCWJFOyO9j2oPFecuDmM2Oe3Xt/8svRCYxbgpnuD4aa TzsPF6pgkGDEjalqoQCXMhysq2F3nJ7K6KnIqq00OGhq2u9NW4RIpyYxta9cT4l2Hs aJDDtVrrDuHJD4Ki0GrOcKpa/DenOXbXIXaDzrIw= Received: from epsmges2p4.samsung.com (unknown [182.195.42.72]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20180506102644epcas2p389ad83ede960cdf0e035fbb326f71dbd~sB03ICT5b3182631826epcas2p3a; Sun, 6 May 2018 10:26:44 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 73.7B.04079.468DEEA5; Sun, 6 May 2018 19:26:44 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20180506102643epcas2p24ed80d7ede859db73c2595724d9c2414~sB01-UEgl1183411834epcas2p25; Sun, 6 May 2018 10:26:43 +0000 (GMT) X-AuditID: b6c32a48-c31ff70000000fef-33-5aeed864c00e Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id DB.59.03817.268DEEA5; Sun, 6 May 2018 19:26:43 +0900 (KST) Received: from localhost.localdomain ([107.108.73.28]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P8A0043CYBXSQ60@mmp2.samsung.com>; Sun, 06 May 2018 19:26:42 +0900 (KST) From: Alim Akhtar To: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, vivek.gautam@codeaurora.org, subhashj@codeaurora.org, vinholikatti@gmail.com, olof@lixom.net, alim.akhtar@samsung.com Subject: [PATCH 4/4] scsi: ufs: make ufshcd_config_pwr_mode of non-static func Date: Sun, 06 May 2018 15:44:18 +0530 Message-id: <1525601658-31989-5-git-send-email-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <1525601658-31989-1-git-send-email-alim.akhtar@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrGIsWRmVeSWpSXmKPExsWy7bCmmW7KjXdRBjNnilg8mLeNzWLVxDyL y7vmsFl0X9/BZrH8+D8mi1PXP7NZ3Fi8k81ix8IqixM/dzA7cHpc7utl8tg56y67x4NDm1k8 rpxoYvX4+PQWi0ffllWMHp83yQWwR3HZpKTmZJalFunbJXBl7Gq/yFZwQLBi57OUBsZHfF2M nBwSAiYSTWcOM3YxcnEICexglPi+aCUzhPOdUeL10e8sMFXvfr9jh0hsYJRYeXIdK4Tzg1Fi /fO57CBVbALaEnenb2ECsUUEbCTO33zABFLELLCJUWLBxOVsIAlhgQCJ1msTwcayCKhKrHrz gBnE5hVwl7ix8xgjxDo5iZvnOsHinAIeEjtOd7KBDJIQWMImMe/hblaIIheJ2QvfskPYwhKv jm+BsqUlnq3aCDUoW+LD8ZPMEHaNxKyLvWwQtr3EgStzwI5gFuCT6Dj8F6iXAyjOK9HRJgRR 4iEx/w/MeEeJg4v3sEB8PJtR4tzXhywTGKUWMDKsYhRLLSjOTU8tNiow0StOzC0uzUvXS87P 3cQIjl0tjx2MB875HGIU4GBU4uGdwPEuSog1say4MvcQowQHs5IIb+B6oBBvSmJlVWpRfnxR aU5q8SFGaQ4WJXHeBt8zUUIC6YklqdmpqQWpRTBZJg5OqQbGPUVds65Ind0eUDDx9J5nPTqf ooxKJyR7rwp91PTpvlqWeoLuJ53XCXX6x3XDJrL6VLrMNL7n4uMyV9r9Zo20oQzj1MjZDBJs H5zO/mdsMLoWd16ojWcr19pChbUbgvUCM/34M7T+aX29t++U0+TjHpUnWKbc5/A65RpZs6NX 5eKH+XIRz28qsRRnJBpqMRcVJwIA9Pqd59kCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHLMWRmVeSWpSXmKPExsVy+t9jQd3kG++iDLp6WS0ezNvGZrFqYp7F 5V1z2Cy6r+9gs1h+/B+Txanrn9ksbizeyWaxY2GVxYmfO5gdOD0u9/UyeeycdZfd48GhzSwe V040sXp8fHqLxaNvyypGj8+b5ALYo7hsUlJzMstSi/TtErgydrVfZCs4IFix81lKA+Mjvi5G Tg4JAROJd7/fsXcxcnEICaxjlPj38ASU84NR4kDnHGaQKjYBbYm707cwgdgiAjYS528+YAIp YhbYxCgx++l5FpCEsICfxKYl09hBbBYBVYlVbx6ANfMKuEvc2HmMEWKdnMTNc51gcU4BD4kd pzvZQGwhoJqJr2+zTmDkWcDIsIpRMrWgODc9t9iowCgvtVyvODG3uDQvXS85P3cTIzDUth3W 6t/B+HhJ/CFGAQ5GJR7eCRzvooRYE8uKK3MPMUpwMCuJ8AauBwrxpiRWVqUW5ccXleakFh9i lOZgURLn5c8/FikkkJ5YkpqdmlqQWgSTZeLglGpgjG3X7J65R/w58+abP+yL7rSHS92oEJ48 9UCIquGjSYlz4/fHBOd9/cShd2HXw2/LmvY4GW6ZeYPjbs57rqMsYXvYLabely57faw3yMKv nmkt68uyEim/jvNmjOEsxY1sShM86ixcvNKLfxh8N96yjW/qh//lRq98GljmJ/Pu7Jp3LcG2 aPUuJZbijERDLeai4kQAvGWYbjECAAA= X-CMS-MailID: 20180506102643epcas2p24ed80d7ede859db73c2595724d9c2414 X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20180506102643epcas2p24ed80d7ede859db73c2595724d9c2414 X-RootMTR: 20180506102643epcas2p24ed80d7ede859db73c2595724d9c2414 References: <1525601658-31989-1-git-send-email-alim.akhtar@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This makes ufshcd_config_pwr_mode non-static so that other vendors like exynos can use the same. Signed-off-by: Seungwon Jeon Signed-off-by: Alim Akhtar --- drivers/scsi/ufs/ufshcd.c | 5 ++--- drivers/scsi/ufs/ufshcd.h | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 5bfd385..68aefcd 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -233,8 +233,6 @@ static void ufshcd_suspend_clkscaling(struct ufs_hba *hba); static void __ufshcd_suspend_clkscaling(struct ufs_hba *hba); static int ufshcd_scale_clks(struct ufs_hba *hba, bool scale_up); static irqreturn_t ufshcd_intr(int irq, void *__hba); -static int ufshcd_config_pwr_mode(struct ufs_hba *hba, - struct ufs_pa_layer_attr *desired_pwr_mode); static int ufshcd_change_power_mode(struct ufs_hba *hba, struct ufs_pa_layer_attr *pwr_mode); static inline bool ufshcd_valid_tag(struct ufs_hba *hba, int tag) @@ -3969,7 +3967,7 @@ static int ufshcd_change_power_mode(struct ufs_hba *hba, * @hba: per-adapter instance * @desired_pwr_mode: desired power configuration */ -static int ufshcd_config_pwr_mode(struct ufs_hba *hba, +int ufshcd_config_pwr_mode(struct ufs_hba *hba, struct ufs_pa_layer_attr *desired_pwr_mode) { struct ufs_pa_layer_attr final_params = { 0 }; @@ -3987,6 +3985,7 @@ static int ufshcd_config_pwr_mode(struct ufs_hba *hba, return ret; } +EXPORT_SYMBOL_GPL(ufshcd_config_pwr_mode); /** * ufshcd_complete_dev_init() - checks device readiness diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h index 013a07e..b42a5a3 100644 --- a/drivers/scsi/ufs/ufshcd.h +++ b/drivers/scsi/ufs/ufshcd.h @@ -805,6 +805,8 @@ extern int ufshcd_dme_set_attr(struct ufs_hba *hba, u32 attr_sel, u8 attr_set, u32 mib_val, u8 peer); extern int ufshcd_dme_get_attr(struct ufs_hba *hba, u32 attr_sel, u32 *mib_val, u8 peer); +extern int ufshcd_config_pwr_mode(struct ufs_hba *hba, + struct ufs_pa_layer_attr *desired_pwr_mode); /* UIC command interfaces for DME primitives */ #define DME_LOCAL 0 -- 2.7.4