[PATCH v2 4/6] dt-bindings: scsi: ufs: Add document for ufs-mediatek

2019-02-25 Thread stanley.chu
From: Stanley Chu Add UFS and UFS PHY node document for Mediatek SoC chips. Signed-off-by: Stanley Chu --- .../devicetree/bindings/ufs/ufs-mediatek.txt | 75 +++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/ufs/ufs-mediatek.txt diff -

[PATCH v2 5/6] phy: mediatek: Add UFS M-PHY driver

2019-02-25 Thread stanley.chu
From: Stanley Chu Add UFS M-PHY driver on Mediatek chipsets. Signed-off-by: Stanley Chu --- drivers/phy/mediatek/Kconfig| 29 ++-- drivers/phy/mediatek/Makefile | 2 + drivers/phy/mediatek/phy-mtk-ufs-12nm.c | 151 +++ drivers/phy/mediatek/phy-mtk-ufs-1

[PATCH v2 1/6] scsi: ufs: Introduce ufshcd_get_pwr_dev_param

2019-02-25 Thread stanley.chu
From: Stanley Chu ufshcd_get_pwr_dev_param is for vendors to decide finally agreed attributes for power mode change if vendors define their host capability in struct ufs_dev_params. This api is using by both ufs-qcom and ufs-hisi now. Simply re-factor it and then every vendors can reuse it. Sig

[PATCH v2] scsi: ufs-mediatek: Add UFS support for Mediatek SoC chips

2019-02-25 Thread stanley.chu
Hello, This patch series adds UFS M-PHY and UFS host driver support in MediaTek chipsets. In the meantime, 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

[PATCH v2 3/6] scsi: ufs-hisi: Re-factor ufshcd_get_pwr_dev_param

2019-02-25 Thread stanley.chu
From: Stanley Chu ufshcd_get_pwr_dev_param function and ufs_dev_params struct are re-factored to ufs common driver thus change the way this driver used. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufs-hisi.c | 109 ++-- 1 file changed, 4 insertions(+), 105 d

[PATCH v2 6/6] scsi: ufs-mediatek: Add UFS support for Mediatek SoC chips

2019-02-25 Thread stanley.chu
From: Stanley Chu This patch adds UFS support for Mediatek SoC chips. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/Kconfig| 14 ++ drivers/scsi/ufs/Makefile | 1 + drivers/scsi/ufs/ufs-mediatek.c | 377 drivers/scsi/ufs/ufs-mediatek.h | 61

[PATCH v2 2/6] scsi: ufs-qcom: Re-factor ufshcd_get_pwr_dev_param

2019-02-25 Thread stanley.chu
From: Stanley Chu ufshcd_get_pwr_dev_param function and ufs_dev_params struct are re-factored to ufs common driver thus change the way this driver used. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufs-qcom.c | 106 ++-- 1 file changed, 4 insertions(+), 102 d

[PATCH v2 0/6] scsi: ufs-mediatek: Add UFS support for Mediatek SoC chips

2019-02-25 Thread stanley.chu
From: Stanley Chu Hello, This patch series adds UFS M-PHY and UFS host driver support in MediaTek chipsets. In the meantime, 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

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

2019-02-24 Thread stanley.chu
From: Stanley Chu ufshcd_get_pwr_dev_param function and ufs_dev_params struct are re-factored to ufs common driver thus change the way this driver used. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufs-hisi.c | 109 ++-- 1 file changed, 4 insertions(+), 105 d

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

2019-02-24 Thread stanley.chu
From: Stanley Chu 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-h

[PATCH v1 1/3] scsi: ufs: Introduce ufshcd_get_pwr_dev_param

2019-02-24 Thread stanley.chu
From: Stanley Chu ufshcd_get_pwr_dev_param is for vendors to decide finally agreed attributes for power mode change if vendors define their host capability in struct ufs_dev_params. This api is using by both ufs-qcom and ufs-hisi now and will also be used in ufs-mediatek. Simply re-factor it and

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

2019-02-24 Thread stanley.chu
From: Stanley Chu ufshcd_get_pwr_dev_param function and ufs_dev_params struct are re-factored to ufs common driver thus change the way this driver used. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufs-qcom.c | 106 ++-- 1 file changed, 4 insertions(+), 102 d

[PATCH v1] scsi: ufs: Re-factor ufshcd_get_pwr_dev_param

2019-02-24 Thread stanley.chu
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 ma

[PATCH v1 2/2] scsi: ufs-mediatek: Add UFS support for Mediatek SoC chips

2019-02-21 Thread stanley.chu
From: Stanley Chu This patch adds UFS support for Mediatek SoC chips. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/Kconfig| 12 + drivers/scsi/ufs/Makefile | 1 + drivers/scsi/ufs/ufs-mediatek.c | 526 drivers/scsi/ufs/ufs-mediatek.h | 91 +

[PATCH v1 1/2] dt-bindings: scsi: ufs: Add document for ufs-mediatek

