Message ID | 20200529092310.1106-6-stanley.chu@mediatek.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | scsi: ufs-mediatek: Fix clk-gating and introduce low-power mode for vccq2 | expand |
diff --git a/drivers/scsi/ufs/ufs-mediatek.c b/drivers/scsi/ufs/ufs-mediatek.c index de9e643fb8dd..d587b3276aa8 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; }