[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <0fdbd62925665469a3f3eff2a85bc582d5be83ea.camel@mediatek.com>
Date: Wed, 26 Oct 2022 17:14:24 +0800
From: Eddie Huang <eddie.huang@...iatek.com>
To: Asutosh Das <quic_asutoshd@...cinc.com>, <quic_cang@...cinc.com>,
<martin.petersen@...cle.com>, <linux-scsi@...r.kernel.org>
CC: <quic_nguyenb@...cinc.com>, <quic_xiaosenh@...cinc.com>,
<stanley.chu@...iatek.com>, <daejun7.park@...sung.com>,
<bvanassche@....org>, <avri.altman@....com>, <mani@...nel.org>,
<beanhuo@...ron.com>, <quic_richardp@...cinc.com>,
<linux-arm-msm@...r.kernel.org>,
Alim Akhtar <alim.akhtar@...sung.com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3 06/17] ufs: core: mcq: Configure resource regions
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@...cinc.com>
> Signed-off-by: Can Guo <quic_cang@...cinc.com>
> Signed-off-by: Asutosh Das <quic_asutoshd@...cinc.com>
> ---
> 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@mediatek.com/
Eddie Huang
Powered by blists - more mailing lists