From b64162f3090385ba3b02123ca90e8388af448c16 Mon Sep 17 00:00:00 2001 From: Jeongtae Park Date: Thu, 26 Apr 2018 11:54:43 +0900 Subject: [PATCH] phy: add operation 'mode' to PHY type Change-Id: I66d1a2157c1b337d8eec934906a2625edf7c3781 Signed-off-by: Jeongtae Park --- drivers/phy/samsung/phy-exynos-mipi.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; -- 2.20.1