public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Eddie Huang (黃智傑)" <eddie.huang@mediatek.com>
To: "quic_cang@quicinc.com" <quic_cang@quicinc.com>,
	"quic_asutoshd@quicinc.com" <quic_asutoshd@quicinc.com>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	"martin.petersen@oracle.com" <martin.petersen@oracle.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"krzysztof.kozlowski@linaro.org" <krzysztof.kozlowski@linaro.org>,
	"konrad.dybcio@somainline.org" <konrad.dybcio@somainline.org>,
	"quic_nguyenb@quicinc.com" <quic_nguyenb@quicinc.com>,
	"jejb@linux.ibm.com" <jejb@linux.ibm.com>,
	"linux-arm-msm@vger.kernel.org" <linux-arm-msm@vger.kernel.org>,
	"beanhuo@micron.com" <beanhuo@micron.com>,
	"avri.altman@wdc.com" <avri.altman@wdc.com>,
	"bvanassche@acm.org" <bvanassche@acm.org>,
	"j-young.choi@samsung.com" <j-young.choi@samsung.com>,
	"Arthur.Simchaev@wdc.com" <Arthur.Simchaev@wdc.com>,
	"alim.akhtar@samsung.com" <alim.akhtar@samsung.com>,
	"daejun7.park@samsung.com" <daejun7.park@samsung.com>,
	"mani@kernel.org" <mani@kernel.org>,
	"Stanley Chu (朱原陞)" <stanley.chu@mediatek.com>,
	"quic_xiaosenh@quicinc.com" <quic_xiaosenh@quicinc.com>,
	"andersson@kernel.org" <andersson@kernel.org>,
	"agross@kernel.org" <agross@kernel.org>
Subject: Re: [PATCH v7 06/16] ufs: core: mcq: Configure resource regions
Date: Wed, 30 Nov 2022 09:15:04 +0000	[thread overview]
Message-ID: <37a017a2176fee1da8a7903613f132b22c9741df.camel@mediatek.com> (raw)
In-Reply-To: <c655d1e62f619818e034f76c90330393cba8c79b.1669747235.git.quic_asutoshd@quicinc.com>

Hi Asutosh,

On Tue, 2022-11-29 at 10:53 -0800, Asutosh Das wrote:
> Define the mcq resources and add support to ioremap
> the resource regions.
> 
> Co-developed-by: Can Guo <quic_cang@quicinc.com>
> Signed-off-by: Can Guo <quic_cang@quicinc.com>
> Signed-off-by: Asutosh Das <quic_asutoshd@quicinc.com>
> Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
> ---
>  drivers/ufs/core/ufs-mcq.c     |   3 ++
>  drivers/ufs/core/ufshcd-priv.h |   8 ++++
>  drivers/ufs/host/ufs-qcom.c    | 103
> +++++++++++++++++++++++++++++++++++++++++
>  include/ufs/ufshcd.h           |  30 ++++++++++++
>  4 files changed, 144 insertions(+)
> 
> diff --git a/drivers/ufs/core/ufs-mcq.c b/drivers/ufs/core/ufs-mcq.c
> index bf08ec5..d6807e3 100644
> --- a/drivers/ufs/core/ufs-mcq.c
> +++ b/drivers/ufs/core/ufs-mcq.c
> @@ -119,7 +119,10 @@ int ufshcd_mcq_init(struct ufs_hba *hba)
>  	int ret;
>  
>  	ret = ufshcd_mcq_config_nr_queues(hba);
> +	if (ret)
> +		return ret;
>  
> +	ret = ufshcd_vops_mcq_config_resource(hba);
>  	return ret;
>  }
>  
> diff --git a/drivers/ufs/core/ufshcd-priv.h
> b/drivers/ufs/core/ufshcd-priv.h
> index 9368ba2..74cb17b9 100644
> --- a/drivers/ufs/core/ufshcd-priv.h
> +++ b/drivers/ufs/core/ufshcd-priv.h
> @@ -227,6 +227,14 @@ static inline void
> ufshcd_vops_config_scaling_param(struct ufs_hba *hba,
>  		hba->vops->config_scaling_param(hba, p, data);
>  }
>  
> +static inline int ufshcd_vops_mcq_config_resource(struct ufs_hba
> *hba)
> +{
> +	if (hba->vops && hba->vops->mcq_config_resource)
> +		hba->vops->mcq_config_resource(hba);
> 

Please correct:

return hba->vops->mcq_config_resource(hba);

> +
> +	return -EOPNOTSUPP;
> +}
> +
> 

