diff options
| author | Laxminath Kasam <lkasam@codeaurora.org> | 2017-03-21 12:55:12 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-03-28 09:41:09 -0700 |
| commit | 54ed63847a998168d64d39cbdff68c65e166aa87 (patch) | |
| tree | 67f1c42c16e471a20389874f7fbc6a8326f179fc | |
| parent | fec225ae45829184255a95a00d81cf1387fd6a84 (diff) | |
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: Laxminath Kasam <lkasam@codeaurora.org>
| -rw-r--r-- | drivers/pinctrl/qcom/pinctrl-lpi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/pinctrl/qcom/pinctrl-lpi.c b/drivers/pinctrl/qcom/pinctrl-lpi.c index 4ca5d5fa0531..3fe41ee4c3c1 100644 --- a/drivers/pinctrl/qcom/pinctrl-lpi.c +++ b/drivers/pinctrl/qcom/pinctrl-lpi.c @@ -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: |
