phy: phy-exynos-mipi-video: fix incorrect check for coupled phy state
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 26 Jul 2016 11:08:08 +0000 (13:08 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 4 Aug 2016 04:32:47 +0000 (13:32 +0900)
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I6c7fc15e1284fc70b3e581e8203f8dd43de63bb3

drivers/phy/phy-exynos-mipi-video.c

index 123d92e60a5f59d597aa29675b12caf9f56369ce..0bf1be22a913460313c816eb99cc2d69ed35df96 100644 (file)
@@ -84,7 +84,7 @@ static int __set_phy_state(const struct exynos_mipi_phy_desc *data,
 
        /* PHY PMU disable */
        if (!on && data->coupled_id >= 0 &&
-           __is_running(state->phys[data->coupled_id].data, state)) {
+           !__is_running(state->phys[data->coupled_id].data, state)) {
                regmap_read(state->regmaps[data->enable_map], data->enable_reg,
                            &val);
                val &= ~data->enable_val;