From: Jeongtae Park Date: Thu, 26 Apr 2018 02:54:43 +0000 (+0900) Subject: phy: add operation 'mode' to PHY type X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b64162f3090385ba3b02123ca90e8388af448c16;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git phy: add operation 'mode' to PHY type Change-Id: I66d1a2157c1b337d8eec934906a2625edf7c3781 Signed-off-by: Jeongtae Park --- diff --git a/drivers/phy/samsung/phy-exynos-mipi.c b/drivers/phy/samsung/phy-exynos-mipi.c index 0173ca2a589d..25f7223ae9c5 100644 --- a/drivers/phy/samsung/phy-exynos-mipi.c +++ b/drivers/phy/samsung/phy-exynos-mipi.c @@ -55,7 +55,7 @@ enum phy_infos { struct exynos_mipi_phy_cfg { u16 major; u16 minor; - u32 type; + u16 mode; /* u32 max_speed */ int (*set)(void __iomem *regs, int option, u32 *info); }; @@ -394,19 +394,19 @@ static const struct exynos_mipi_phy_cfg phy_cfg_table[] = { { .major = 0x0501, .minor = 0x0000, - .type = 0xD, + .mode = 0xD, .set = __set_phy_cfg_0501_0000_dphy, }, { .major = 0x0502, .minor = 0x0000, - .type = 0xD, + .mode = 0xD, .set = __set_phy_cfg_0502_0000_dphy, }, { .major = 0x0502, .minor = 0x0001, - .type = 0xD, + .mode = 0xD, .set = __set_phy_cfg_0502_0001_dphy, }, { }, @@ -422,7 +422,7 @@ static int __set_phy_cfg(struct exynos_mipi_phy *state, for (i = 0; i < ARRAY_SIZE(phy_cfg_table); i++) { if ((cfg[VERSION] == MKVER(phy_cfg_table[i].major, phy_cfg_table[i].minor)) - && (cfg[TYPE] == phy_cfg_table[i].type)) { + && ((cfg[TYPE] >> 16) == phy_cfg_table[i].mode)) { ret = phy_cfg_table[i].set(phy_desc->regs, option, cfg); break;