usb: typec: ucsi: Actually enable all the interface notifications

The notification mask was not updated properly before all
the notifications were enabled in ucsi_init().

Change-Id: I1af9225b7f419d7ad435448ae24576d4dcbcd4d2
Fixes: 71a1fa0df2a3 ("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>
Git-commit: 9521e47e9ab8401eb42e8ef5c2c9a46ac7dd8876
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <jackp@codeaurora.org>
This commit is contained in:
Heikki Krogerus 2020-01-08 16:13:47 +03:00 • committed by Jack Pham
commit 151ebcaf7b

View file

@ -928,6 +928,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)