usb: typec: ucsi: Actually enable all the interface notifications
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 8 Jan 2020 13:13:47 +0000 (16:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jan 2020 15:55:43 +0000 (16:55 +0100)
The notification mask was not updated properly before all
the notifications were enabled in ucsi_init().

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>
drivers/usb/typec/ucsi/ucsi.c

index 466bd8afceeac8ad1389bb0f57a126a9c938660d..59c8ccdc68ac076db36b3c5d9d4735d6bc1408bc 100644 (file)
@@ -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)