]> git.baikalelectronics.ru Git - kernel.git/commit
platform/chrome: cros_ec_typec: Flush pending work
authorPrashant Malani <pmalani@chromium.org>
Thu, 11 Feb 2021 19:32:21 +0000 (11:32 -0800)
committerBenson Leung <bleung@chromium.org>
Thu, 11 Feb 2021 21:18:46 +0000 (13:18 -0800)
commita59e12218c4f5498d5669a0ee0c725101ca89d52
tree1eaa209db387aa2f8764d84c4f0ec1a74ead0cb4
parentb4b06c97729547d03a8f49c6774c8bd69150ea4d
platform/chrome: cros_ec_typec: Flush pending work

When a PD notifier event arrives, a new work event won't be enqueued if
the current one hasn't completed. This could lead to dropped events.

So, flush any pending work before scheduling the new instance.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Link: https://lore.kernel.org/r/20210211193221.610867-1-pmalani@chromium.org
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/cros_ec_typec.c