mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 12:44:11 +08:00
usb: typec: tps6598x: Fix broken polling mode after system suspend/resume
During system resume we need to resume the polling workqueue
if client->irq is not set else polling will no longer work.
Fixes: 0d6a119cec
("usb: typec: tps6598x: Add support for polling interrupts status")
Signed-off-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20230530065926.6161-1-rogerq@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
44d0fb387b
commit
fcfe84236e
@ -920,7 +920,7 @@ static int __maybe_unused tps6598x_resume(struct device *dev)
|
||||
enable_irq(client->irq);
|
||||
}
|
||||
|
||||
if (client->irq)
|
||||
if (!client->irq)
|
||||
queue_delayed_work(system_power_efficient_wq, &tps->wq_poll,
|
||||
msecs_to_jiffies(POLL_INTERVAL));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user