Re: [PATCH] scsi: ufs: Adjust logic in common ADAPT helper

2020-11-30 Thread Martin K. Petersen
On Fri, 20 Nov 2020 20:48:10 -0800, Bjorn Andersson wrote: > The introduction of ufshcd_dme_configure_adapt() refactored out > duplication from the Mediatek and Qualcomm drivers. > > Both these implementations had the logic of: > gear_tx == UFS_HS_G4 => PA_INITIAL_ADAPT > gear_tx != UFS_H

Re: [PATCH] scsi: ufs: Adjust logic in common ADAPT helper

2020-11-23 Thread Martin K. Petersen
Bjorn, > The introduction of ufshcd_dme_configure_adapt() refactored out > duplication from the Mediatek and Qualcomm drivers. Applied to 5.11/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: ufs: Adjust logic in common ADAPT helper

2020-11-22 Thread Can Guo
On 2020-11-21 12:48, Bjorn Andersson wrote: The introduction of ufshcd_dme_configure_adapt() refactored out duplication from the Mediatek and Qualcomm drivers. Both these implementations had the logic of: gear_tx == UFS_HS_G4 => PA_INITIAL_ADAPT gear_tx != UFS_HS_G4 => PA_NO_ADAPT but n

Re: [PATCH] scsi: ufs: Adjust logic in common ADAPT helper

2020-11-21 Thread Stanley Chu
On Fri, 2020-11-20 at 20:48 -0800, Bjorn Andersson wrote: > The introduction of ufshcd_dme_configure_adapt() refactored out > duplication from the Mediatek and Qualcomm drivers. > > Both these implementations had the logic of: > gear_tx == UFS_HS_G4 => PA_INITIAL_ADAPT > gear_tx != UFS_HS_

[PATCH] scsi: ufs: Adjust logic in common ADAPT helper

2020-11-20 Thread Bjorn Andersson
The introduction of ufshcd_dme_configure_adapt() refactored out duplication from the Mediatek and Qualcomm drivers. Both these implementations had the logic of: gear_tx == UFS_HS_G4 => PA_INITIAL_ADAPT gear_tx != UFS_HS_G4 => PA_NO_ADAPT but now both implementations pass PA_INITIAL_ADAPT