From f01e80c9ea406c2f29e2ca8e07985a01c8a49dc3 Mon Sep 17 00:00:00 2001 From: Wooyeon Kim Date: Fri, 12 Apr 2019 21:03:42 +0900 Subject: [PATCH] [COMMON] fimc-is2: modified pinctrl delay function to udelay - for activate by busy waiting Change-Id: Ib4958629646eb38bef35bd9752c07b2fc45343a4 Signed-off-by: Wooyeon Kim --- .../exynos/fimc-is2/ischain/setup-fimc-is-module.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/exynos/fimc-is2/ischain/setup-fimc-is-module.c b/drivers/media/platform/exynos/fimc-is2/ischain/setup-fimc-is-module.c index 7da220159dbe..d57f8eb2a869 100644 --- a/drivers/media/platform/exynos/fimc-is2/ischain/setup-fimc-is-module.c +++ b/drivers/media/platform/exynos/fimc-is2/ischain/setup-fimc-is-module.c @@ -81,7 +81,7 @@ static int exynos_fimc_is_module_pin_control(struct fimc_is_module_enum *module, switch (act) { case PIN_NONE: - usleep_range(delay, delay); + udelay(delay); break; case PIN_OUTPUT: if (gpio_is_valid(pin)) { @@ -89,7 +89,7 @@ static int exynos_fimc_is_module_pin_control(struct fimc_is_module_enum *module, gpio_request_one(pin, GPIOF_OUT_INIT_HIGH, "CAM_GPIO_OUTPUT_HIGH"); else gpio_request_one(pin, GPIOF_OUT_INIT_LOW, "CAM_GPIO_OUTPUT_LOW"); - usleep_range(delay, delay); + udelay(delay); gpio_free(pin); } break; @@ -119,7 +119,7 @@ static int exynos_fimc_is_module_pin_control(struct fimc_is_module_enum *module, pr_err("pinctrl_select_state(%s) is fail(%d)\n", name, ret); return ret; } - usleep_range(delay, delay); + udelay(delay); } break; case PIN_REGULATOR: @@ -165,7 +165,7 @@ static int exynos_fimc_is_module_pin_control(struct fimc_is_module_enum *module, } } - usleep_range(delay, delay); + udelay(delay); regulator_put(regulator); } break; -- 2.20.1