Re: [PATCH v24 1/4] scsi: ufs: Introduce HPB feature
From: Bean Huo <hidden>
Date: 2021-02-25 14:39:19
Also in:
lkml
From: Bean Huo <hidden>
Date: 2021-02-25 14:39:19
Also in:
lkml
On Wed, 2021-02-24 at 13:54 +0900, Daejun Park wrote:
+void ufshpb_init(struct ufs_hba *hba)
+{
+ struct ufshpb_dev_info *hpb_dev_info = &hba->ufshpb_dev;
+ int try;
+ int ret;
+
+ if (!ufshpb_is_allowed(hba))
+ return;
+Here it is better to check "dev_info->hpb_enable", if HPB is not enabled from UFS device level, doesn't need to create mempool and take other memory resource. Bean