Skip to content
Snippets Groups Projects
Forked from MediaTek / aiot / linux
Source project has a limited visibility.
  • AngeloGioacchino Del Regno's avatar
    4af7adba
    scsi: ufs: ufs-mediatek: Remove useless mediatek,ufs-support-va09 property · 4af7adba
    AngeloGioacchino Del Regno authored and Julien Massot's avatar Julien Massot committed
    
    Remove checking the mediatek,ufs-support-va09 property to decide
    whether to try to support the VA09 regulator handling and change
    the ufs_mtk_init_va09_pwr_ctrl() function to make it call
    devm_regulator_get_optional(): if the regulator is present, then
    we set the UFS_MTK_CAP_VA09_PWR_CTRL, effectively enabling the
    handling of the VA09 regulator based on that.
    
    Also, make sure to pass the return value of the call to
    devm_regulator_get_optional() to the probe function, so that
    if it returns a probe deferral, the appropriate action will be
    taken.
    
    While at it, remove the error print (disguised as info...) when
    the va09 regulator was not found.
    
    Fixes: ac8c2459 ("scsi: ufs-mediatek: Decouple features from platform bindings")
    Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    4af7adba
    History
    scsi: ufs: ufs-mediatek: Remove useless mediatek,ufs-support-va09 property
    AngeloGioacchino Del Regno authored and Julien Massot's avatar Julien Massot committed
    
    Remove checking the mediatek,ufs-support-va09 property to decide
    whether to try to support the VA09 regulator handling and change
    the ufs_mtk_init_va09_pwr_ctrl() function to make it call
    devm_regulator_get_optional(): if the regulator is present, then
    we set the UFS_MTK_CAP_VA09_PWR_CTRL, effectively enabling the
    handling of the VA09 regulator based on that.
    
    Also, make sure to pass the return value of the call to
    devm_regulator_get_optional() to the probe function, so that
    if it returns a probe deferral, the appropriate action will be
    taken.
    
    While at it, remove the error print (disguised as info...) when
    the va09 regulator was not found.
    
    Fixes: ac8c2459 ("scsi: ufs-mediatek: Decouple features from platform bindings")
    Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>