Except this issue, I test this series pass on my platform. Thanks the 
patch

Eddie


  parent reply	other threads:[~2022-11-30  9:15 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1669747235.git.quic_asutoshd@quicinc.com>
2022-11-29 18:53 ` [PATCH v7 01/16] ufs: core: Optimize duplicate code to read extended feature Asutosh Das
2022-11-29 18:53 ` [PATCH v7 02/16] ufs: core: Probe for ext_iid support Asutosh Das
2022-11-29 18:53 ` [PATCH v7 03/16] ufs: core: Introduce Multi-circular queue capability Asutosh Das
2022-11-29 18:53 ` [PATCH v7 04/16] ufs: core: Defer adding host to scsi if mcq is supported Asutosh Das
2022-11-29 18:53 ` [PATCH v7 05/16] ufs: core: mcq: Add support to allocate multiple queues Asutosh Das
2022-11-29 18:53 ` [PATCH v7 06/16] ufs: core: mcq: Configure resource regions Asutosh Das
2022-11-29 19:22   ` Bart Van Assche
2022-11-30  9:15   ` Eddie Huang (黃智傑) [this message]
2022-11-30 18:44     ` Asutosh Das
2022-11-29 18:53 ` [PATCH v7 07/16] ufs: core: mcq: Calculate queue depth Asutosh Das
2022-11-29 19:23   ` Bart Van Assche
2022-11-29 18:53 ` [PATCH v7 08/16] ufs: core: mcq: Allocate memory for mcq mode Asutosh Das
2022-11-29 19:23   ` Bart Van Assche
2022-11-29 18:53 ` [PATCH v7 09/16] ufs: core: mcq: Configure operation and runtime interface Asutosh Das
2022-11-29 19:23   ` Bart Van Assche
2022-11-29 18:53 ` [PATCH v7 10/16] ufs: core: mcq: Use shared tags for MCQ mode Asutosh Das
2022-11-29 18:53 ` [PATCH v7 11/16] ufs: core: Prepare ufshcd_send_command for mcq Asutosh Das
2022-11-29 18:53 ` [PATCH v7 12/16] ufs: core: mcq: Find hardware queue to queue request Asutosh Das
2022-11-29 18:53 ` [PATCH v7 13/16] ufs: core: Prepare for completion in mcq Asutosh Das
2022-11-29 18:53 ` [PATCH v7 14/16] ufs: mcq: Add completion support of a cqe Asutosh Das
2022-11-29 18:53 ` [PATCH v7 15/16] ufs: core: mcq: Add completion support in poll Asutosh Das
2022-11-29 18:53 ` [PATCH v7 16/16] ufs: core: mcq: Enable Multi Circular Queue Asutosh Das

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=37a017a2176fee1da8a7903613f132b22c9741df.camel@mediatek.com \
    --to=eddie.huang@mediatek.com \
    --cc=Arthur.Simchaev@wdc.com \
    --cc=agross@kernel.org \
    --cc=alim.akhtar@samsung.com \
    --cc=andersson@kernel.org \
    --cc=avri.altman@wdc.com \
    --cc=beanhuo@micron.com \
    --cc=bvanassche@acm.org \
    --cc=daejun7.park@samsung.com \
    --cc=j-young.choi@samsung.com \
    --cc=jejb@linux.ibm.com \
    --cc=konrad.dybcio@somainline.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mani@kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=quic_asutoshd@quicinc.com \
    --cc=quic_cang@quicinc.com \
    --cc=quic_nguyenb@quicinc.com \
    --cc=quic_xiaosenh@quicinc.com \
    --cc=stanley.chu@mediatek.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox