Skip to content

Commit fcfe842

Browse files
rogerqgregkh
authored andcommitted
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: 0d6a119 ("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>
1 parent 44d0fb3 commit fcfe842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/typec/tipd/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ static int __maybe_unused tps6598x_resume(struct device *dev)
920920
enable_irq(client->irq);
921921
}
922922

923-
if (client->irq)
923+
if (!client->irq)
924924
queue_delayed_work(system_power_efficient_wq, &tps->wq_poll,
925925
msecs_to_jiffies(POLL_INTERVAL));
926926

0 commit comments

Comments
 (0)