Loading drivers/soc/qcom/eud.c +12 −1 Original line number Diff line number Diff line Loading @@ -92,6 +92,14 @@ static int enable; static bool eud_ready; static struct platform_device *eud_private; static int check_eud_mode_mgr2(struct eud_chip *chip) { u32 val; val = scm_io_read(chip->eud_mode_mgr2_phys_base); return val & BIT(0); } static void enable_eud(struct platform_device *pdev) { struct eud_chip *priv = platform_get_drvdata(pdev); Loading @@ -105,7 +113,7 @@ static void enable_eud(struct platform_device *pdev) priv->eud_reg_base + EUD_REG_INT1_EN_MASK); /* Enable secure eud if supported */ if (priv->secure_eud_en) { if (priv->secure_eud_en && !check_eud_mode_mgr2(priv)) { ret = scm_io_write(priv->eud_mode_mgr2_phys_base + EUD_REG_EUD_EN2, EUD_ENABLE_CMD); if (ret) Loading Loading @@ -629,6 +637,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"); Loading Loading
drivers/soc/qcom/eud.c +12 −1 Original line number Diff line number Diff line Loading @@ -92,6 +92,14 @@ static int enable; static bool eud_ready; static struct platform_device *eud_private; static int check_eud_mode_mgr2(struct eud_chip *chip) { u32 val; val = scm_io_read(chip->eud_mode_mgr2_phys_base); return val & BIT(0); } static void enable_eud(struct platform_device *pdev) { struct eud_chip *priv = platform_get_drvdata(pdev); Loading @@ -105,7 +113,7 @@ static void enable_eud(struct platform_device *pdev) priv->eud_reg_base + EUD_REG_INT1_EN_MASK); /* Enable secure eud if supported */ if (priv->secure_eud_en) { if (priv->secure_eud_en && !check_eud_mode_mgr2(priv)) { ret = scm_io_write(priv->eud_mode_mgr2_phys_base + EUD_REG_EUD_EN2, EUD_ENABLE_CMD); if (ret) Loading Loading @@ -629,6 +637,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"); Loading