Re: [PATCH v3] scsi: ufs: Tidy up WB configuration code

2021-03-24 Thread Martin K. Petersen
On Thu, 18 Mar 2021 17:55:36 +0800, Yue Hu wrote: > There are similar code implementations for WB configuration in > ufshcd_wb_{ctrl, toggle_flush_during_h8, toggle_flush}. We can > extract the part to create a new helper with a flag parameter to > reduce code duplication. > > Meanwhile, rename u

Re: [PATCH v3] scsi: ufs: Tidy up WB configuration code

2021-03-18 Thread Martin K. Petersen
Yue, > There are similar code implementations for WB configuration in > ufshcd_wb_{ctrl, toggle_flush_during_h8, toggle_flush}. We can extract > the part to create a new helper with a flag parameter to reduce code > duplication. Applied to 5.13/scsi-staging, thanks! -- Martin K. Petersen

[PATCH v3] scsi: ufs: Tidy up WB configuration code

2021-03-18 Thread Yue Hu
From: Yue Hu There are similar code implementations for WB configuration in ufshcd_wb_{ctrl, toggle_flush_during_h8, toggle_flush}. We can extract the part to create a new helper with a flag parameter to reduce code duplication. Meanwhile, rename ufshcd_wb_ctrl() to ufshcd_wb_toggle() for better