]> git.baikalelectronics.ru Git - kernel.git/commit
platform/chrome: cros_usbpd_notify: Fix cros-usbpd-notify notifier
authorGwendal Grignou <gwendal@chromium.org>
Wed, 4 Mar 2020 23:21:08 +0000 (15:21 -0800)
committerBenson Leung <bleung@chromium.org>
Tue, 17 Mar 2020 21:19:44 +0000 (14:19 -0700)
commit4bf19f21731544f30f82f85ace8f26dc97aaa671
tree252b57b4edd9b21f4f74ee95d7d1e4f0fb5171f1
parentf7508d2bd41fcf89f70ad9103993d78761fdc9d4
platform/chrome: cros_usbpd_notify: Fix cros-usbpd-notify notifier

cros-usbpd-notify notifier was returning NOTIFY_BAD when no host event
was available in the MKBP message.
But MKBP messages are used to transmit other information, so return
NOTIFY_DONE instead, to allow other notifier to be called.

Fixes: a23d39035e770 ("platform: chrome: Add cros-usbpd-notify driver")
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/platform/chrome/cros_usbpd_notify.c