Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7556286 authored by Nagireddy Annem's avatar Nagireddy Annem Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: Fix blackghost status irq missing during BG SSR



BG gpio status irq is missing some times, while doing BG SSR
fix it by delaying enable_irq() around 5ms, as there could
be race for clearing gpio interrupt status bit by enable_irq
before calling gpio summary irq handler.

Change-Id: Id64407d9aa5da45b0298e3de08dae55fe2610eb7
Signed-off-by: default avatarNagireddy Annem <nannem@codeaurora.org>
parent 38ec7e0c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -303,6 +303,8 @@ static int bg_powerup(const struct subsys_desc *subsys)
			"%s: BG PIL Boot failed\n", __func__);
		return ret;
	}
	/* wait for msm_gpio_irq_handler to get invoked before enable irq */
	usleep_range(5000, 6000);
	enable_irq(bg_data->status_irq);
	ret = wait_for_err_ready(bg_data);
	if (ret) {