[PATCH v1 0/3] scsi: ufs: Re-factor ufshcd_get_pwr_dev_param

stanley.chu-NuS5LvNUpcJWk0Htik3J/w
2019-02-25T04:10:22Z

Hello,

This series re-factors ufshcd_get_pwr_dev_param in vendors' drivers. This function is for vendors to decide finally agreed attributes for power mode change if vendors define
their host capability in struct ufs_dev_params. Because it is using by both ufs-qcom and ufs-hisi currently and may be used in other vendors in the future, simply re-factor it and then evevry vendors can reuse it.

Stanley Chu (3):
scsi: ufs: Introduce ufshcd_get_pwr_dev_param
scsi: ufs-qcom: Re-factor ufshcd_get_pwr_dev_param
scsi: ufs-hisi: Re-factor ufshcd_get_pwr_dev_param

drivers/scsi/ufs/ufs-hisi.c | 109 ++-----------------------------
drivers/scsi/ufs/ufs-qcom.c | 106 ++----------------------------
drivers/scsi/ufs/ufshcd-pltfrm.c | 98 +++++++++++++++++++++++++++
drivers/scsi/ufs/ufshcd-pltfrm.h | 21 ++++++
4 files changed, 127 insertions(+), 207 deletions(-)

--
2.18.0