Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions drivers/usb/typec/tipd/spmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,16 @@ static int sn201202x_probe(struct spmi_device *device)
return ret;

ret = tipd_init(tps);
if (ret)
if (ret) {
spmi_command_sleep(device);
return ret;
return ret;
}

/* SPMI event messages can precede registration of the event IRQ.
* Reconcile the latched state after the port and its work are ready.
*/
tps->data->irq_handler(tps->irq, tps);
return 0;
}

static void sn201202x_remove(struct spmi_device *device)
Expand Down