2019-02-21 Thread stanley.chu
From: Stanley Chu Add UFS and UFS PHY node document for Mediatek SoC chips. Signed-off-by: Stanley Chu --- .../devicetree/bindings/ufs/ufs-mediatek.txt | 62 +++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/ufs/ufs-mediatek.txt diff -

[PATCH v1 0/2] scsi: ufs-mediatek: Add UFS support for Mediatek SoC chips

2019-02-21 Thread stanley.chu
From: Stanley Chu This patch adds UFS support for Mediatek SoC chips. Stanley Chu (2): dt-bindings: scsi: ufs: Add document for ufs-mediatek scsi: ufs-mediatek: Add UFS support for Mediatek SoC chips .../devicetree/bindings/ufs/ufs-mediatek.txt | 62 +++ drivers/scsi/ufs/Kconfig

[PATCH v1] scsi: ufs-mediatek: Add UFS support for Mediatek SoC chips

2019-02-21 Thread stanley.chu
This patch adds UFS support for Mediatek SoC chips. Stanley Chu (2): dt-bindings: scsi: ufs: Add document for ufs-mediatek scsi: ufs-mediatek: Add UFS support for Mediatek SoC chips .../devicetree/bindings/ufs/ufs-mediatek.txt | 62 +++ drivers/scsi/ufs/Kconfig | 12 +

[PATCH v1 0/1] scsi: ufs: Fix system suspend status

2019-01-07 Thread stanley.chu
From: Stanley Chu Stanley Chu (1): scsi: ufs: Fix system suspend status drivers/scsi/ufs/ufshcd.c | 2 ++ 1 file changed, 2 insertions(+) -- 1.9.1

[PATCH v1] scsi: ufs: Fix system suspend status

2019-01-07 Thread stanley.chu
hba->is_sys_suspended is set after successful system suspend but not clear after successful system resume. Simply fix this flag to correct host status logs.

[PATCH v1 1/1] scsi: ufs: Fix system suspend status

2019-01-07 Thread stanley.chu
From: Stanley Chu hba->is_sys_suspended is set after successful system suspend but not clear after successful system resume. According to current behavior, hba->is_sys_suspended will not be set if host is runtime-suspended but not system-suspended. Thus we shall aligh the same policy: clear this

[PATCH v3 1/1] scsi: Synchronize request queue PM status only on successful resume

2019-01-03 Thread stanley.chu
From: Stanley Chu The commit 356fd2663cff ("scsi: Set request queue runtime PM status back to active on resume") fixed up the inconsistent RPM status between request queue and device. However changing request queue RPM status shall be done only on successful resume, otherwise status may be still

[PATCH v3] scsi: Synchronize request queue PM status only on successful resume

2019-01-03 Thread stanley.chu
Changes since v2: - Add soft lockup example in commit message. - Fix Fixes tag. Changes since v1: - Add Cc: and Fixes: tags. - Fix code merge defect.

[PATCH v3 0/1] scsi: Synchronize request queue PM status only on successful resume

2019-01-03 Thread stanley.chu
From: Stanley Chu Stanley Chu (1): scsi: Synchronize request queue PM status only on successful resume drivers/scsi/scsi_pm.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) -- 2.18.0

[PATCH v2 0/1] scsi: Synchronize request queue PM status only on successful resume

2019-01-02 Thread stanley.chu
From: Stanley Chu Stanley Chu (1): scsi: Synchronize request queue PM status only on successful resume drivers/scsi/scsi_pm.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) -- 2.18.0

[PATCH v2] scsi: Synchronize request queue PM status only on successful resume

2019-01-02 Thread stanley.chu
The commit 356fd2663cff ("scsi: Set request queue runtime PM status back to active on resume") fixed up the inconsistent RPM status between request queue and device. However changing request queue RPM status shall be done only on successful resume, otherwise status may be still inconsistent as belo

[PATCH v2 1/1] scsi: Synchronize request queue PM status only on successful resume

2019-01-02 Thread stanley.chu
From: Stanley Chu The commit 356fd2663cff ("scsi: Set request queue runtime PM status back to active on resume") fixed up the inconsistent RPM status between request queue and device. However changing request queue RPM status shall be done only on successful resume, otherwise status may be still

[PATCH v1 1/1] scsi: Synchronize request queue PM status only on successful resume

2019-01-01 Thread stanley.chu
From: Stanley Chu The commit 356fd2663cff ("scsi: Set request queue runtime PM status back to active on resume") fixed up the inconsistent RPM status between request queue and device. However changing request queue RPM status shall be done only on successful resume, otherwise status may be still

[PATCH v1] scsi: Synchronize request queue PM status only on successful resume

2019-01-01 Thread stanley.chu
The commit 356fd2663cff ("scsi: Set request queue runtime PM status back to active on resume") fixed up the inconsistent RPM status between request queue and device. However changing request queue RPM status shall be done only on successful resume, otherwise status may be still inconsistent as belo

[PATCH v1 0/1] scsi: Synchronize request queue PM status only on successful resume

2019-01-01 Thread stanley.chu
From: Stanley Chu Stanley Chu (1): scsi: Synchronize request queue PM status only on successful resume drivers/scsi/scsi_pm.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) -- 1.9.1