diff mbox series

[v3,5/5] scsi: ufs-mediatek: Allow unbound mphy

Message ID 20200601104646.15436-6-stanley.chu@mediatek.com (mailing list archive)
State Mainlined
Commit fc4983018fea1237e027a9fc6530a3e04850fbfa
Headers show
Series scsi: ufs-mediatek: Fix clk-gating and introduce low-power mode for vccq2 | expand

Commit Message

Stanley Chu June 1, 2020, 10:46 a.m. UTC
Allow unbound MPHY module since not every MediaTek UFS platform
needs specific MPHY control.

Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: Peter Wang <peter.wang@mediatek.com>
---
 drivers/scsi/ufs/ufs-mediatek.c | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/drivers/scsi/ufs/ufs-mediatek.c b/drivers/scsi/ufs/ufs-mediatek.c
index 1cc7bea1468b..9a4432c9f7dc 100644
--- a/drivers/scsi/ufs/ufs-mediatek.c
+++ b/drivers/scsi/ufs/ufs-mediatek.c
@@ -113,6 +113,12 @@  static int ufs_mtk_bind_mphy(struct ufs_hba *hba)
 
 	if (err)
 		host->mphy = NULL;
+	/*
+	 * Allow unbound mphy because not every platform needs specific
+	 * mphy control.
+	 */
+	if (err == -ENODEV)
+		err = 0;
 
 	return err;
 }