lkml.org 
[lkml]   [2020]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 5/5] scsi: ufs-mediatek: Allow unbound mphy
    Date
    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 --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;
    }
    --
    2.18.0
    \
     
     \ /
      Last update: 2020-06-01 12:49    [W:3.543 / U:0.944 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site