diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2020-03-04 15:21:08 -0800 |
---|---|---|
committer | Benson Leung <bleung@chromium.org> | 2020-03-17 14:19:44 -0700 |
commit | 92e399c07b7e71805306e8ce82960f10400c4ffe (patch) | |
tree | 252b57b4edd9b21f4f74ee95d7d1e4f0fb5171f1 /drivers/platform/chrome/cros_usbpd_notify.c | |
parent | 7e11f4c0c5ccaac5e8ee1b2e46b3c2cbc47d199e (diff) |
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: ec2daf6e33f9f ("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>
Diffstat (limited to 'drivers/platform/chrome/cros_usbpd_notify.c')
-rw-r--r-- | drivers/platform/chrome/cros_usbpd_notify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/chrome/cros_usbpd_notify.c b/drivers/platform/chrome/cros_usbpd_notify.c index 3851bbd6e9a3..ca2c0181a1db 100644 --- a/drivers/platform/chrome/cros_usbpd_notify.c +++ b/drivers/platform/chrome/cros_usbpd_notify.c @@ -84,7 +84,7 @@ static int cros_usbpd_notify_plat(struct notifier_block *nb, u32 host_event = cros_ec_get_host_event(ec_dev); if (!host_event) - return NOTIFY_BAD; + return NOTIFY_DONE; if (host_event & EC_HOST_EVENT_MASK(EC_HOST_EVENT_PD_MCU)) { blocking_notifier_call_chain(&cros_usbpd_notifier_list, |