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

Commit 1e605508 authored by Ajit Kumar's avatar Ajit Kumar
Browse files

soc: qcom: bgdaemon: do bg soft reset on unload



Call bg soft reset on bg firmware unload.

Change-Id: I562bf18d06f9847f35ef67093b5b071015468731
Signed-off-by: default avatarAjit Kumar <kajit@codeaurora.org>
parent 594b6adb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -130,6 +130,7 @@ static void bgcom_load_twm_bg_work(struct work_struct *work)
		pr_err("bg-wear is already loaded\n");
		subsystem_put(dev->pil_h);
		dev->pil_h = NULL;
		bg_soft_reset();
	} else {
		dev->pil_h = subsystem_get_with_fwname("bg-wear",
							"bg-twm-wear");
@@ -440,6 +441,7 @@ static long bg_com_ioctl(struct file *filp,
		if (dev->pil_h) {
			subsystem_put(dev->pil_h);
			dev->pil_h = NULL;
			bg_soft_reset();
		}
		ret = 0;
		break;