Message ID | 20210722033439.26550-5-bvanassche@acm.org |
---|---|
State | New |
Headers | show |
Series | UFS patches for kernel v5.15 | expand |
Hi Bart, >Rename the second argument of ufshcd_probe_hba() such that the name of >that argument reflects its purpose instead of how the function is called. >See also commit 1b9e21412f72 ("scsi: ufs: Split ufshcd_probe_hba() based >on its called flow"). Reviewed-by: Daejun Park <daejun7.park@samsung.com> Thanks, Daejun
Hi Bart, On Wed, 2021-07-21 at 20:34 -0700, Bart Van Assche wrote: > Rename the second argument of ufshcd_probe_hba() such that the name > of > that argument reflects its purpose instead of how the function is > called. > See also commit 1b9e21412f72 ("scsi: ufs: Split ufshcd_probe_hba() > based > on its called flow"). > Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 0503ebe197f6..36b60afcce34 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -7968,13 +7968,13 @@ static int ufshcd_clear_ua_wluns(struct ufs_hba *hba) } /** - * ufshcd_probe_hba - probe hba to detect device and initialize + * ufshcd_probe_hba - probe hba to detect device and initialize it * @hba: per-adapter instance - * @async: asynchronous execution or not + * @init_dev_params: whether or not to call ufshcd_device_params_init(). * * Execute link-startup and verify device initialization */ -static int ufshcd_probe_hba(struct ufs_hba *hba, bool async) +static int ufshcd_probe_hba(struct ufs_hba *hba, bool init_dev_params) { int ret; unsigned long flags; @@ -8006,7 +8006,7 @@ static int ufshcd_probe_hba(struct ufs_hba *hba, bool async) * Initialize UFS device parameters used by driver, these * parameters are associated with UFS descriptors. */ - if (async) { + if (init_dev_params) { ret = ufshcd_device_params_init(hba); if (ret) goto out;