Skip to content

Commit

Permalink
Revert "techpack: tas2557: Use power efficient wq"
Browse files Browse the repository at this point in the history
This reverts commit c7bf6641b051e047a76cf6d400e5dbb34872c252.

Signed-off-by: TogoFire <togofire@mailfence.com>
Change-Id: Iff1302a345db880cb616df8996931f184e63a302
  • Loading branch information
TogoFire committed May 24, 2023
1 parent 7a049d7 commit ceb762d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions techpack/audio/asoc/codecs/tas2557-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions techpack/audio/asoc/codecs/tas2557-regmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit ceb762d

Please sign in to comment.