summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2017-04-04 12:10:28 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-04-04 12:10:28 -0700
commit28e87e960f926d8d90a8e2edb3cc225c9c575bb6 (patch)
treec4ec948c25bed85375500b2c1d7cc004af87b47b
parentede6277d8bbeeab5b4620349b1d9a17018637701 (diff)
parent54ed63847a998168d64d39cbdff68c65e166aa87 (diff)
Merge "pinctrl: lpi: Avoid initial SSR notifications at bootup"
-rw-r--r--drivers/pinctrl/qcom/pinctrl-lpi.c6
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: