Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2524388imm; Wed, 16 May 2018 14:27:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqiUuygFHT1md1/JFhJis5eqieCTVtdrNe/1SvVchghBk3AW9bpaWB4TTZLRnFvjb/m+CbE X-Received: by 2002:a17:902:3c5:: with SMTP id d63-v6mr2472776pld.163.1526506051032; Wed, 16 May 2018 14:27:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526506051; cv=none; d=google.com; s=arc-20160816; b=aJsVClZ4h2OqKuSImILc8iDjDa6reVdKXmGIPN7JxoeSRYxdlw02N66+CPdrr8sBSs Ik3c6y4M0ugj6whRNgrKh+WRYHG5xhLCtSLMfLzNCdJA64V6pdYMxHeqadFd4qHQZbKg p70hB+SXzomE4Y6Zb4OBjssItDa7cigp8t5K0EaTfxdAn/XtfHK/8Bm2Pd3HcaevqzY5 wiV+BlUq0cKvmPdMmlgFZhvwoGHPVAM37ZbobuLmJqeSxIEwkmPcw5pvI8249Wcn0oEZ 3ezuzUrDAYnQ19iR+zjgjTN4H46RhuVNxX8b44dPBHDk93F6235xSP+dfaPMz3SLH6AM 0gag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=zXmEr5KNbxy4gy3o4Ntgtn4TI5LRYd8J7+xZ79fXPTY=; b=SnJJipGzeCqKNdk7n0Nwnc3lw0uxnmfqI6sUnVpIXjrJ1B13XxmyMkepH81n8jCmSZ XfKikH/bvelejYSPE9V4gXL2OHCED3U9T6lx2HTacq2o/rd5lKzFk0w9lG0VYDUkNZX6 nsVJ6g32R/o2zvzGD/EzfR7SFI9Kt7XNwHcClS/yNnnYyT2EUVgrRcmhqzzjclC3pwdz Ea2Yie3Gk3CLDkqRk45EoLlyFedZn+Jr5oD5zQaT1zioP92q3NjeIglTIOyRuptZLrrO Gfu1cAn31eaf74FN/fcySfTuH7w4PPIcKjtsQCBrDqxv6XGlyaFPYSqX7LE9lO2ma9QL lj4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=YbI0TXmX; dkim=pass header.i=@codeaurora.org header.s=default header.b=YbI0TXmX; 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 77-v6si3428995pfz.334.2018.05.16.14.27.15; Wed, 16 May 2018 14:27: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; dkim=pass header.i=@codeaurora.org header.s=default header.b=YbI0TXmX; dkim=pass header.i=@codeaurora.org header.s=default header.b=YbI0TXmX; 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 S1751893AbeEPV1G (ORCPT + 99 others); Wed, 16 May 2018 17:27:06 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:37176 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751132AbeEPV1F (ORCPT ); Wed, 16 May 2018 17:27:05 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id CDC18609D1; Wed, 16 May 2018 21:27:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526506024; bh=Ns0WzpisCtDg/CXd8iwyRk70Elu/FcKMR7AhQifjG+A=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YbI0TXmXd8Yd1isq2oz1pqkZKZcxObEb9vyU+9A4uGIOspoGxPbfeOh1mgdmTaxSB 15b0gFi7odjsbTVl5isRh2pic2DTkRPLOnQBqtaf77Sl73KcDJQwtjWgcYL9UTnojC QgfxedaLFsJSo9jnJlxvaCvODclSuXHpx2Cz0aiM= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 1C9EB602BA; Wed, 16 May 2018 21:27:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526506024; bh=Ns0WzpisCtDg/CXd8iwyRk70Elu/FcKMR7AhQifjG+A=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YbI0TXmXd8Yd1isq2oz1pqkZKZcxObEb9vyU+9A4uGIOspoGxPbfeOh1mgdmTaxSB 15b0gFi7odjsbTVl5isRh2pic2DTkRPLOnQBqtaf77Sl73KcDJQwtjWgcYL9UTnojC QgfxedaLFsJSo9jnJlxvaCvODclSuXHpx2Cz0aiM= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 16 May 2018 14:27:04 -0700 From: Subhash Jadavani To: Alim Akhtar Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, vivek.gautam@codeaurora.org, vinholikatti@gmail.com, olof@lixom.net Subject: Re: [PATCH 4/4] scsi: ufs: make ufshcd_config_pwr_mode of non-static func In-Reply-To: <1525601658-31989-5-git-send-email-alim.akhtar@samsung.com> References: <1525601658-31989-1-git-send-email-alim.akhtar@samsung.com> <1525601658-31989-5-git-send-email-alim.akhtar@samsung.com> Message-ID: X-Sender: subhashj@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-05-06 03:14, Alim Akhtar wrote: > 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 Looks good to me. Reviewed-by: Subhash Jadavani -- The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project