[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <41f85bd8-f159-0518-eeb8-05ac814dea9f@acm.org>
Date: Mon, 28 Jun 2021 09:56:37 -0700
From: Bart Van Assche <bvanassche@....org>
To: keosung.park@...sung.com, ALIM AKHTAR <alim.akhtar@...sung.com>,
"avri.altman@....com" <avri.altman@....com>,
"jejb@...ux.ibm.com" <jejb@...ux.ibm.com>,
"martin.petersen@...cle.com" <martin.petersen@...cle.com>,
"stanley.chu@...iatek.com" <stanley.chu@...iatek.com>,
"cang@...eaurora.org" <cang@...eaurora.org>,
"beanhuo@...ron.com" <beanhuo@...ron.com>,
"adrian.hunter@...el.com" <adrian.hunter@...el.com>,
Kiwoong Kim <kwmad.kim@...sung.com>,
"satyat@...gle.com" <satyat@...gle.com>,
"asutoshd@...eaurora.org" <asutoshd@...eaurora.org>,
"linux-scsi@...r.kernel.org" <linux-scsi@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"jpinto@...opsys.com" <jpinto@...opsys.com>,
"joe@...ches.com" <joe@...ches.com>
Subject: Re: [PATCH v2] scsi: ufs: Refactor ufshcd_is_intr_aggr_allowed()
On 6/27/21 10:58 PM, Keoseong Park wrote:
> Simplify if else statement to return statement,
> and remove code related to CONFIG_SCSI_UFS_DWC that is not in use.
>
> v1 -> v2
> Remove code related to CONFIG_SCSI_UFS_DWC that is not in use.
>
> Cc: Joao Pinto <jpinto@...opsys.com>
> Signed-off-by: Keoseong Park <keosung.park@...sung.com>
> ---
> drivers/scsi/ufs/ufshcd.h | 12 ++----------
> 1 file changed, 2 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h
> index c98d540ac044..c9faca237290 100644
> --- a/drivers/scsi/ufs/ufshcd.h
> +++ b/drivers/scsi/ufs/ufshcd.h
> @@ -893,16 +893,8 @@ static inline bool ufshcd_is_rpm_autosuspend_allowed(struct ufs_hba *hba)
>
> static inline bool ufshcd_is_intr_aggr_allowed(struct ufs_hba *hba)
> {
> -/* DWC UFS Core has the Interrupt aggregation feature but is not detectable*/
> -#ifndef CONFIG_SCSI_UFS_DWC
> - if ((hba->caps & UFSHCD_CAP_INTR_AGGR) &&
> - !(hba->quirks & UFSHCD_QUIRK_BROKEN_INTR_AGGR))
> - return true;
> - else
> - return false;
> -#else
> -return true;
> -#endif
> + return (hba->caps & UFSHCD_CAP_INTR_AGGR) &&
> + !(hba->quirks & UFSHCD_QUIRK_BROKEN_INTR_AGGR);
> }
Reviewed-by: Bart Van Assche <bvanassche@....org>
Powered by blists - more mailing lists