[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <e370c9df-ce6e-99b6-25d4-a0cc691675ce@acm.org>
Date: Thu, 27 Oct 2022 14:02:48 -0700
From: Bart Van Assche <bvanassche@....org>
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, eddie.huang@...iatek.com,
daejun7.park@...sung.com, 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>,
Jinyoung Choi <j-young.choi@...sung.com>,
Kiwoong Kim <kwmad.kim@...sung.com>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3 01/17] ufs: core: Probe for ext_iid support
On 10/20/22 11:03, Asutosh Das wrote:
> +static unsigned int ufs_get_ext_ufs_feature(struct ufs_hba *hba,
> + const u8 *desc_buf)
> +{
> + if (hba->desc_size[QUERY_DESC_IDN_DEVICE] <
> + DEVICE_DESC_PARAM_EXT_UFS_FEATURE_SUP + 4)
> + return 0;
> +
> + return get_unaligned_be32(desc_buf +
> + DEVICE_DESC_PARAM_EXT_UFS_FEATURE_SUP);
> +}
Please avoid code duplication and make ufshcd_wb_probe() and
ufshcd_temp_notif_probe() call the above function. Please also introduce
the above function and perform the requested refactoring as a separate
patch.
Otherwise this patch looks good to me.
Thanks,
Bart.
Powered by blists - more mailing lists