usb: typec: ucsi: Only enable supported notifications
authorDiogo Ivo <diogo.ivo@tecnico.ulisboa.pt>
Wed, 27 Mar 2024 12:11:42 +0000 (12:11 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Apr 2024 15:06:31 +0000 (17:06 +0200)
commit27ffe4ff0b33b3dcc97fd448fd1e38d31ade575b
tree64eb324d5ceed899027c2049f777300816462c2b
parenta2723e29c7f405e142e415efa6002479b79b57fa
usb: typec: ucsi: Only enable supported notifications

The UCSI specification defines some notifications to be optional for the
PPM to support. From these only enable the ones the PPM informs us are
actually supported.

Signed-off-by: Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/yhz7nq622mbg3rqsyvqz632pc756niagpfbnzayfswhzo7esho@vrdtx5c3hjgx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi.c