mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 07:44:21 +08:00
f4750af708
Move the hba->reserved_slot and the host->can_queue assignments from ufshcd_config_mcq() into ufshcd_alloc_mcq(). The advantages of this change are as follows: - It becomes easier to verify that these two parameters are updated if hba->nutrs is updated. - It prevents unnecessary assignments to these two parameters. While ufshcd_config_mcq() is called during host reset, ufshcd_alloc_mcq() is not. Cc: Can Guo <quic_cang@quicinc.com> Reviewed-by: Peter Wang <peter.wang@mediatek.com> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20240708211716.2827751-6-bvanassche@acm.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
ufs_bsg.c | ||
ufs_bsg.h | ||
ufs-debugfs.c | ||
ufs-debugfs.h | ||
ufs-fault-injection.c | ||
ufs-fault-injection.h | ||
ufs-hwmon.c | ||
ufs-mcq.c | ||
ufs-sysfs.c | ||
ufs-sysfs.h | ||
ufshcd-crypto.c | ||
ufshcd-crypto.h | ||
ufshcd-priv.h | ||
ufshcd.c |