Skip to content

Commit

Permalink
usb: typec: ucsi: Actually enable all the interface notifications
Browse files Browse the repository at this point in the history
The notification mask was not updated properly before all
the notifications were enabled in ucsi_init().

Fixes: 71a1fa0 ("usb: typec: ucsi: Store the notification mask")
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200108131347.43217-3-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Heikki Krogerus authored and Greg Kroah-Hartman committed Jan 8, 2020
1 parent 2d686c7 commit 9521e47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/typec/ucsi/ucsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,7 @@ int ucsi_init(struct ucsi *ucsi)
}

/* Enable all notifications */
ucsi->ntfy = UCSI_ENABLE_NTFY_ALL;
command = UCSI_SET_NOTIFICATION_ENABLE | ucsi->ntfy;
ret = ucsi_run_command(ucsi, command, NULL, 0);
if (ret < 0)
Expand Down

0 comments on commit 9521e47

Please sign in to comment.