Re: [PATCH v3 06/17] ufs: core: mcq: Configure resource regions
From: Eddie Huang
Date: Wed Oct 26 2022 - 05:14:50 EST
Hi Asutosh,
On Thu, 2022-10-20 at 11:03 -0700, Asutosh Das wrote:
> Define the mcq resources and add support to ioremap
> the resource regions.
>
> Co-developed-by: Can Guo <quic_cang@xxxxxxxxxxx>
> Signed-off-by: Can Guo <quic_cang@xxxxxxxxxxx>
> Signed-off-by: Asutosh Das <quic_asutoshd@xxxxxxxxxxx>
> ---
> drivers/ufs/core/ufs-mcq.c | 102
> +++++++++++++++++++++++++++++++++++++++++++++
> include/ufs/ufshcd.h | 28 +++++++++++++
> 2 files changed, 130 insertions(+)
>
[....]
>
> +
> +static int ufshcd_mcq_config_resource(struct ufs_hba *hba)
> +{
> + struct platform_device *pdev = to_platform_device(hba->dev);
> + struct ufshcd_res_info *res;
> + struct resource *res_mem, *res_mcq;
> + int i, ret = 0;
> +
> + memcpy(hba->res, ufs_res_info, sizeof(ufs_res_info));
> +
> + for (i = 0; i < RES_MAX; i++) {
> + res = &hba->res[i];
> + res->resource = platform_get_resource_byname(pdev,
> + IORESOURCE
> _MEM,
> + res-
> >name);
>
Please check patch[1] for mcq_config_resource vops
[1]
https://patchwork.kernel.org/project/linux-scsi/patch/20221026073943.22111-2-eddie.huang@xxxxxxxxxxxx/
Eddie Huang