From ceb762de6c9e91b66b49b4bbb4db45f644981653 Mon Sep 17 00:00:00 2001 From: TogoFire Date: Wed, 17 May 2023 19:42:00 -0300 Subject: [PATCH] Revert "techpack: tas2557: Use power efficient wq" This reverts commit c7bf6641b051e047a76cf6d400e5dbb34872c252. Signed-off-by: TogoFire Change-Id: Iff1302a345db880cb616df8996931f184e63a302 --- techpack/audio/asoc/codecs/tas2557-core.c | 3 +-- techpack/audio/asoc/codecs/tas2557-regmap.c | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/techpack/audio/asoc/codecs/tas2557-core.c b/techpack/audio/asoc/codecs/tas2557-core.c index 32236aa6126f..3105443d5574 100644 --- a/techpack/audio/asoc/codecs/tas2557-core.c +++ b/techpack/audio/asoc/codecs/tas2557-core.c @@ -301,8 +301,7 @@ static void failsafe(struct tas2557_priv *pTAS2557) pTAS2557->mnRestart ++; msleep(100); dev_err(pTAS2557->dev, "I2C COMM error, restart SmartAmp.\n"); - queue_delayed_work(system_power_efficient_wq,&pTAS2557->irq_work, - msecs_to_jiffies(100)); + schedule_delayed_work(&pTAS2557->irq_work, msecs_to_jiffies(100)); return; } #endif diff --git a/techpack/audio/asoc/codecs/tas2557-regmap.c b/techpack/audio/asoc/codecs/tas2557-regmap.c index 2c1355960ccb..f4e4c0763619 100644 --- a/techpack/audio/asoc/codecs/tas2557-regmap.c +++ b/techpack/audio/asoc/codecs/tas2557-regmap.c @@ -345,7 +345,7 @@ void tas2557_enableIRQ(struct tas2557_priv *pTAS2557, bool enable) if (gpio_is_valid(pTAS2557->mnGpioINT)) { enable_irq(pTAS2557->mnIRQ); /* check after 10 ms */ - queue_delayed_work(system_power_efficient_wq, &pTAS2557->irq_work, msecs_to_jiffies(10)); + schedule_delayed_work(&pTAS2557->irq_work, msecs_to_jiffies(10)); pTAS2557->mbIRQEnable = true; } } @@ -523,8 +523,7 @@ static irqreturn_t tas2557_irq_handler(int irq, void *dev_id) tas2557_enableIRQ(pTAS2557, false); /* get IRQ status after 100 ms */ - queue_delayed_work(system_power_efficient_wq,&pTAS2557->irq_work, - msecs_to_jiffies(100)); + schedule_delayed_work(&pTAS2557->irq_work, msecs_to_jiffies(100)); return IRQ_HANDLED; }