lkml.org 
[lkml]   [2021]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRE: Re: [PATCH v24 1/4] scsi: ufs: Introduce HPB feature
From
Date
> > 
> > +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.

I will add checking dev_info->hpb_enable value.
if (!ufshpb_is_allowed(hba) || !dev_info->hpb_enable)

Thanks,
Daejun

> Bean
>
>
>
>
>
>

\
 
 \ /
  Last update: 2021-02-26 05:52    [W:0.063 / U:0.596 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site