diff --git a/drivers/soc/qcom/eud.c b/drivers/soc/qcom/eud.c index adaf8c22917a..6886698d6c20 100644 --- a/drivers/soc/qcom/eud.c +++ b/drivers/soc/qcom/eud.c @@ -638,9 +638,6 @@ static int msm_eud_probe(struct platform_device *pdev) } chip->eud_mode_mgr2_phys_base = res->start; - - if (check_eud_mode_mgr2(chip)) - enable = 1; } chip->need_phy_clk_vote = of_property_read_bool(pdev->dev.of_node, @@ -709,6 +706,9 @@ static int msm_eud_probe(struct platform_device *pdev) } } + if (chip->secure_eud_en && check_eud_mode_mgr2(chip)) + enable = 1; + ret = uart_add_one_port(&eud_uart_driver, port); if (ret) { dev_err(chip->dev, "failed to add uart port!\n");