Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp468389rwo; Tue, 1 Aug 2023 21:43:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlEaWa/uGv+MDSHDtCQ6BSNZxP0XnZ8fxNycExAG7wT1emf+UBfIrfer+5T5yypsD+5QnTtb X-Received: by 2002:a17:906:5352:b0:99b:f676:52da with SMTP id j18-20020a170906535200b0099bf67652damr3852624ejo.65.1690951397123; Tue, 01 Aug 2023 21:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690951397; cv=none; d=google.com; s=arc-20160816; b=J/qASozwA7OW8G73YK5DHHniweDMwYI0bHLh9ALrimSJkG5+nYQUpYO+Q2GpEM1lot sUnXhxPJBhPQtmNnSnxo3MoxBO9CSMPUKu5OMkUNZVE0+Vfc3CYUH7X8vjwJ85WC39X8 /4GZihuTLW9Q1jNl4eQpIO4LQoUu5uB75/LJ4n3cPk3JmpAXLlXIlmzAhopsaPmck1mA v4uvvwK/aLCBhGNfNSUCdPj4eoQdKcg6E1Vkc11V6LqyTHvi7u1xYqusKf2ivyiajbYH ksUvJpWU5+f7cUnP9WDIzhTHSkrgw/3F63f9YM/jEm15dymo/+jI+I1mNa17Ht6VJfXc 9yDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ey9Wy1+KF1zFiH8iuN+jhp7nWTPAjpIFZydDb5o7sVg=; fh=t291+pBLitCa4U8Oj7f2Rvlnyi5Y0lhhtXv97DPHRAg=; b=kznloIqvpIE2JRoreK3FgLEvcDFhUy05EQj7M8ZrM16RiEBMtZr1sByRmbGLbvQuTL GX1g8ssEdELqYRvWOiKDwfwjJrVf35T+llghNk0LqN0Abe5S8wsAzjTjvPCJWLAJvOUQ i0zwLBVU8nviEm1CAI2G92RXpRHXTolfS0SCBgaZkI1hFw8gZ4UNCb/aYIDal1jvJz9D 1Lg4fqmu9R8PqGYTfpa0y36uc9ga0RdWW+02IzmaaqZJeqRlkkNxnpMMUOGl4EMAlNQ2 fGvRuNHQ4E9FS/VZkTrfkY26MhWGdN8ADJJvMzw4GJ2gRkjOPGgbohFyVpVaUiWBUL8i FW3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FoVGQ4WY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s23-20020a1709066c9700b0099bcb8f4f00si9698661ejr.409.2023.08.01.21.42.52; Tue, 01 Aug 2023 21:43:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FoVGQ4WY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231309AbjHBEGB (ORCPT + 99 others); Wed, 2 Aug 2023 00:06:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231133AbjHBEF4 (ORCPT ); Wed, 2 Aug 2023 00:05:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67F0E1FEE; Tue, 1 Aug 2023 21:05:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 04740617A1; Wed, 2 Aug 2023 04:05:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A21EC433C7; Wed, 2 Aug 2023 04:05:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690949154; bh=JyzHdJqaECArYyPuQGdQ/VsUhFVeIi7mNUoSwXnmSv4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FoVGQ4WYiuRnFC6Q31mpCML8IE4xHKVWx55iKFd47w7YzWf/Mbj4lcPUyCFKIzjKF Q7/sZKqb/ujOeOWtrdwnZqBtHOPTQKHxuWdTvRXZSE9JFOs5q7Ecf7nrdYwrenEM/C fNv8ZPeIuEQEn62094R8Txxwrnt6icD0pogfF0QChDzzTqlCSGZu35JwVBPihLqVQJ +UZFXLnfAgM+jWD/Ynx6uo0rryvJG6OugsxCXBGcWG2htx6DiE/XYBTmwc/k9Y1ldm HX8MqV3hN8pS1RVocBsQl0bicrCL/Tft41ljX0xug2DoLRvuEzKzQ7d/7YpOP3ojo+ HsxXXonfRl7KQ== Date: Wed, 2 Aug 2023 09:35:38 +0530 From: Manivannan Sadhasivam To: Nitin Rawat Cc: powen.kao@mediatek.com, bvanassche@acm.org, alim.akhtar@samsung.com, adrian.hunter@intel.com, jejb@linux.ibm.com, stanley.chu@mediatek.com, asutoshd@codeaurora.org, quic_cang@quicinc.com, martin.petersen@oracle.com, beanhuo@micron.com, ebiggers@google.com, agross@kernel.org, Arthur.Simchaev@wdc.com, konrad.dybcio@linaro.org, quic_ziqichen@quicinc.com, quic_nguyenb@quicinc.com, quic_narepall@quicinc.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH V2 1/2] scsi: ufs: core: Export ufshcd_is_hba_active Message-ID: <20230802040538.GB2370@thinkpad> References: <20230726134140.7180-1-quic_nitirawa@quicinc.com> <20230726134140.7180-2-quic_nitirawa@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230726134140.7180-2-quic_nitirawa@quicinc.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 26, 2023 at 07:11:39PM +0530, Nitin Rawat wrote: > Export ufshcd_is_hba_active() to allow vendor driver modules > to check the state of host controller. > > Signed-off-by: Nitin Rawat Acked-by: Manivannan Sadhasivam - Mani > --- > drivers/ufs/core/ufshcd.c | 3 ++- > include/ufs/ufshcd.h | 1 + > 2 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c > index 983fae84d9e8..962aa5c1fe69 100644 > --- a/drivers/ufs/core/ufshcd.c > +++ b/drivers/ufs/core/ufshcd.c > @@ -995,10 +995,11 @@ static inline void ufshcd_hba_start(struct ufs_hba *hba) > * > * Returns true if and only if the controller is active. > */ > -static inline bool ufshcd_is_hba_active(struct ufs_hba *hba) > +bool ufshcd_is_hba_active(struct ufs_hba *hba) > { > return ufshcd_readl(hba, REG_CONTROLLER_ENABLE) & CONTROLLER_ENABLE; > } > +EXPORT_SYMBOL_GPL(ufshcd_is_hba_active); > > u32 ufshcd_get_local_unipro_ver(struct ufs_hba *hba) > { > diff --git a/include/ufs/ufshcd.h b/include/ufs/ufshcd.h > index 6dc11fa0ebb1..ef04c3363be8 100644 > --- a/include/ufs/ufshcd.h > +++ b/include/ufs/ufshcd.h > @@ -1398,6 +1398,7 @@ int ufshcd_wb_toggle_buf_flush(struct ufs_hba *hba, bool enable); > int ufshcd_suspend_prepare(struct device *dev); > int __ufshcd_suspend_prepare(struct device *dev, bool rpm_ok_for_spm); > void ufshcd_resume_complete(struct device *dev); > +bool ufshcd_is_hba_active(struct ufs_hba *hba); > > /* Wrapper functions for safely calling variant operations */ > static inline int ufshcd_vops_init(struct ufs_hba *hba) > -- > 2.17.1 > -- மணிவண்ணன் சதாசிவம்