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

Commit 54ed6384 authored by Laxminath Kasam's avatar Laxminath Kasam Committed by Gerrit - the friendly Code Review server
Browse files

pinctrl: lpi: Avoid initial SSR notifications at bootup



In pinctrl LPI driver, avoid initial bootup SSR
notifications after registration of SSR notifier.

CRs-Fixed: 2017639
Change-Id: Ib634ae0efe903b6628dcb6a385f823b11a355973
Signed-off-by: default avatarLaxminath Kasam <lkasam@codeaurora.org>
parent fec225ae
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -408,13 +408,19 @@ static void lpi_gpio_set(struct gpio_chip *chip, unsigned pin, int value)
static int lpi_notifier_service_cb(struct notifier_block *this,
				   unsigned long opcode, void *ptr)
{
	static bool initial_boot = true;

	pr_debug("%s: Service opcode 0x%lx\n", __func__, opcode);

	switch (opcode) {
	case AUDIO_NOTIFIER_SERVICE_DOWN:
		if (initial_boot)
			break;
		lpi_dev_up = false;
		break;
	case AUDIO_NOTIFIER_SERVICE_UP:
		if (initial_boot)
			initial_boot = false;
		lpi_dev_up = true;
		break;
	default: