mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
phy: ufs: Add set_mode callback for RUMI UFS PHY driver
This change adds the missing set_mode callback for RUMI UFS PHY driver. Change-Id: Ib67ebf63690a1d01172d4e9c9a0c253a8595f5fb Signed-off-by: Can Guo <[email protected]>
This commit is contained in:
parent
2e72d8932e
commit
4ebbe15e53
1 changed files with 17 additions and 0 deletions
|
|
@ -103,9 +103,26 @@ static int ufs_qcom_phy_qrbtc_sdm845_exit(struct phy *generic_phy)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static
|
||||
int ufs_qcom_phy_qrbtc_sdm845_set_mode(struct phy *generic_phy,
|
||||
enum phy_mode mode, int submode)
|
||||
{
|
||||
struct ufs_qcom_phy *phy_common = get_ufs_qcom_phy(generic_phy);
|
||||
|
||||
phy_common->mode = PHY_MODE_INVALID;
|
||||
|
||||
if (mode > 0)
|
||||
phy_common->mode = mode;
|
||||
|
||||
phy_common->submode = submode;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct phy_ops ufs_qcom_phy_qrbtc_sdm845_phy_ops = {
|
||||
.init = ufs_qcom_phy_qrbtc_sdm845_init,
|
||||
.exit = ufs_qcom_phy_qrbtc_sdm845_exit,
|
||||
.set_mode = ufs_qcom_phy_qrbtc_sdm845_set_mode,
|
||||
.calibrate = ufs_qcom_phy_qrbtc_sdm845_phy_calibrate,
|
||||
.owner = THIS_MODULE,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue