Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2959565ybl; Mon, 20 Jan 2020 12:50:26 -0800 (PST) X-Google-Smtp-Source: APXvYqzFgfCb6lPUf/8N1xuBTfIfy3HZFPPvWyug7EDrL/7KKSVWJGfhEMmEUWEsR+V5PGGn/dFK X-Received: by 2002:aca:a883:: with SMTP id r125mr586747oie.56.1579553425882; Mon, 20 Jan 2020 12:50:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579553425; cv=none; d=google.com; s=arc-20160816; b=u/j5jN88RILYjEdgZhuJFqhMJ66r0m4nAJBgmNLJK7gvQurrcIfcne9Dc+Hds10J9n gWvxVgYkfT99rrJm5KDDecIl9W5KhfXh93X8AV9Xhj6iXRYRVVQ3lklhVknGDgS5NyaC fDNq9H7dUyI1B00+OfbCdOnH6nvQHQ+0tS36lfscajFgiUQxRc0Ixv8yCmoSZ2QNoVMq zgjnsgs25YSM/cJQV+gjOcq993zns7q6eQYhL38sYG+WeFQdYZ9Z1G0NRXb+rpSUxwkr 5CzesrIiZR+iwkeySh/mRHNYByn1ZfyJ48qUrqypQvfIU2AQ5lt0iVsrvcIT781nd86t Q8jQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=kcD4cIT6TO+GhmHS0MBwC7/uH5JRJvAdsZCjW78zRow=; b=fy9Y+nttqlCqXv0Ifn1QVRTKjmNyvXH2WpG58nTk3YPW+eobH/Y+MbO/OwEIZxp6Zw ofsGXDaP07audtxiRzLlaIxMPBhkr1FswC4kLrwbt+Ipvpbg1KrZRWnCdYsMU+wOjGEa l5FPAsg/QtkehcLhoSlQzwhO3U20ruKruBSH3SOqlp+swo0k9GZ+60Y54hhNGsS+x/Fy DjqqvRuplnsD2GzS+bO9L1QWbsXY8Xpx4+yiVFnXyjTO0qDocv7QOR5JKSU9AF3Bx9OH DKLwmEFjJ+qxqUvh5UQ4YMV/NS+NfllvpLsl0E6BisxU+1sJ6pa56yCTwjk3ab8U5ZUU I7iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=JdY1j6tK; 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 v23si19827247otk.321.2020.01.20.12.50.14; Mon, 20 Jan 2020 12:50:25 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=JdY1j6tK; 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 S1726954AbgATUtU (ORCPT + 99 others); Mon, 20 Jan 2020 15:49:20 -0500 Received: from mail25.static.mailgun.info ([104.130.122.25]:50605 "EHLO mail25.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726752AbgATUtT (ORCPT ); Mon, 20 Jan 2020 15:49:19 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1579553359; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=kcD4cIT6TO+GhmHS0MBwC7/uH5JRJvAdsZCjW78zRow=; b=JdY1j6tKq24IxKKZbzo+JTZK/Vn3YR96Cb0XuWbqUDEspml374oG3ZvqRfawVIAS5jfb8HWX ewmCpzP1Oa0MIDxTDmZJYSgyp1cCLVBXScTVkYjH+NZPhKbThAqpYUPFKgPynNVyKn3Vrdct g+gMk3IrS27et5yx4qmxpPnbw/E= X-Mailgun-Sending-Ip: 104.130.122.25 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e26124c.7f522c449378-smtp-out-n02; Mon, 20 Jan 2020 20:49:16 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 8D3E3C4479F; Mon, 20 Jan 2020 20:49:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [10.46.161.159] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: asutoshd) by smtp.codeaurora.org (Postfix) with ESMTPSA id 92D2AC43383; Mon, 20 Jan 2020 20:49:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 92D2AC43383 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=asutoshd@codeaurora.org Subject: Re: [PATCH v1 2/3] scsi: ufs: export some functions for vendor usage To: Stanley Chu , linux-scsi@vger.kernel.org, martin.petersen@oracle.com, avri.altman@wdc.com, alim.akhtar@samsung.com, jejb@linux.ibm.com Cc: beanhuo@micron.com, cang@codeaurora.org, matthias.bgg@gmail.com, bvanassche@acm.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kuohong.wang@mediatek.com, peter.wang@mediatek.com, chun-hung.wu@mediatek.com, andy.teng@mediatek.com References: <20200117035108.19699-1-stanley.chu@mediatek.com> <20200117035108.19699-3-stanley.chu@mediatek.com> From: "Asutosh Das (asd)" Message-ID: <4dc0cb58-13f6-0678-dcf2-6b0394200157@codeaurora.org> Date: Mon, 20 Jan 2020 12:49:13 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200117035108.19699-3-stanley.chu@mediatek.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/16/2020 7:51 PM, Stanley Chu wrote: > Export below functions for vendor usage, > > int ufshcd_hba_enable(struct ufs_hba *hba); > int ufshcd_make_hba_operational(struct ufs_hba *hba); > int ufshcd_uic_hibern8_exit(struct ufs_hba *hba); > > Signed-off-by: Stanley Chu > --- LGTM. Reviewed-by: Asutosh Das > drivers/scsi/ufs/ufshcd.c | 11 +++++++---- > drivers/scsi/ufs/ufshcd.h | 3 +++ > 2 files changed, 10 insertions(+), 4 deletions(-) > > diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c > index bea036ab189a..1168baf358ea 100644 > --- a/drivers/scsi/ufs/ufshcd.c > +++ b/drivers/scsi/ufs/ufshcd.c > @@ -250,7 +250,6 @@ static int ufshcd_probe_hba(struct ufs_hba *hba); > static int __ufshcd_setup_clocks(struct ufs_hba *hba, bool on, > bool skip_ref_clk); > static int ufshcd_setup_clocks(struct ufs_hba *hba, bool on); > -static int ufshcd_uic_hibern8_exit(struct ufs_hba *hba); > static int ufshcd_uic_hibern8_enter(struct ufs_hba *hba); > static inline void ufshcd_add_delay_before_dme_cmd(struct ufs_hba *hba); > static int ufshcd_host_reset_and_restore(struct ufs_hba *hba); > @@ -3865,7 +3864,7 @@ static int ufshcd_uic_hibern8_enter(struct ufs_hba *hba) > return ret; > } > > -static int ufshcd_uic_hibern8_exit(struct ufs_hba *hba) > +int ufshcd_uic_hibern8_exit(struct ufs_hba *hba) > { > struct uic_command uic_cmd = {0}; > int ret; > @@ -3891,6 +3890,7 @@ static int ufshcd_uic_hibern8_exit(struct ufs_hba *hba) > > return ret; > } > +EXPORT_SYMBOL_GPL(ufshcd_uic_hibern8_exit); > > void ufshcd_auto_hibern8_update(struct ufs_hba *hba, u32 ahit) > { > @@ -4162,7 +4162,7 @@ static int ufshcd_complete_dev_init(struct ufs_hba *hba) > * > * Returns 0 on success, non-zero value on failure > */ > -static int ufshcd_make_hba_operational(struct ufs_hba *hba) > +int ufshcd_make_hba_operational(struct ufs_hba *hba) > { > int err = 0; > u32 reg; > @@ -4208,6 +4208,7 @@ static int ufshcd_make_hba_operational(struct ufs_hba *hba) > out: > return err; > } > +EXPORT_SYMBOL_GPL(ufshcd_make_hba_operational); > > /** > * ufshcd_hba_stop - Send controller to reset state > @@ -4285,7 +4286,7 @@ static int ufshcd_hba_execute_hce(struct ufs_hba *hba) > return 0; > } > > -static int ufshcd_hba_enable(struct ufs_hba *hba) > +int ufshcd_hba_enable(struct ufs_hba *hba) > { > int ret; > > @@ -4310,6 +4311,8 @@ static int ufshcd_hba_enable(struct ufs_hba *hba) > > return ret; > } > +EXPORT_SYMBOL_GPL(ufshcd_hba_enable); > + > static int ufshcd_disable_tx_lcc(struct ufs_hba *hba, bool peer) > { > int tx_lanes, i, err = 0; > diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h > index b1a1c65be8b1..fca372d98495 100644 > --- a/drivers/scsi/ufs/ufshcd.h > +++ b/drivers/scsi/ufs/ufshcd.h > @@ -799,8 +799,11 @@ static inline void ufshcd_rmwl(struct ufs_hba *hba, u32 mask, u32 val, u32 reg) > > int ufshcd_alloc_host(struct device *, struct ufs_hba **); > void ufshcd_dealloc_host(struct ufs_hba *); > +int ufshcd_hba_enable(struct ufs_hba *hba); > int ufshcd_init(struct ufs_hba * , void __iomem * , unsigned int); > +int ufshcd_make_hba_operational(struct ufs_hba *hba); > void ufshcd_remove(struct ufs_hba *); > +int ufshcd_uic_hibern8_exit(struct ufs_hba *hba); > int ufshcd_wait_for_register(struct ufs_hba *hba, u32 reg, u32 mask, > u32 val, unsigned long interval_us, > unsigned long timeout_ms, bool can_sleep); > -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, Linux Foundation Collaborative Project