[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210226044923epcms2p1fa387ff8d1eaac09a8cce146d63ea205@epcms2p1>
Date: Fri, 26 Feb 2021 13:49:23 +0900
From: Daejun Park <daejun7.park@...sung.com>
To: Bean Huo <huobean@...il.com>,
Daejun Park <daejun7.park@...sung.com>,
Greg KH <gregkh@...uxfoundation.org>,
"avri.altman@....com" <avri.altman@....com>,
"jejb@...ux.ibm.com" <jejb@...ux.ibm.com>,
"martin.petersen@...cle.com" <martin.petersen@...cle.com>,
"asutoshd@...eaurora.org" <asutoshd@...eaurora.org>,
"stanley.chu@...iatek.com" <stanley.chu@...iatek.com>,
"cang@...eaurora.org" <cang@...eaurora.org>,
"bvanassche@....org" <bvanassche@....org>,
ALIM AKHTAR <alim.akhtar@...sung.com>
CC: "linux-scsi@...r.kernel.org" <linux-scsi@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
JinHwan Park <jh.i.park@...sung.com>,
Javier Gonzalez <javier.gonz@...sung.com>,
SEUNGUK SHIN <seunguk.shin@...sung.com>,
Sung-Jun Park <sungjun07.park@...sung.com>,
yongmyung lee <ymhungry.lee@...sung.com>,
Jinyoung CHOI <j-young.choi@...sung.com>,
BoRam Shin <boram.shin@...sung.com>
Subject: RE: Re: [PATCH v24 1/4] scsi: ufs: Introduce HPB feature
> >
> > +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
>
>
>
>
>
>
Powered by blists - more mailing lists